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

RSX target surface data structure. More...

#include <gcm_sys.h>

Data Fields

u8 type
 Type of render target.
 
u8 antiAlias
 Antialiasing format type.
 
u8 colorFormat
 Format of the color buffer.
 
u8 colorTarget
 Target of the color buffer.
 
u8 colorLocation [4]
 Location of the color buffer.
 
u32 colorOffset [4]
 Offset from the base address of the color buffer.
 
u32 colorPitch [4]
 Size of a color buffer line in bytes.
 
u8 depthFormat
 Format of the depth buffer.
 
u8 depthLocation
 Location of the depth buffer.
 
u8 _pad [2]
 unused padding bytes. most be 0.
 
u32 depthOffset
 Offset from the base address of the depth buffer.
 
u32 depthPitch
 Size of a depth buffer line in bytes.
 
u16 width
 Width of the render buffer (1 - 4096).
 
u16 height
 Height of the render buffer (1 - 4096).
 
u16 x
 Window offset in x direction (0 - 4095).
 
u16 y
 Window offset in y direction (0 - 4095).
 

Detailed Description

RSX target surface data structure.

This structure holds settings of the render target that is to be the render buffer. Set the buffer to use for rendering by passing this structure as the argument when calling rsxSetSurface.

Definition at line 759 of file gcm_sys.h.

Field Documentation

◆ _pad

u8 _gcmSurface::_pad[2]

unused padding bytes. most be 0.

Definition at line 852 of file gcm_sys.h.

◆ antiAlias

u8 _gcmSurface::antiAlias

Antialiasing format type.

Specifies the mode of multiple samples. Possible values are:

Definition at line 777 of file gcm_sys.h.

◆ colorFormat

u8 _gcmSurface::colorFormat

Format of the color buffer.

Possible values are: -\ ref GCM_SURFACE_X1R5G5B5_Z1R5G5B5
-\ ref GCM_SURFACE_X1R5G5B5_O1R5G5B5
-\ ref GCM_SURFACE_R5G5B5
-\ ref GCM_SURFACE_X8R8G8B8_Z8R8G8B8
-\ ref GCM_SURFACE_X8R8G8B8
-\ ref GCM_SURFACE_A8R8G8B8
-\ ref GCM_SURFACE_B8
-\ ref GCM_SURFACE_G8B8
-\ ref GCM_SURFACE_F_W16Z16Y16X16
-\ ref GCM_SURFACE_F_W32Z32Y32X32
-\ ref GCM_SURFACE_F_X32
-\ ref GCM_SURFACE_X8B8G8R8_Z8B8G8R8
-\ ref GCM_SURFACE_X8B8G8R8_O8B8G8R8
-\ ref GCM_SURFACE_A8B8G8R8

Definition at line 797 of file gcm_sys.h.

◆ colorLocation

u8 _gcmSurface::colorLocation[4]

Location of the color buffer.

When using multiple render targets, set as many locations as the number of color buffers enabled in colorTarget. In this system, up to 4 color buffers can be specified for multiple render targets, and the location of each individual color buffer can be specified independently. Possible values are:

Definition at line 819 of file gcm_sys.h.

◆ colorOffset

u32 _gcmSurface::colorOffset[4]

Offset from the base address of the color buffer.

When using multiple render targets, set as many addresses as the number of color buffers specified in colorTarget. Use rsxAddressToOffset to convert the effective addresses into offset values when specifying the buffer offset. colorOffset should be aligned on a 64 bytes boundery.

Definition at line 826 of file gcm_sys.h.

◆ colorPitch

u32 _gcmSurface::colorPitch[4]

Size of a color buffer line in bytes.

When using multiple render targets, specify as many pitch sizes as the number of color buffers specified in colorTarget. The pitch size should be 64 when rendering in the swizzle format. For all others, the pitch size should be a multiple of 64.

Definition at line 833 of file gcm_sys.h.

◆ colorTarget

u8 _gcmSurface::colorTarget

Target of the color buffer.

Specifies the render target to use as a surface. Possible values are:

Definition at line 809 of file gcm_sys.h.

◆ depthFormat

u8 _gcmSurface::depthFormat

Format of the depth buffer.

Possible values are:

Definition at line 841 of file gcm_sys.h.

◆ depthLocation

u8 _gcmSurface::depthLocation

Location of the depth buffer.

Possible values are:

Definition at line 849 of file gcm_sys.h.

◆ depthOffset

u32 _gcmSurface::depthOffset

Offset from the base address of the depth buffer.

As in colorOffset use rsxAddressToOffset to convert effective addresses into offset values. depthOffset should be aligned on a 64 bytes boundery.

Definition at line 858 of file gcm_sys.h.

◆ depthPitch

u32 _gcmSurface::depthPitch

Size of a depth buffer line in bytes.

Definition at line 861 of file gcm_sys.h.

◆ height

u16 _gcmSurface::height

Height of the render buffer (1 - 4096).

Definition at line 867 of file gcm_sys.h.

◆ type

u8 _gcmSurface::type

Type of render target.

Possible values are:

Definition at line 767 of file gcm_sys.h.

◆ width

u16 _gcmSurface::width

Width of the render buffer (1 - 4096).

Definition at line 864 of file gcm_sys.h.

◆ x

u16 _gcmSurface::x

Window offset in x direction (0 - 4095).

Definition at line 870 of file gcm_sys.h.

◆ y

u16 _gcmSurface::y

Window offset in y direction (0 - 4095).

Definition at line 873 of file gcm_sys.h.


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