Do not propagate packing qualifiers to scalars or vectors
Packing qualifiers have no practical effect on scalars or vectors so this is unnecessary and its confusing tools downstream that consume the AST.
This commit is contained in:
parent
5878bcb17e
commit
02132406bc
4 changed files with 24 additions and 4 deletions
|
|
@ -151,3 +151,18 @@ int layer()
|
|||
{
|
||||
return gl_Layer;
|
||||
}
|
||||
|
||||
// The std140 layout qualifier should NOT propagate all the way down to
|
||||
// the vec3. It is unnecessary and it breaks downstream AST consumers,
|
||||
// notably LunarGlass.
|
||||
|
||||
struct PointLight_t
|
||||
{
|
||||
vec3 vPositionWs ;
|
||||
} ;
|
||||
|
||||
layout( std140, row_major ) uniform PerViewLightData_t
|
||||
{
|
||||
|
||||
PointLight_t g_pointLightData [ 128 ] ;
|
||||
} ;
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ ERROR: node is still EOpNull!
|
|||
0:? 'aconst' ( global 4-element array of int)
|
||||
0:? 'bconst' ( global 64-element array of int)
|
||||
0:? 'sampInArray' ( smooth sample in 4-element array of 3-component vector of float)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140 offset=0) uniform 128-element array of structure{ global 3-component vector of float vPositionWs} g_pointLightData})
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
|
@ -162,4 +163,5 @@ ERROR: node is still EOpNull!
|
|||
0:? 'aconst' ( global 4-element array of int)
|
||||
0:? 'bconst' ( global 64-element array of int)
|
||||
0:? 'sampInArray' ( smooth sample in 4-element array of 3-component vector of float)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140 offset=0) uniform 128-element array of structure{ global 3-component vector of float vPositionWs} g_pointLightData})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue