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

Function IsFormatRGBA

engine/graphics/src/graphics.cpp:910–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908 }
909
910 static bool IsFormatRGBA(dmGraphics::TextureFormat format)
911 {
912 switch(format)
913 {
914 case dmGraphics::TEXTURE_FORMAT_RGBA:
915 case dmGraphics::TEXTURE_FORMAT_RGBA32UI:
916 case dmGraphics::TEXTURE_FORMAT_RGBA_BC7:
917 case dmGraphics::TEXTURE_FORMAT_RGBA_BC3:
918 case dmGraphics::TEXTURE_FORMAT_RGBA_ETC2:
919 case dmGraphics::TEXTURE_FORMAT_RGBA_PVRTC_4BPPV1:
920 case dmGraphics::TEXTURE_FORMAT_RGBA_16BPP:
921 return true;
922 default:
923 // Lastly check if it's one of the ASTC formats
924 return IsTextureFormatASTC(format);
925 }
926 }
927
928 static bool IsFormatRGB(dmGraphics::TextureFormat format)
929 {

Callers 1

Calls 1

IsTextureFormatASTCFunction · 0.85

Tested by

no test coverage detected