psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
_gcmTexture Struct Reference

RSX Texture data structure. More...

#include <gcm_sys.h>

Data Fields

u8 format
 Texture format.
 
u8 mipmap
 Indicates if this is a mip-mapped texture.
 
u8 dimension
 Texture dimension.
 
u8 cubemap
 Indicates if this is a cube-mapped texture.
 
u32 remap
 Color remapping bitfield.
 
u16 width
 Texture width in pixels.
 
u16 height
 Texture height in pixels.
 
u16 depth
 Texture depth.
 
u8 location
 Location of texture.
 
u8 _pad
 unused padding byte.
 
u32 pitch
 Size of a texture line in bytes.
 
u32 offset
 Offset of texture data.
 

Detailed Description

RSX Texture data structure.

Definition at line 877 of file gcm_sys.h.

Field Documentation

◆ _pad

u8 _gcmTexture::_pad

unused padding byte.

Definition at line 958 of file gcm_sys.h.

◆ cubemap

u8 _gcmTexture::cubemap

Indicates if this is a cube-mapped texture.

Possible values are:

Definition at line 920 of file gcm_sys.h.

◆ depth

u16 _gcmTexture::depth

Texture depth.

Definition at line 949 of file gcm_sys.h.

◆ dimension

u8 _gcmTexture::dimension

Texture dimension.

Possible values are:

Definition at line 912 of file gcm_sys.h.

◆ format

u8 _gcmTexture::format

Texture format.

This is an OR-ed combination of the following values:

Definition at line 895 of file gcm_sys.h.

◆ height

u16 _gcmTexture::height

Texture height in pixels.

Definition at line 947 of file gcm_sys.h.

◆ location

u8 _gcmTexture::location

Location of texture.

Possible values are:

Definition at line 956 of file gcm_sys.h.

◆ mipmap

u8 _gcmTexture::mipmap

Indicates if this is a mip-mapped texture.

Possible values are:

Definition at line 903 of file gcm_sys.h.

◆ offset

u32 _gcmTexture::offset

Offset of texture data.

Definition at line 962 of file gcm_sys.h.

◆ pitch

u32 _gcmTexture::pitch

Size of a texture line in bytes.

Definition at line 960 of file gcm_sys.h.

◆ remap

u32 _gcmTexture::remap

Color remapping bitfield.

Each of the texture color components (red, green, blue, alpha) can be remapped according to a specified remapping type. The type specifies that the component is either set to zero, all one bits, or takes value of one of the source components. All remapping types and values are to be OR-ed together.

For instance, to have the alpha component set to zero, the red and blue components swapped and the green component kept as-is, set the following value:

(GCM_TEXTURE_REMAP_TYPE_ZERO << GCM_TEXTURE_REMAP_TYPE_A_SHIFT)
| (GCM_TEXTURE_REMAP_TYPE_REMAP << GCM_TEXTURE_REMAP_TYPE_R_SHIFT)
| (GCM_TEXTURE_REMAP_COLOR_B << GCM_TEXTURE_REMAP_COLOR_R_SHIFT)
| (GCM_TEXTURE_REMAP_TYPE_REMAP << GCM_TEXTURE_REMAP_TYPE_G_SHIFT)
| (GCM_TEXTURE_REMAP_COLOR_G << GCM_TEXTURE_REMAP_COLOR_G_SHIFT)
| (GCM_TEXTURE_REMAP_TYPE_REMAP << GCM_TEXTURE_REMAP_TYPE_B_SHIFT)
| (GCM_TEXTURE_REMAP_COLOR_R << GCM_TEXTURE_REMAP_COLOR_B_SHIFT)

Definition at line 942 of file gcm_sys.h.

◆ width

u16 _gcmTexture::width

Texture width in pixels.

Definition at line 945 of file gcm_sys.h.


The documentation for this struct was generated from the following file: