Fix bad casts on overlay texture pixel picking

This commit is contained in:
baldurk
2026-08-25 15:29:58 +01:00
parent 752543e0fe
commit 30c817486e
+2 -2
View File
@@ -110,7 +110,7 @@ class VK_Indirect(rdtest.TestCase):
if overlay == rd.DebugOverlay.ClearBeforePass:
overlayTex = col_tex
picked = self.controller.PickPixel(overlayTex, x, y, rd.Subresource(), rd.CompType.UNorm)
picked = self.controller.PickPixel(overlayTex, x, y, rd.Subresource(), rd.CompType.Typeless)
out.Shutdown()
return picked
@@ -303,7 +303,7 @@ class VK_Indirect(rdtest.TestCase):
for s in self.samples:
x = s[0]
y = s[1]
picked = self.controller.PickPixel(overlayTex, x, y, rd.Subresource(), rd.CompType.Float)
picked = self.controller.PickPixel(overlayTex, x, y, rd.Subresource(), rd.CompType.Typeless)
if picked.floatValue != emptyPixel:
empty = False
if expectEmpty and not empty: