From d239a59ff062a7fe723bc752573d21e74c3c6b3f Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 28 Apr 2025 17:26:06 +0100 Subject: [PATCH] Fix pick component type for S8 textures --- util/test/rdtest/shared/Texture_Zoo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/test/rdtest/shared/Texture_Zoo.py b/util/test/rdtest/shared/Texture_Zoo.py index 2b84d2d81..d004810be 100644 --- a/util/test/rdtest/shared/Texture_Zoo.py +++ b/util/test/rdtest/shared/Texture_Zoo.py @@ -76,7 +76,7 @@ class Texture_Zoo(): pickCompType = testCompType if tex.format.type == rd.ResourceFormatType.S8: - pickCompType = rd.CompType.UInt + pickCompType = rd.CompType.Depth # When not running proxied, save non-typecasted textures to disk if not image_view and not self.proxied and (tex.format.compType == testCompType or @@ -506,7 +506,7 @@ class Texture_Zoo(): if comp_type == rd.CompType.SInt: picked = [float(a) for a in picked_combo.intValue] - elif comp_type == rd.CompType.UInt: + elif comp_type == rd.CompType.UInt or tex.format.type == rd.ResourceFormatType.S8: picked = [float(a) for a in picked_combo.uintValue] else: picked = list(picked_combo.floatValue)