nxdk_pgraph_tests/texture_format.h

19 lines
512 B
C
Raw Normal View History

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 {
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