mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 04:54:15 +01:00
[d3d9] Use new DxvkShader constructor for format conversion
This commit is contained in:
parent
98ec79f6fa
commit
427f51eda7
@ -130,10 +130,14 @@ namespace dxvk {
|
||||
{ BindingIds::Buffer, VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, VK_IMAGE_VIEW_TYPE_1D },
|
||||
} };
|
||||
|
||||
return m_device->createShader(
|
||||
VK_SHADER_STAGE_COMPUTE_BIT,
|
||||
resourceSlots.size(), resourceSlots.data(),
|
||||
{ 0u, 0u, 0u, sizeof(VkExtent2D) }, code);
|
||||
DxvkShaderCreateInfo info;
|
||||
info.stage = VK_SHADER_STAGE_COMPUTE_BIT;
|
||||
info.resourceSlotCount = resourceSlots.size();
|
||||
info.resourceSlots = resourceSlots.data();
|
||||
info.pushConstOffset = 0;
|
||||
info.pushConstSize = sizeof(VkExtent2D);
|
||||
|
||||
return new DxvkShader(info, std::move(code));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user