63 lines
2.7 KiB
Plaintext
63 lines
2.7 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 40
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1
|
|
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
OpName %local_invocation_index_1 "local_invocation_index_1"
|
|
OpName %S "S"
|
|
OpMemberName %S 0 "x"
|
|
OpMemberName %S 1 "a"
|
|
OpMemberName %S 2 "b"
|
|
OpName %wg "wg"
|
|
OpName %compute_main_inner "compute_main_inner"
|
|
OpName %local_invocation_index "local_invocation_index"
|
|
OpName %compute_main "compute_main"
|
|
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
|
|
OpMemberDecorate %S 0 Offset 0
|
|
OpMemberDecorate %S 1 Offset 4
|
|
OpMemberDecorate %S 2 Offset 8
|
|
%uint = OpTypeInt 32 0
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
|
|
%int = OpTypeInt 32 1
|
|
%S = OpTypeStruct %int %uint %uint
|
|
%_ptr_Workgroup_S = OpTypePointer Workgroup %S
|
|
%wg = OpVariable %_ptr_Workgroup_S Workgroup
|
|
%void = OpTypeVoid
|
|
%8 = OpTypeFunction %void %uint
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
|
|
%16 = OpConstantNull %int
|
|
%uint_2 = OpConstant %uint 2
|
|
%uint_1 = OpConstant %uint 1
|
|
%_ptr_Workgroup_uint = OpTypePointer Workgroup %uint
|
|
%23 = OpConstantNull %uint
|
|
%uint_264 = OpConstant %uint 264
|
|
%35 = OpTypeFunction %void
|
|
%compute_main_inner = OpFunction %void None %8
|
|
%local_invocation_index = OpFunctionParameter %uint
|
|
%12 = OpLabel
|
|
%15 = OpAccessChain %_ptr_Workgroup_int %wg %uint_0
|
|
OpStore %15 %16
|
|
%22 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_1
|
|
OpAtomicStore %22 %uint_2 %uint_0 %23
|
|
%26 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_2
|
|
OpAtomicStore %26 %uint_2 %uint_0 %23
|
|
OpControlBarrier %uint_2 %uint_2 %uint_264
|
|
%31 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_1
|
|
OpAtomicStore %31 %uint_2 %uint_0 %uint_1
|
|
%34 = OpAccessChain %_ptr_Workgroup_uint %wg %uint_2
|
|
OpAtomicStore %34 %uint_2 %uint_0 %uint_2
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%compute_main = OpFunction %void None %35
|
|
%37 = OpLabel
|
|
%39 = OpLoad %uint %local_invocation_index_1
|
|
%38 = OpFunctionCall %void %compute_main_inner %39
|
|
OpReturn
|
|
OpFunctionEnd
|