xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/spv.intrinsicsSpirvLiteral.vert (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 450 core
2
3#extension GL_EXT_spirv_intrinsics: enable
4
5spirv_instruction(id = 61)
6vec4 load(spirv_by_reference vec4 pointer, spirv_literal int memoryOperands);
7
8spirv_instruction(id = 62)
9void store(spirv_by_reference vec4 pointer, vec4 object, spirv_literal int memoryOperands);
10
11layout(location = 0) in vec4 vec4In;
12layout(location = 1) out vec4 vec4Out;
13
14void main()
15{
16    store(vec4Out, load(vec4In, /*None=*/0x0), /*Volatile=*/0x1);
17}
18