sead
Loading...
Searching...
No Matches
aglTextureFormatInfo.h
Go to the documentation of this file.
1#pragma once
2
3#include <common/aglTextureEnum.h>
4
5#include <cafe/gx2.h>
6
7namespace agl {
8
10{
11public:
12 static u8 getPixelByteSize(TextureFormat format);
13 static u8 getComponentNum(TextureFormat format);
14 static u8 getComponentBitSize(TextureFormat format, s32 component);
15 static u8 getComponentOrder(TextureFormat format, s32 component);
16 static bool isCompressed(TextureFormat format);
17 static bool isNormalized(TextureFormat format);
18 static bool isFloat(TextureFormat format);
19 static bool isUnsigned(TextureFormat format);
20 static bool isSRGB(TextureFormat format);
23 static const char* getString(TextureFormat format);
24 static TextureCompSel getDefaultCompSel(TextureFormat format, s32 component);
25 static TextureFormat convFormatGX2ToAGL(GX2SurfaceFormat format);
27};
28
29}
Definition aglTextureFormatInfo.h:10
static GX2SurfaceFormat convFormatAGLToGX2(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1304
static u8 getComponentNum(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1240
static bool isUsableAsRenderTargetColor(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1279
static bool isNormalized(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1260
static bool isSRGB(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1274
static TextureCompSel getDefaultCompSel(TextureFormat format, s32 component)
Definition aglTextureFormatInfo.cpp:1294
static u8 getComponentOrder(TextureFormat format, s32 component)
Definition aglTextureFormatInfo.cpp:1250
static bool isUsableAsRenderTargetDepth(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1284
static bool isCompressed(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1255
static u8 getPixelByteSize(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1235
static bool isFloat(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1264
static u8 getComponentBitSize(TextureFormat format, s32 component)
Definition aglTextureFormatInfo.cpp:1245
static TextureFormat convFormatGX2ToAGL(GX2SurfaceFormat format)
Definition aglTextureFormatInfo.cpp:1299
static const char * getString(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1289
static bool isUnsigned(TextureFormat format)
Definition aglTextureFormatInfo.cpp:1269
Definition aglDisplayList.cpp:5
TextureFormat
Definition aglTextureEnum.h:10
TextureCompSel
Definition aglTextureEnum.h:92