SPIRV-Cross/shaders/vulkan/comp/buffer-reference-bitcast.nocompat.vk.comp

23 lines
275 B
Plaintext
Raw Normal View History

#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;
}