23 lines
275 B
Plaintext
23 lines
275 B
Plaintext
|
#version 450
|
||
|
#extension GL_EXT_buffer_reference: require
|
||
|
|
||
|
layout(buffer_reference) buffer PtrUint
|
||
|
{
|
||
|
uint value;
|
||
|
};
|
||
|
|
||
|
layout(buffer_reference) buffer PtrInt
|
||
|
{
|
||
|
int value;
|
||
|
};
|
||
|
|
||
|
layout(set = 0, binding = 0) buffer Buf
|
||
|
{
|
||
|
PtrUint ptr;
|
||
|
};
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
PtrInt(ptr).value = 10;
|
||
|
}
|