nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
texture_format.h
1#ifndef NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_H
2#define NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_H
3
4#include <SDL.h>
5
6#include <cstdint>
7
8typedef struct TextureFormatInfo {
9 SDL_PixelFormatEnum sdl_format{SDL_PIXELFORMAT_ARGB8888};
10 uint32_t xbox_format{0};
11 uint32_t xbox_bpp{32}; // bits per pixel
12 bool xbox_swizzled{false};
13 bool xbox_linear{true};
14 bool require_conversion{false};
15 const char *name{nullptr};
17
18extern const TextureFormatInfo kTextureFormats[];
19extern const int kNumFormats;
20
21const TextureFormatInfo &GetTextureFormatInfo(uint32_t nv_texture_format);
22
23#endif // NXDK_PGRAPH_TESTS_TEXTURE_FORMAT_H
Definition texture_format.h:8