Prevent Push Constant blocks being an array (#2904)

* Prevent Push Constant blocks being an array

* Add push constant array error test

Co-authored-by: Greg Fischer <greg@lunarg.com>
This commit is contained in:
sfricke-samsung
2022-03-23 12:42:21 -05:00
committed by GitHub
parent c6f8e532dd
commit 610fd6edf3
3 changed files with 36 additions and 28 deletions

View File

@@ -46,6 +46,9 @@ layout(push_constant) uniform; // ERROR, needs an object
layout(binding=2, push_constant) uniform pcbnd1 { // ERROR, can't have binding
int a;
} pcbnd1inst;
layout(push_constant) uniform pcbnd2 { // ERROR, can't be array
float a;
} pcbnd2inst[2];
layout(std430, push_constant) uniform pcb1 { int a; } pcb1inst;
layout(push_constant) uniform pcb2 {
int a;