| 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 | { |
no test coverage detected