GxDeviceCaps
function · gx · orchestration
- Address
0x58a230· 11 bytes, up to0x58a23a- Signature
void * __cdecl ()- Meaning
- Returns the device's capability block at +0x23c through a tail call to 0x5923d0
- Confidence
- verified, proof one
- Finding
- gx/device#capability-block
- Test
models::particle_quad_expand_difftest,models::particle_quad_expand_rotated_difftest,models::particle_quad_expand_stretched_difftest,models::particle_quad_expand_tiled_difftest,models::particle_quad_expand_tiled_rotated_difftest
Finding: Capability block in gx: the device
0x598ee0 fills the block at [dev+0x23c] from the D3DCAPS9 copy at +0x38ac: the first dword is the smaller of MaxSimultaneousTextures and 8, and +0x60, +0x64, +0x68 are the larger of MaxTextureWidth and 256. From +0x2c it holds one flag per GxTex format 0 to 8, set when CheckDeviceFormat accepts that format as a texture for the current display format (0x599350); the formats are the codes at 0x80a100: none, A8R8G8B8, A4R4G4B4, A1R5G5B5, R5G6B5, DXT1, DXT3, DXT5, V8U8. The texture layer reads +0x40, +0x44 and +0x48 as the DXT support flags and +0x60 as the size limit.
The derivation is in the doc.
Callers 51
- TextureDecodeBlp gx
- TextureLimitSize gx
- TextureBuildFromBlp gx
- TextureChooseFormat gx
- Script::GetVideoCaps ui
- CreateInteriorTarget ui
- GxBuildVertices gx
- CGxTexFlags::CGxTexFlags gx
- GxTexCreate2D gx
- GxTexCreate gx
- CGxDeviceOpenGl::LoadProjection gx
- BuildDecalTexCoords gxumath
- SnapViewportRect font
- CGxStringBatch::EmitGlyphQuads font
- CGUnit_C::DrawBowstring objectlayer
- DrawFishingLine objectlayer
- ConsoleDeviceInitialize console
- BakeRainPacket lighting
- BakePatterPacket lighting
- Snow::Snow lighting
- Snow::DrawShader lighting
- Sand::Sand lighting
- Sand::DrawFixed lighting
- Sand::DrawShader lighting
- Mists::Render lighting
- HandleSpecularOption cvar
- HandleMapObjOverbrightOption cvar
- HandlePixelShadersOption cvar
- ValidateAnisotropy terrain
- UpdateRipples terrain
- FillDetailDoodadVertices terrain
- DrawInteriorGroupLiquid terrain
- DrawExteriorGroupLiquid terrain
- VertexBufferBlockFill models
- CMapChunk::DrawLayers terrain
- SWING::Step playername
- WorldTextSetPixelProjection playername
- ConstructGlowWavePass ffxeffects
- ConstructDeathPass ffxeffects
- ConstructWaveMapPass ffxeffects
- ConstructGlowEffect ffxeffects
- ConstructDeathEffect ffxeffects
- FFXInitialize ffxeffects
- GetTargetMode ffxeffects
- ComputeTargetSizes ffxeffects
- AllocateTarget ffxeffects
- DrawDecalBatches lighting
- M2CacheInitialize models
- CM2Shared::InitializeView models
- CParticleEmitter2::WriteQuads models
- LoadGlare lighting
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.