MCPcopy Create free account
hub / github.com/defold/defold / IsFormatR

Function IsFormatR

engine/graphics/src/graphics.cpp:955–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953 }
954
955 static bool IsFormatR(dmGraphics::TextureFormat format)
956 {
957 switch(format)
958 {
959 case dmGraphics::TEXTURE_FORMAT_LUMINANCE:
960 case dmGraphics::TEXTURE_FORMAT_R_BC4:
961 return true;
962 default:
963 return false;
964 }
965 }
966
967 uint16_t GetMipmapSize(uint16_t size_0, uint8_t mipmap)
968 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected