MCPcopy Create free account
hub / github.com/LibreVR/Revive / IsDepthFormat

Method IsDepthFormat

ReviveXR/Swapchain.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool ovrTextureSwapChainData::IsDepthFormat(ovrTextureFormat format)
75{
76 switch (format)
77 {
78 case OVR_FORMAT_D16_UNORM: return true;
79 case OVR_FORMAT_D24_UNORM_S8_UINT: return true;
80 case OVR_FORMAT_D32_FLOAT: return true;
81 case OVR_FORMAT_D32_FLOAT_S8X24_UINT: return true;
82 default: return false;
83 }
84}
85
86DXGI_FORMAT ovrTextureSwapChainData::TextureFormatToDXGIFormat(ovrTextureFormat format)
87{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected