• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test: SpvParserMemoryTest_EmitStatement_AccessChain_VectorSwizzle.spvasm
2; SPIR-V
3; Version: 1.0
4; Generator: Khronos SPIR-V Tools Assembler; 0
5; Bound: 101
6; Schema: 0
7OpCapability Shader
8OpMemoryModel Logical Simple
9OpEntryPoint Fragment %100 "main"
10OpExecutionMode %100 OriginUpperLeft
11OpName %myvar "myvar"
12%void = OpTypeVoid
13%4 = OpTypeFunction %void
14%uint = OpTypeInt 32 0
15%v4uint = OpTypeVector %uint 4
16%uint_2 = OpConstant %uint 2
17%uint_42 = OpConstant %uint 42
18%_ptr_Private_uint = OpTypePointer Private %uint
19%_ptr_Private_v4uint = OpTypePointer Private %v4uint
20%myvar = OpVariable %_ptr_Private_v4uint Private
21%100 = OpFunction %void None %4
22%11 = OpLabel
23%2 = OpAccessChain %_ptr_Private_uint %myvar %uint_2
24OpStore %2 %uint_42
25OpReturn
26OpFunctionEnd
27
28