add missing depth formats to getMetalFormat()

this prevented to upload depth data into a depth texture
This commit is contained in:
Mathias Agopian
2025-05-05 11:26:02 -07:00
committed by Mathias Agopian
parent af09c517b6
commit 6d413a4faf

View File

@@ -185,6 +185,7 @@ inline MTLPixelFormat getMetalFormat(PixelDataFormat format, PixelDataType type)
CONVERT(RGBA_INTEGER, UINT, RGBA32Uint);
CONVERT(RGBA_INTEGER, INT, RGBA32Sint);
CONVERT(RGBA, FLOAT, RGBA32Float);
CONVERT(DEPTH_COMPONENT, FLOAT, Depth32Float);
#undef CONVERT
return MTLPixelFormatInvalid;