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

Function is_compressed

Source/ThirdParty/ddspp/ddspp.h:420–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419
420 inline ddspp_constexpr bool is_compressed(DXGIFormat format)
421 {
422 return (format >= BC1_UNORM && format <= BC5_SNORM) ||
423 (format >= BC6H_TYPELESS && format <= BC7_UNORM_SRGB) ||
424 (format >= ASTC_4X4_TYPELESS && format <= ASTC_12X12_UNORM_SRGB);
425 }
426
427 inline ddspp_constexpr bool is_srgb(DXGIFormat format)
428 {

Callers 2

decode_headerFunction · 0.85
encode_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected