GL_EXT_buffer_reference
This commit is contained in:
parent
6eab476e5a
commit
9f2aec49e9
55 changed files with 3093 additions and 103 deletions
23
Test/spv.bufferhandle10.frag
Normal file
23
Test/spv.bufferhandle10.frag
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#version 450
|
||||
|
||||
#extension GL_ARB_gpu_shader_int64 : enable
|
||||
#extension GL_EXT_buffer_reference : enable
|
||||
|
||||
layout(buffer_reference, std430) buffer blockType {
|
||||
uint x[];
|
||||
};
|
||||
|
||||
layout(std430) buffer t2 {
|
||||
blockType f;
|
||||
} t;
|
||||
|
||||
layout(location = 0) flat in uint i;
|
||||
|
||||
void main() {
|
||||
|
||||
atomicAdd(t.f.x[i], 1);
|
||||
|
||||
coherent blockType b = t.f;
|
||||
b.x[0] = 2;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue