Material State/PlayStation 3
Structures
CgsGraphics::MaterialState
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | BlendState* | mpBlendState | ||
0x4 | 0x4 | DepthStencilState* | mpDepthStencilState | ||
0x8 | 0x4 | RasterizerState* | mpRasterizerState |
renderengine::BlendState
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint8_t[4] | m_blendEnable | ||
0x4 | 0x2 | uint16_t | m_sourceColor | See Input | |
0x6 | 0x2 | uint16_t | m_destinationColor | See Input | |
0x8 | 0x2 | uint16_t | m_sourceAlpha | See Input | |
0xA | 0x2 | uint16_t | m_destinationAlpha | See Input | |
0xC | 0x2 | uint16_t | m_colorOperation | See Operation | |
0xE | 0x2 | uint16_t | m_alphaOperation | See Operation | |
0x10 | 0x4 | uint32_t | m_constantColor | ||
0x14 | 0x4 | uint32_t | m_constantColor2 | ||
0x18 | 0x4 | uint32_t | m_colorMask | ||
0x1c | 0x4 | uint32_t | m_colorMaskMrt | ||
0x20 | 0x1 | uint8_t | m_multiSampleEnable | ||
0x21 | 0x1 | uint8_t | m_alphaToCoverage | ||
0x22 | 0x1 | uint8_t | m_alphaToOne | ||
0x23 | 0x1 | uint8_t | m_alphaTestEnable | ||
0x24 | 0x2 | uint16_t | m_multisampleMask | ||
0x26 | 0x2 | uint16_t | m_alphaTestFunc | See Function | |
0x28 | 0x4 | uint32_t | m_alphaTestRef |
renderengine::DepthStencilState
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | Function | m_depthFunction | See Function | |
0x4 | 0x1 | uint8_t | m_depthTestEnable | ||
0x5 | 0x1 | uint8_t | m_depthWriteEnable | ||
0x6 | 0x1 | uint8_t | m_stencilTestEnable | ||
0x7 | 0x1 | uint8_t | m_twoSidedStencilTestEnable | ||
0x8 | 0x4 | Function | m_stencilFunc | See Function | |
0xc | 0x4 | uint32_t | m_stencilRef | ||
0x10 | 0x4 | uint32_t | m_stencilMask | ||
0x14 | 0x4 | uint32_t | m_stencilWriteMask | ||
0x18 | 0x4 | StencilOperation | m_stencilFailOp | See StencilOperation | |
0x1c | 0x4 | StencilOperation | m_stencilDepthFailOp | See StencilOperation | |
0x20 | 0x4 | StencilOperation | m_stencilDepthPassOp | See StencilOperation | |
0x24 | 0x4 | Function | m_backStencilFunc | ||
0x28 | 0x4 | uint32_t | m_backStencilRef | ||
0x2c | 0x4 | uint32_t | m_backStencilMask | ||
0x30 | 0x4 | uint32_t | m_backStencilWriteMask | ||
0x34 | 0x4 | StencilOperation | m_backStencilFailOp | See StencilOperation | |
0x38 | 0x4 | StencilOperation | m_backStencilDepthFailOp | See StencilOperation | |
0x3c | 0x4 | StencilOperation | m_backStencilDepthPassOp | See StencilOperation |
renderengine::RasterizerState
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | m_primitiveResetIndex | ||
0x4 | 0x4 | uint32_t | m_primitiveResetEnable | ||
0x8 | 0x2 | uint16_t | m_cullFace | See CullMode | |
0xC | 0x4 | uint32_t | m_cullFaceEnable | ||
0x10 | 0x4 | float32_t | m_offsetFactor | ||
0x14 | 0x4 | float32_t | m_offsetUnits | ||
0x18 | 0x4 | uint32_t | m_offsetEnable | ||
0x1C | 0x4 | uint32_t | m_scissorTestEnable | ||
0x20 | 0x4 | FrontFace | m_frontFace | See FrontFace | |
0x24 | 0x4 | PS3ShadeMode | m_shadeMode | See PS3ShadeMode | |
0x28 | 0x4 | FillMode | m_fillModeFront | See FillMode | |
0x2C | 0x4 | FillMode | m_fillModeBack | See FillMode |
Enumerations
renderengine::BlendState::Input
Name | Value | Comments |
---|---|---|
INPUT_ZERO | 0x0 | |
INPUT_ONE | 0x1 | |
INPUT_SRCCOLOR | 0x300 | |
INPUT_INVSRCCOLOR | 0x301 | |
INPUT_SRCALPHA | 0x302 | |
INPUT_INVSRCALPHA | 0x303 | |
INPUT_DESTALPHA | 0x304 | |
INPUT_INVDESTALPHA | 0x305 | |
INPUT_DESTCOLOR | 0x306 | |
INPUT_INVDESTCOLOR | 0x307 | |
INPUT_SRCALPHASATURATE | 0x308 | |
INPUT_CONSTANTCOLOR | 0x8001 | |
INPUT_INVCONSTANTCOLOR | 0x8002 | |
INPUT_CONSTANTALPHA | 0x8003 | |
INPUT_INVCONSTANTALPHA | 0x8004 |
renderengine::BlendState::Operation
Name | Value | Comments |
---|---|---|
OPERATION_ADD | 0x8006 | |
OPERATION_MIN | 0x8007 | |
OPERATION_MAX | 0x8008 | |
OPERATION_SUBTRACT | 0x800A | |
OPERATION_REVSUBTRACT | 0x800B |
renderengine::BlendState::Function
Name | Value | Comments |
---|---|---|
FUNCTION_NEVER | 0x200 | |
FUNCTION_LESS | 0x201 | |
FUNCTION_EQUAL | 0x202 | |
FUNCTION_LESSEQUAL | 0x203 | |
FUNCTION_GREATER | 0x204 | |
FUNCTION_NOTEQUAL | 0x205 | |
FUNCTION_GREATEREQUAL | 0x206 | |
FUNCTION_ALWAYS | 0x207 | |
FUNCTION_FORCEENUMSIZEINT | 0x7FFFFFFF |
renderengine::DepthStencilState::Function
Name | Value | Comments |
---|---|---|
FUNCTION_NEVER | 0x200 | |
FUNCTION_LESS | 0x201 | |
FUNCTION_EQUAL | 0x202 | |
FUNCTION_LESSEQUAL | 0x203 | |
FUNCTION_GREATER | 0x204 | |
FUNCTION_NOTEQUAL | 0x205 | |
FUNCTION_GREATEREQUAL | 0x206 | |
FUNCTION_ALWAYS | 0x207 | |
FUNCTION_FORCEENUMSIZEINT | 0x7FFFFFFF |
renderengine::DepthStencilState::StencilOperation
Name | Value | Comments |
---|---|---|
STENCILOPERATION_ZERO | 0x0 | |
STENCILOPERATION_NA | 0x0 | |
STENCILOPERATION_INVERT | 0x150A | |
STENCILOPERATION_KEEP | 0x1E00 | |
STENCILOPERATION_REPLACE | 0x1E01 | |
STENCILOPERATION_INCR | 0x1E02 | |
STENCILOPERATION_DECR | 0x1E03 | |
STENCILOPERATION_INCRWRAP | 0x8507 | |
STENCILOPERATION_DECRWRAP | 0x8508 | |
STENCILOPERATION_FORCEENUMSIZEINT | 0x7FFFFFFF |
renderengine::RasterizerState::CullMode
Name | Value | Comments |
---|---|---|
CULLMODE_NONE | 0x0 | |
CULLMODE_FRONT | 0x404 | |
CULLMODE_BACK | 0x405 | |
CULLMODE_FRONT_AND_BACK | 0x408 | |
CULLMODE_FORCEENUMSIZEINT | 0x7FFFFFFF |
renderengine::RasterizerState::FrontFace
Name | Value | Comments |
---|---|---|
FRONTFACE_CW | 0x900 | |
PS3FRONTFACE_CW | 0x900 | |
PS3FRONTFACE_CCW | 0x901 | |
FRONTFACE_CCW | 0x901 | |
FRONTFACE_FORCEENUMSIZEINT | 0x7FFFFFFF |
renderengine::RasterizerState::PS3ShadeMode
Name | Value | Comments |
---|---|---|
PS3SHADEMODE_FLAT | 0x1D00 | |
PS3SHADEMODE_SMOOTH | 0x1D01 | |
PS3SHADEMODE_FORCEENUMSIZEINT | 0x7FFFFFFF |
renderengine::RasterizerState::FillMode
Name | Value | Comments |
---|---|---|
FILLMODE_POINT | 0x1B00 | |
FILLMODE_WIREFRAME | 0x1B01 | |
FILLMODE_SOLID | 0x1B02 | |
FILLMODE_FORCEENUMSIZEINT | 0x7FFFFFFF |