|
|
@ -142,6 +142,10 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
|
|
|
|
return PixelFormat::D16_UNORM;
|
|
|
|
return PixelFormat::D16_UNORM;
|
|
|
|
case Hash(TextureFormat::Z16, UNORM, UINT, UINT, UINT, LINEAR):
|
|
|
|
case Hash(TextureFormat::Z16, UNORM, UINT, UINT, UINT, LINEAR):
|
|
|
|
return PixelFormat::D16_UNORM;
|
|
|
|
return PixelFormat::D16_UNORM;
|
|
|
|
|
|
|
|
case Hash(TextureFormat::X8Z24, UNORM):
|
|
|
|
|
|
|
|
return PixelFormat::X8_D24_UNORM;
|
|
|
|
|
|
|
|
case Hash(TextureFormat::X8Z24, UNORM, UINT, UINT, UINT, LINEAR):
|
|
|
|
|
|
|
|
return PixelFormat::X8_D24_UNORM;
|
|
|
|
case Hash(TextureFormat::Z24S8, UINT, UNORM, UNORM, UNORM, LINEAR):
|
|
|
|
case Hash(TextureFormat::Z24S8, UINT, UNORM, UNORM, UNORM, LINEAR):
|
|
|
|
return PixelFormat::S8_UINT_D24_UNORM;
|
|
|
|
return PixelFormat::S8_UINT_D24_UNORM;
|
|
|
|
case Hash(TextureFormat::Z24S8, UINT, UNORM, UINT, UINT, LINEAR):
|
|
|
|
case Hash(TextureFormat::Z24S8, UINT, UNORM, UINT, UINT, LINEAR):
|
|
|
|