| 221 | } |
| 222 | |
| 223 | bool 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 | |
| 243 | bool PixelFormatExtensions::HasStencil(const PixelFormat format) |
| 244 | { |
no outgoing calls
no test coverage detected