Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
TextureDescriptor.cpp
Go to the documentation of this file.
1
2
4
5namespace Divide {
6
7 [[nodiscard]] bool IsCompressed(const GFXImageFormat format) noexcept {
8 return format == GFXImageFormat::BC1 ||
9 format == GFXImageFormat::BC1a ||
10 format == GFXImageFormat::BC2 ||
11 format == GFXImageFormat::BC3 ||
12 format == GFXImageFormat::BC3n ||
13 format == GFXImageFormat::BC4s ||
14 format == GFXImageFormat::BC4u ||
15 format == GFXImageFormat::BC5s ||
16 format == GFXImageFormat::BC5u ||
17 format == GFXImageFormat::BC6s ||
18 format == GFXImageFormat::BC6u ||
19 format == GFXImageFormat::BC7;
20 }
21
22 [[nodiscard]] bool HasAlphaChannel(const GFXImageFormat format) noexcept {
23 return format == GFXImageFormat::BC1a ||
24 format == GFXImageFormat::BC2 ||
25 format == GFXImageFormat::BC3 ||
26 format == GFXImageFormat::BC3n ||
27 format == GFXImageFormat::BC7 ||
28 format == GFXImageFormat::BGRA ||
29 format == GFXImageFormat::RGBA;
30 }
31
32} //namespace Divide
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7
bool IsCompressed(GFXImageFormat format) noexcept
bool HasAlphaChannel(GFXImageFormat format) noexcept