mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Fix pick component type for S8 textures
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user