Skip to content

Commit 6b01c23

Browse files
authored
[VK] Fix handling of vk descriptor binding (#294)
This should fix handling for bindings which was oddly always broken.
1 parent dd0dce0 commit 6b01c23

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/API/VK/Device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ class VKDevice : public offloadtest::Device {
655655
VkWriteDescriptorSet WDS = {};
656656
WDS.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;
657657
WDS.dstSet = IS.DescriptorSets[SetIdx];
658-
WDS.dstBinding = RIdx;
658+
WDS.dstBinding = R.VKBinding->Binding;
659659
WDS.descriptorCount = 1;
660660
WDS.descriptorType = getDescriptorType(R.Kind);
661661
if (IsRawOrUniform)

test/Feature/StructuredBuffer/simple.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ DescriptorSets:
5252
#--- end
5353

5454
# UNSUPPORTED: Clang-Vulkan
55-
# XFAIL: DXC-Vulkan
5655

5756
# RUN: split-file %s %t
5857
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl

0 commit comments

Comments
 (0)