SHBIN: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! | ! Offset | ||
! | ! Size | ||
! | ! Description | ||
|- | |- | ||
| 0x0 | | 0x0 | ||
Line 21: | Line 21: | ||
| 0x4 | | 0x4 | ||
| 0x4 | | 0x4 | ||
| | | N = number of DVLEs in SHBIN | ||
|- | |- | ||
| 0x8 | | 0x8 | ||
| 0x4 | | 0x4*N | ||
| DVLE | | DVLE offset table; each offset is a u32 relative to the start of the DVLB section | ||
|- | |- | ||
|} | |} | ||
The DVLP file comes directly after the header. | The DVLP file comes directly after the header. | ||
Line 39: | Line 35: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! | ! Offset | ||
! | ! Size | ||
! | ! Description | ||
|- | |- | ||
| 0x0 | | 0x0 | ||
| 0x4 | | 0x4 | ||
| MAGIC "DVLP" | | MAGIC "DVLP" | ||
|- | |||
| 0x4 | |||
| 0x4 | |||
| ? | |||
|- | |||
| 0x8 | |||
| 0x4 | |||
| Offset (relative to DVLP start) to shader program binary blob | |||
|- | |||
| 0xC | |||
| 0x4 | |||
| Size of shader program binary blob, in words | |||
|- | |||
| 0x10 | |||
| 0x4 | |||
| Offset (relative to DVLP start) to "shader table" (?) | |||
|- | |||
| 0x14 | |||
| 0x4 | |||
| Number of "shader table" entries (each entry is 8-byte long) | |||
|- | |||
| 0x18 | |||
| 0x4 | |||
| Offset (relative to DVLP start) to filename symbol table | |||
|- | |- | ||
|} | |} | ||
== DVLE == | == DVLE == | ||
Line 65: | Line 83: | ||
|} | |} | ||
Each DVLE is associated to an individual shader pipeline stage. Typically, the first DVLE is associated to the program's vertex shader and the second is associated to the program's geometry shader. |