SPV: Support test #pragma for generating the StorageBuffer storage class.
Longer term, this storage class should be generated based on the mode of compilation.
This commit is contained in:
parent
a8d3db6b32
commit
670271890d
7 changed files with 104 additions and 8 deletions
16
Test/spv.storageBuffer.vert
Normal file
16
Test/spv.storageBuffer.vert
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#version 450
|
||||
|
||||
#pragma use_storage_buffer
|
||||
|
||||
uniform ub {
|
||||
vec4 a;
|
||||
} ubi;
|
||||
|
||||
buffer bb {
|
||||
vec4 b;
|
||||
} bbi;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = ubi.a + bbi.b;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue