7 #include "rtti/typeinfo.h"
74 int getNumChannels()
const;
79 int getChannelSize()
const;
84 int getBytesPerPixel()
const;
89 uint64_t getSizeInBytes()
const;
109 bool isValid()
const {
return mWidth != 0 && mHeight != 0; }
116 uint32_t mHeight = 0;
126 struct hash<
nap::ESurfaceChannels>
130 return hash<int>()(
static_cast<int>(v));
139 return hash<int>()(
static_cast<int>(v));
148 return hash<int>()(
static_cast<int>(v));
@ RGBA
RGBA red, green, blue and alpha component.
ESurfaceChannels
Definition: surfacedescriptor.h:26
@ sRGB
Non-linear, sRGB color space.
bool isValid() const
Definition: surfacedescriptor.h:109
@ Linear
Linear color space.
EColorSpace getColorSpace() const
Definition: surfacedescriptor.h:104
Definition: surfacedescriptor.h:46
@ BGRA
BGRA blue, green, red and alpha component.
ESurfaceDataType getDataType() const
Definition: surfacedescriptor.h:94
int getHeight() const
Definition: surfacedescriptor.h:64
ESurfaceChannels getChannels() const
Definition: surfacedescriptor.h:99
@ D
D component, for depth-only textures.
Definition: templateapp.h:17
ESurfaceDataType
Definition: surfacedescriptor.h:16
int getWidth() const
Definition: surfacedescriptor.h:59
EColorSpace
Definition: surfacedescriptor.h:37