Partially reversed SceGxmTexture struct.
@@ -1022,7 +1022,32 @@ typedef struct SceGxmVertexStream {
} SceGxmVertexStream;
typedef struct SceGxmTexture {
- unsigned int controlWords[4];
+ // Control Word 0
+ uint32_t unk0 : 3;
+ uint32_t vaddr_mode : 3;
+ uint32_t uaddr_mode : 3;
+ uint32_t mip_filter : 1;
+ uint32_t min_filter: 2;
+ uint32_t mag_filter : 2;
+ uint32_t unk1 : 3;
+ uint32_t mip_count : 4;
+ uint32_t lod_bias : 6;
+ uint32_t gamma_mode : 2;
+ uint32_t unk2 : 2;
+ uint32_t format0 : 1;
+ // Control Word 1
+ uint32_t height : 12;
+ uint32_t width : 12;
+ uint32_t base_format : 5;
+ uint32_t type : 3;
+ // Control Word 2
+ uint32_t unk3 : 2;
+ uint32_t data_addr : 30;
+ // Control Word 3
+ uint32_t palette_addr : 26;
+ uint32_t unk4 : 2;
+ uint32_t swizzle_format : 3;
+ uint32_t normalize_mode : 1;
} SceGxmTexture;
typedef struct SceGxmColorSurface {
