SHBIN: Difference between revisions

Smea (talk | contribs)
Smea (talk | contribs)
boolean, integer and vec4 constants !
Line 160: Line 160:
|}
|}


Constant table entry :
Constant table entry header :
 
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
Line 166: Line 167:
!  Size
!  Size
!  Description
!  Description
|-
|  0x0
|  0x1
|  Constant type
|-
|-
|  0x2
|  0x2
|  0x1
|  0x1
|  Uniform ID
|  Uniform ID
|}
There are (at least) 3 types of constants : 0 is boolean, 1 is integer and 2 is float24 vec4.
Corresponding constant entry formats :
{| class="wikitable" border="1"
|-
!  Offset
!  Size
!  Description
|-
|  0x0
|  0x1
|  0x0
|-
|  0x2
|  0x1
|  Uniform bool ID
|-
|  0x4
|  0x1
|  Value (boolean)
|}
{| class="wikitable" border="1"
|-
!  Offset
!  Size
!  Description
|-
|  0x0
|  0x1
|  0x2
|-
|  0x2
|  0x1
|  Uniform vector ID
|-
|-
|  0x4
|  0x4