Iter Test skip pixel debug when no pixel shader bound at mod event

This commit is contained in:
Jake Turner
2024-11-15 13:18:52 +00:00
parent f11db57d68
commit 2d0ce14633
+4
View File
@@ -260,6 +260,10 @@ class Iter_Test(rdtest.TestCase):
pipe: rd.PipeState = self.controller.GetPipelineState()
if pipe.GetShader(rd.ShaderStage.Pixel) == rd.ResourceId.Null():
rdtest.log.print("Nothing to debug. No pixel shader bound at {}".format(action.eventId))
return
inputs = rd.DebugPixelInputs()
inputs.sample = 0
inputs.primitive = lastmod.primitiveID;