34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
|
OpCapability Shader
|
||
|
%1 = OpExtInstImport "GLSL.std.450"
|
||
|
OpMemoryModel Logical GLSL450
|
||
|
OpEntryPoint GLCompute %main "main"
|
||
|
OpExecutionMode %main LocalSize 1 1 1
|
||
|
OpSource GLSL 450
|
||
|
OpName %main "main"
|
||
|
OpName %i "i"
|
||
|
OpName %S "S"
|
||
|
OpMemberName %S 0 "i"
|
||
|
OpName %V "V"
|
||
|
OpDecorate %gl_WorkGroupSize BuiltIn WorkgroupSize
|
||
|
%void = OpTypeVoid
|
||
|
%3 = OpTypeFunction %void
|
||
|
%int = OpTypeInt 32 1
|
||
|
%_ptr_Function_int = OpTypePointer Function %int
|
||
|
%S = OpTypeStruct %int
|
||
|
%_ptr_Private_S = OpTypePointer Private %S
|
||
|
%V = OpVariable %_ptr_Private_S Private
|
||
|
%int_0 = OpConstant %int 0
|
||
|
%_ptr_Private_int = OpTypePointer Private %int
|
||
|
%uint = OpTypeInt 32 0
|
||
|
%v3uint = OpTypeVector %uint 3
|
||
|
%uint_1 = OpConstant %uint 1
|
||
|
%gl_WorkGroupSize = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
|
||
|
%main = OpFunction %void None %3
|
||
|
%5 = OpLabel
|
||
|
%i = OpVariable %_ptr_Function_int Function
|
||
|
%14 = OpAccessChain %_ptr_Private_int %V %int_0
|
||
|
%15 = OpLoad %int %14
|
||
|
OpStore %i %15
|
||
|
OpReturn
|
||
|
OpFunctionEnd
|