1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 13:54:16 +01:00

[d3d9] Use new DxvkShader constructor for format conversion

This commit is contained in:
Philip Rebohle 2022-04-09 14:20:27 +02:00 committed by Philip Rebohle
parent 98ec79f6fa
commit 427f51eda7

View File

@ -130,10 +130,14 @@ namespace dxvk {
{ BindingIds::Buffer, VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, VK_IMAGE_VIEW_TYPE_1D }, { BindingIds::Buffer, VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, VK_IMAGE_VIEW_TYPE_1D },
} }; } };
return m_device->createShader( DxvkShaderCreateInfo info;
VK_SHADER_STAGE_COMPUTE_BIT, info.stage = VK_SHADER_STAGE_COMPUTE_BIT;
resourceSlots.size(), resourceSlots.data(), info.resourceSlotCount = resourceSlots.size();
{ 0u, 0u, 0u, sizeof(VkExtent2D) }, code); info.resourceSlots = resourceSlots.data();
info.pushConstOffset = 0;
info.pushConstSize = sizeof(VkExtent2D);
return new DxvkShader(info, std::move(code));
} }