• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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