Generate error for binding on push_constant
This commit is contained in:
parent
9c5309a22a
commit
002b3f55c7
3 changed files with 32 additions and 26 deletions
|
|
@ -43,6 +43,9 @@ layout(push_constant) buffer pcb { // ERROR, not on a buffer
|
|||
layout(push_constant) uniform float pcfloat; // ERROR 2X: not on a non-block, and non-opaque outside block
|
||||
|
||||
layout(push_constant) uniform; // ERROR, needs an object
|
||||
layout(binding=2, push_constant) uniform pcbnd1 { // ERROR, can't have binding
|
||||
int a;
|
||||
} pcbnd1inst;
|
||||
layout(std430, push_constant) uniform pcb1 { int a; } pcb1inst;
|
||||
layout(push_constant) uniform pcb2 {
|
||||
int a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue