mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Test compute bindless feedback on vulkan
This commit is contained in:
@@ -7,10 +7,27 @@ class VK_Descriptor_Indexing(rdtest.TestCase):
|
||||
|
||||
def check_capture(self):
|
||||
|
||||
draw = self.find_draw("Draw")
|
||||
|
||||
draw = self.find_draw("Dispatch")
|
||||
self.check(draw is not None)
|
||||
self.controller.SetFrameEvent(draw.eventId, False)
|
||||
|
||||
pipe: rd.VKState = self.controller.GetVulkanPipelineState()
|
||||
|
||||
if len(pipe.compute.descriptorSets) != 1:
|
||||
raise rdtest.TestFailureException("Wrong number of compute sets is bound: {}, not 1"
|
||||
.format(len(pipe.compute.descriptorSets)))
|
||||
|
||||
binding = pipe.compute.descriptorSets[0].bindings[0]
|
||||
|
||||
if binding.dynamicallyUsedCount != 1:
|
||||
raise rdtest.TestFailureException("Compute bind 0 doesn't have the right used count {}"
|
||||
.format(binding.dynamicallyUsedCount))
|
||||
|
||||
if not binding.binds[15].dynamicallyUsed:
|
||||
raise rdtest.TestFailureException("Compute bind 0[15] isn't dynamically used")
|
||||
|
||||
draw = self.find_draw("Draw")
|
||||
self.check(draw is not None)
|
||||
self.controller.SetFrameEvent(draw.eventId, False)
|
||||
|
||||
pipe: rd.VKState = self.controller.GetVulkanPipelineState()
|
||||
@@ -28,7 +45,8 @@ class VK_Descriptor_Indexing(rdtest.TestCase):
|
||||
}
|
||||
|
||||
if len(pipe.graphics.descriptorSets) != 1:
|
||||
raise rdtest.TestFailureException("Wrong number of sets is bound: {}, not 1".format(len(pipe.graphics.descriptorSets)))
|
||||
raise rdtest.TestFailureException("Wrong number of sets is bound: {}, not 1"
|
||||
.format(len(pipe.graphics.descriptorSets)))
|
||||
|
||||
desc_set: rd.VKDescriptorSet = pipe.graphics.descriptorSets[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user