Texture/Xbox 360: Difference between revisions
m
no edit summary
(Created page.) |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1:
=
Most of this information is derived from the MS Xbox 360 SDK and [[Burnout Paradise (2008-01-30 build)]]'s XDB.
=== D3DBaseTexture ===
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || DWORD || Common || || See [[#Common
|-
| 0x4 || 0x4 || DWORD || ReferenceCount || ||
Line 21 ⟶ 20:
| 0x18 || 0x4 || DWORD || MipFlush || ||
|-
| 0x1C || 0x18 || [[#GPUTEXTURE_FETCH_CONSTANT|GPUTEXTURE_FETCH_CONSTANT]] || Format || ||
|}
Line 28 ⟶ 27:
{| class="wikitable"
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 28 || Flags || D3D resource flags ||
|-
|
|}
=== GPUTEXTURE_FETCH_CONSTANT ===
Official documentation is in LSB 0 notation. It has been converted to MSB 0 and its DWORDs have been merged into one table.
{| class="wikitable"
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 1 || Tiled || || Start of DWORD 0
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
| 52 || 1 || ClampPolicy || || See [[#GPUCLAMPPOLICY|GPUCLAMPPOLICY]]
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
| 97 || 3 || || Padding ||
|-
|
|-
| 103 || 2 || MipFilter || || See [[#GPUMIPFILTER|GPUMIPFILTER]]
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
| 149 || 1 || MagAnisoWalk || ||
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|-
|
|}
=== GPUTEXTURESIZE ===
Four structures used in the union
==== GPUTEXTURESIZE_1D ====
{| class="wikitable"
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 24 || Width || ||
|-
| 24 || 8 || ||
|}
==== GPUTEXTURESIZE_2D ====
{| class="wikitable"
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 13 || Width || ||
Line 205 ⟶ 155:
| 13 || 13 || Height || ||
|-
| 26 || 6 || ||
|}
==== GPUTEXTURESIZE_3D ====
{| class="wikitable"
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 11 || Width || ||
Line 222 ⟶ 171:
==== GPUTEXTURESIZE_STACK ====
{| class="wikitable"
! Offsets (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 13 || Width || ||
Line 230 ⟶ 178:
|-
| 26 || 6 || Depth || ||
|}
= Unions =
=== Size ===
{| class="wikitable"
! Length !! Type !! Name !! Description !! Comments
|-
| 0x4 || [[#GPUTEXTURESIZE_1D|GPUTEXTURESIZE_1D]] || OneD || ||
|-
| 0x4 || [[#GPUTEXTURESIZE_2D|GPUTEXTURESIZE_2D]] || TwoD || ||
|-
| 0x4 || [[#GPUTEXTURESIZE_3D|GPUTEXTURESIZE_3D]] || ThreeD || ||
|-
| 0x4 || [[#GPUTEXTURESIZE_STACK|GPUTEXTURESIZE_STACK]] || Stack || ||
|}
Line 237 ⟶ 199:
=== D3DRESOURCETYPE ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 281 ⟶ 242:
=== GPUCONSTANTTYPE ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 295 ⟶ 255:
=== GPUSIGN ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 309 ⟶ 268:
=== GPUCLAMP ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 331 ⟶ 289:
=== GPUMULTISAMPLE_TYPE ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 344 ⟶ 301:
=== GPUTEXTUREFORMAT ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 481 ⟶ 435:
=== GPUENDIAN ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 495 ⟶ 448:
=== GPUREQUESTSIZE ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 505 ⟶ 457:
=== GPUCLAMPPOLICY ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 515 ⟶ 466:
=== GPUNUMFORMAT ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 525 ⟶ 475:
=== GPUSWIZZLE ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 543 ⟶ 492:
=== GPUMINMAGFILTER ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 555 ⟶ 503:
=== GPUMIPFILTER ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 569 ⟶ 516:
=== GPUANISOFILTER ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 589 ⟶ 535:
=== GPUBORDERCOLOR ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 603 ⟶ 548:
=== GPUTRICLAMP ===
{| class="wikitable"
! Name !! Value !! Comments
|-
Line 617 ⟶ 561:
=== GPUDIMENSION ===
{| class="wikitable"
! Name !! Value !! Comments
|-
|