Texture/Xbox 360: Difference between revisions

m
no edit summary
m (Table header update)
mNo edit summary
(3 intermediate revisions by the same user not shown)
Line 4:
=== D3DBaseTexture ===
{| class="wikitable"
|-
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || DWORD || Common || || See [[#Common | Common]]
|-
| 0x4 || 0x4 || DWORD || ReferenceCount || ||
Line 21 ⟶ 20:
| 0x18 || 0x4 || DWORD || MipFlush || ||
|-
| 0x1C || 0x18 || [[#GPUTEXTURE_FETCH_CONSTANT|GPUTEXTURE_FETCH_CONSTANT]] || Format || ||
| 0x1C || 0x18 || DWORD[6] || GPUTEXTURE_FETCH_CONSTANT || || See [[#GPUTEXTURE_FETCH_CONSTANT | GPUTEXTURE_FETCH_CONSTANT]]
|}
 
Line 28 ⟶ 27:
 
{| class="wikitable"
|-
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 28 || Flags || D3D resource flags ||
|-
| 28 || 4 || Type || D3D resource type || See [[#D3DRESOURCETYPE | D3DRESOURCETYPE]]
|}
 
Line 40 ⟶ 38:
 
{| class="wikitable"
|-
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
Line 47 ⟶ 44:
| 1 || 9 || Pitch || ||
|-
| 10 || 1 || || paddingPadding ||
|-
| 11 || 2 || MultiSample || || D3D construct: not used by hardware<br/>See [[#GPUMULTISAMPLE_TYPE | GPUMULTISAMPLE_TYPE]]
|-
| 13 || 3 || ClampZ || || See [[#GPUCLAMP | GPUCLAMP]]
|-
| 16 || 3 || ClampY || || See [[#GPUCLAMP | GPUCLAMP]]
|-
| 19 || 3 || ClampX || || See [[#GPUCLAMP | GPUCLAMP]]
|-
| 22 || 2 || SignW || || See [[#GPUSIGN | GPUSIGN]]
|-
| 24 || 2 || SignZ || || See [[#GPUSIGN | GPUSIGN]]
|-
| 26 || 2 || SignY || || See [[#GPUSIGN | GPUSIGN]]
|-
| 28 || 2 || SignX || || See [[#GPUSIGN | GPUSIGN]]
|-
| 30 || 2 || Type || || See [[#GPUCONSTANTTYPE | GPUCONSTANTTYPE]]
|-
| 32 || 20 || BaseAddress || || Start of DWORD 1
|-
| 52 || 1 || ClampPolicy || || See [[#GPUCLAMPPOLICY | GPUCLAMPPOLICY]]
|-
| 53 || 1 || Stacked || ||
|-
| 54 || 2 || RequestSize || || See [[#GPUREQUESTSIZE | GPUREQUESTSIZE]]
|-
| 56 || 2 || Endian || || See [[#GPUENDIAN | GPUENDIAN]]
|-
| 58 || 6 || DataFormat || || See [[#GPUTEXTUREFORMAT | GPUTEXTUREFORMAT]]
|-
| 64 || 32 || Size || || Start of DWORD 2<br/>See [[#GPUTEXTURESIZE | GPUTEXTURESIZE]]
|-
| 96 || 1 || BorderSize || || Start of DWORD 3
|-
| 97 || 3 || || paddingPadding ||
|-
| 100 || 3 || AnisoFilter || || See [[#GPUANISOFILTER | GPUANISOFILTER]]
|-
| 103 || 2 || MipFilter || || See [[#GPUMIPFILTER | GPUMIPFILTER]]
|-
| 105 || 2 || MinFilter || || See [[#GPUMINMAGFILTER | GPUMINMAGFILTER]]
|-
| 107 || 2 || MagFilter || || See [[#GPUMINMAGFILTER | GPUMINMAGFILTER]]
|-
| 109 || 6 || ExpAdjust || ||
|-
| 115 || 3 || SwizzleW || || See [[#GPUSWIZZLE | GPUSWIZZLE]]
|-
| 118 || 3 || SwizzleZ || || See [[#GPUSWIZZLE | GPUSWIZZLE]]
|-
| 121 || 3 || SwizzleY || || See [[#GPUSWIZZLE | GPUSWIZZLE]]
|-
| 124 || 3 || SwizzleX || || See [[#GPUSWIZZLE | GPUSWIZZLE]]
|-
| 127 || 1 || NumFormat || || See [[#GPUNUMFORMAT | GPUNUMFORMAT]]
|-
| 128 || 5 || GradExpAdjustV || || Start of DWORD 4
Line 119 ⟶ 116:
| 154 || 4 || MinMipLevel || ||
|-
| 158 || 1 || VolMinFilter || || See [[#GPUMINMAGFILTER | GPUMINMAGFILTER]]
|-
| 159 || 1 || VolMagFilter || || See [[#GPUMINMAGFILTER | GPUMINMAGFILTER]]
|-
| 160 || 20 || MipAddress || || Start of DWORD 5
Line 127 ⟶ 124:
| 180 || 1 || PackedMips || ||
|-
| 181 || 2 || Dimension || || See [[#GPUDIMENSION | GPUDIMENSION]]
|-
| 183 || 4 || AnisoBias || ||
|-
| 187 || 2 || TriClamp || || See [[#GPUTRICLAMP | GPUTRICLAMP]]
|-
| 189 || 1 || ForceBCWToMax || ||
|-
| 190 || 2 || BorderColor || || See [[#GPUBORDERCOLOR | GPUBORDERCOLOR]]
|}
 
=== GPUTEXTURESIZE ===
Four structures used in the union [[#Size | Size]].
 
==== GPUTEXTURESIZE_1D ====
{| class="wikitable"
|-
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
| 0 || 24 || Width || ||
|-
| 24 || 8 || || paddingPadding ||
|}
 
==== GPUTEXTURESIZE_2D ====
{| class="wikitable"
|-
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
Line 160 ⟶ 155:
| 13 || 13 || Height || ||
|-
| 26 || 6 || || paddingPadding ||
|}
 
==== GPUTEXTURESIZE_3D ====
{| class="wikitable"
|-
! Offset (bits) !! Length (bits) !! Name !! Description !! Comments
|-
Line 177 ⟶ 171:
==== GPUTEXTURESIZE_STACK ====
{| class="wikitable"
|-
! Offsets (bits) !! Length (bits) !! Name !! Description !! Comments
|-
Line 190 ⟶ 183:
=== 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 207 ⟶ 199:
=== D3DRESOURCETYPE ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 251 ⟶ 242:
=== GPUCONSTANTTYPE ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 265 ⟶ 255:
=== GPUSIGN ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 279 ⟶ 268:
=== GPUCLAMP ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 301 ⟶ 289:
=== GPUMULTISAMPLE_TYPE ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 314 ⟶ 301:
 
=== GPUTEXTUREFORMAT ===
Note that Burnout's textures do not appear to have identical format codes—DXT1 is 52 instead of 51 and DXT5 is 54 instead of 53.
 
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 451 ⟶ 435:
=== GPUENDIAN ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 465 ⟶ 448:
=== GPUREQUESTSIZE ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 475 ⟶ 457:
=== GPUCLAMPPOLICY ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 485 ⟶ 466:
=== GPUNUMFORMAT ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 495 ⟶ 475:
=== GPUSWIZZLE ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 513 ⟶ 492:
=== GPUMINMAGFILTER ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 525 ⟶ 503:
=== GPUMIPFILTER ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 539 ⟶ 516:
=== GPUANISOFILTER ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 559 ⟶ 535:
=== GPUBORDERCOLOR ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 573 ⟶ 548:
=== GPUTRICLAMP ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 587 ⟶ 561:
=== GPUDIMENSION ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-