Changes

133 bytes added ,  13:58, 17 March 2014
no edit summary
Line 181: Line 181:  
|-
 
|-
 
| 1
 
| 1
| Entry index
+
| Entry attribute permutation (lower 8 bytes)
 
|-
 
|-
 
| 2
 
| 2
| Value is: <nowiki>0x10000000 | (arraytype<<16).</nowiki>
+
| Value is: <nowiki>((numattrib)<<28 | (stride<<16) | ((attrib_permuation>>32)&0xFFFF).</nowiki> (stride in bytes)
 
|}
 
|}
    +
A given entry corresponds to a buffer, but a single buffer may contain attributes of multiple different interlaced attributes, hence the attribute permutation parameter which lists the various attributes that can be found in the buffer, and in which order.
 
When the entry is unused, the entry data is all-zero.
 
When the entry is unused, the entry data is all-zero.
  −
===== Entry array types =====
  −
{| class="wikitable" border="1"
  −
!  Type
  −
!  Description
  −
|-
  −
| 0x2
  −
| ?
  −
|-
  −
| 0x3
  −
| Normals array
  −
|-
  −
| 0x4
  −
| Texture coordinates array
  −
|-
  −
| 0xC
  −
| Vertex array
  −
|-
  −
| 0x10
  −
| Color array
  −
|}
      
===== Array data-type/size values =====
 
===== Array data-type/size values =====
373

edits