MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / isColorModelBlockCompressed

Function isColorModelBlockCompressed

tools/ktx/formats.h:126–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124// -------------------------------------------------------------------------------------------------
125
126[[nodiscard]] constexpr inline bool isColorModelBlockCompressed(khr_df_model_e colorModel) noexcept {
127 return colorModel >= KHR_DF_MODEL_DXT1A;
128}
129
130[[nodiscard]] inline bool isColorPrimariesValid(khr_df_primaries_e primaries) noexcept {
131 // dfdToStringColorPrimaries yields a nullptr if the value is invalid

Callers 3

calculateExpectedDFDMethod · 0.85
validateDFDBasicMethod · 0.85
validateKTXglFormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected