MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsDepthStencil

Method IsDepthStencil

Source/Engine/Graphics/PixelFormatExtensions.cpp:223–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223bool PixelFormatExtensions::IsDepthStencil(const PixelFormat format)
224{
225 switch (format)
226 {
227 case PixelFormat::R32G8X24_Typeless:
228 case PixelFormat::D32_Float_S8X24_UInt:
229 case PixelFormat::R32_Float_X8X24_Typeless:
230 case PixelFormat::X32_Typeless_G8X24_UInt:
231 case PixelFormat::D32_Float:
232 case PixelFormat::R24G8_Typeless:
233 case PixelFormat::D24_UNorm_S8_UInt:
234 case PixelFormat::R24_UNorm_X8_Typeless:
235 case PixelFormat::X24_Typeless_G8_UInt:
236 case PixelFormat::D16_UNorm:
237 return true;
238 default:
239 return false;
240 }
241}
242
243bool PixelFormatExtensions::HasStencil(const PixelFormat format)
244{

Callers 5

DrawSceneDepthMethod · 0.80
DownscaleDepthMethod · 0.80
InitMethod · 0.80
IsDepthStencilFunction · 0.80
ManualClearMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected