2021-11-11 00:37:51 +00:00
|
|
|
#ifndef NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_H
|
|
|
|
#define NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_H
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
|
|
|
|
typedef struct TextureFormatInfo {
|
2021-12-17 06:56:59 +00:00
|
|
|
SDL_PixelFormatEnum sdl_format{SDL_PIXELFORMAT_ARGB8888};
|
|
|
|
uint32_t xbox_format{0};
|
|
|
|
uint16_t xbox_bpp{4}; // bytes per pixel
|
|
|
|
bool xbox_swizzled{false};
|
|
|
|
bool require_conversion{false};
|
|
|
|
const char *name{nullptr};
|
2021-11-11 00:37:51 +00:00
|
|
|
} TextureFormatInfo;
|
|
|
|
|
|
|
|
extern const TextureFormatInfo kTextureFormats[];
|
|
|
|
extern const int kNumFormats;
|
|
|
|
|
|
|
|
#endif // NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_H
|