2021-06-03 09:38:34 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 34
|
2021-06-03 09:38:34 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint GLCompute %main "main" %local_invocation_id_1 %local_invocation_index_1 %global_invocation_id_1 %workgroup_id_1
|
2021-06-03 09:38:34 +00:00
|
|
|
OpExecutionMode %main LocalSize 1 1 1
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %local_invocation_id_1 "local_invocation_id_1"
|
|
|
|
OpName %local_invocation_index_1 "local_invocation_index_1"
|
|
|
|
OpName %global_invocation_id_1 "global_invocation_id_1"
|
|
|
|
OpName %workgroup_id_1 "workgroup_id_1"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %ComputeInputs "ComputeInputs"
|
|
|
|
OpMemberName %ComputeInputs 0 "local_invocation_id"
|
|
|
|
OpMemberName %ComputeInputs 1 "local_invocation_index"
|
|
|
|
OpMemberName %ComputeInputs 2 "global_invocation_id"
|
|
|
|
OpMemberName %ComputeInputs 3 "workgroup_id"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
|
|
|
OpName %inputs "inputs"
|
|
|
|
OpName %main "main"
|
|
|
|
OpDecorate %local_invocation_id_1 BuiltIn LocalInvocationId
|
|
|
|
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
|
|
|
|
OpDecorate %global_invocation_id_1 BuiltIn GlobalInvocationId
|
|
|
|
OpDecorate %workgroup_id_1 BuiltIn WorkgroupId
|
2021-06-03 09:38:34 +00:00
|
|
|
OpMemberDecorate %ComputeInputs 0 Offset 0
|
|
|
|
OpMemberDecorate %ComputeInputs 1 Offset 12
|
|
|
|
OpMemberDecorate %ComputeInputs 2 Offset 16
|
|
|
|
OpMemberDecorate %ComputeInputs 3 Offset 32
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
|
|
|
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%local_invocation_id_1 = OpVariable %_ptr_Input_v3uint Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
|
|
|
|
%global_invocation_id_1 = OpVariable %_ptr_Input_v3uint Input
|
|
|
|
%workgroup_id_1 = OpVariable %_ptr_Input_v3uint Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%ComputeInputs = OpTypeStruct %v3uint %uint %v3uint %v3uint
|
2021-08-05 17:34:19 +00:00
|
|
|
%9 = OpTypeFunction %void %ComputeInputs
|
|
|
|
%25 = OpTypeFunction %void
|
|
|
|
%main_inner = OpFunction %void None %9
|
|
|
|
%inputs = OpFunctionParameter %ComputeInputs
|
|
|
|
%14 = OpLabel
|
|
|
|
%15 = OpCompositeExtract %v3uint %inputs 0
|
|
|
|
%16 = OpCompositeExtract %uint %15 0
|
|
|
|
%17 = OpCompositeExtract %uint %inputs 1
|
|
|
|
%18 = OpIAdd %uint %16 %17
|
|
|
|
%19 = OpCompositeExtract %v3uint %inputs 2
|
2021-06-03 09:38:34 +00:00
|
|
|
%20 = OpCompositeExtract %uint %19 0
|
2021-08-05 17:34:19 +00:00
|
|
|
%21 = OpIAdd %uint %18 %20
|
|
|
|
%22 = OpCompositeExtract %v3uint %inputs 3
|
|
|
|
%23 = OpCompositeExtract %uint %22 0
|
|
|
|
%24 = OpIAdd %uint %21 %23
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %25
|
|
|
|
%27 = OpLabel
|
|
|
|
%29 = OpLoad %v3uint %local_invocation_id_1
|
|
|
|
%30 = OpLoad %uint %local_invocation_index_1
|
|
|
|
%31 = OpLoad %v3uint %global_invocation_id_1
|
|
|
|
%32 = OpLoad %v3uint %workgroup_id_1
|
|
|
|
%33 = OpCompositeConstruct %ComputeInputs %29 %30 %31 %32
|
|
|
|
%28 = OpFunctionCall %void %main_inner %33
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|