Modify atomic_uint binding check

Modify atomic_uint binding check.

Currently, when not declared with offset, default atomic_unint won't check whether its binding is valid or not more than its limit value.
This commit is contained in:
Chow
2019-12-25 17:08:48 +08:00
parent bd97b6f9f2
commit 891ec09c62
3 changed files with 15 additions and 9 deletions

View File

@@ -1,5 +1,8 @@
#version 450 core
layout(local_size_x = 0) in; // ERROR, 0 not allowed
layout(binding=10000) uniform atomic_uint; // ERROR
void main()
{
shared float f; // ERROR shared must be global