2021-06-03 09:38:34 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-09-13 17:11:58 +00:00
|
|
|
; Bound: 39
|
2021-06-03 09:38:34 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-09-13 17:11:58 +00:00
|
|
|
OpEntryPoint GLCompute %main "main" %local_invocation_id_1 %local_invocation_index_1 %global_invocation_id_1 %workgroup_id_1 %num_workgroups_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-09-13 17:11:58 +00:00
|
|
|
OpName %num_workgroups_1 "num_workgroups_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-09-13 17:11:58 +00:00
|
|
|
OpMemberName %ComputeInputs 4 "num_workgroups"
|
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-09-13 17:11:58 +00:00
|
|
|
OpDecorate %num_workgroups_1 BuiltIn NumWorkgroups
|
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
|
2021-09-13 17:11:58 +00:00
|
|
|
OpMemberDecorate %ComputeInputs 4 Offset 48
|
2021-06-03 09:38:34 +00:00
|
|
|
%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-09-13 17:11:58 +00:00
|
|
|
%num_workgroups_1 = OpVariable %_ptr_Input_v3uint Input
|
2021-06-03 09:38:34 +00:00
|
|
|
%void = OpTypeVoid
|
2021-09-13 17:11:58 +00:00
|
|
|
%ComputeInputs = OpTypeStruct %v3uint %uint %v3uint %v3uint %v3uint
|
|
|
|
%10 = OpTypeFunction %void %ComputeInputs
|
|
|
|
%29 = OpTypeFunction %void
|
|
|
|
%main_inner = OpFunction %void None %10
|
2021-08-05 17:34:19 +00:00
|
|
|
%inputs = OpFunctionParameter %ComputeInputs
|
2021-09-13 17:11:58 +00:00
|
|
|
%15 = OpLabel
|
|
|
|
%16 = OpCompositeExtract %v3uint %inputs 0
|
|
|
|
%17 = OpCompositeExtract %uint %16 0
|
|
|
|
%18 = OpCompositeExtract %uint %inputs 1
|
|
|
|
%19 = OpIAdd %uint %17 %18
|
|
|
|
%20 = OpCompositeExtract %v3uint %inputs 2
|
|
|
|
%21 = OpCompositeExtract %uint %20 0
|
|
|
|
%22 = OpIAdd %uint %19 %21
|
|
|
|
%23 = OpCompositeExtract %v3uint %inputs 3
|
|
|
|
%24 = OpCompositeExtract %uint %23 0
|
|
|
|
%25 = OpIAdd %uint %22 %24
|
|
|
|
%26 = OpCompositeExtract %v3uint %inputs 4
|
|
|
|
%27 = OpCompositeExtract %uint %26 0
|
|
|
|
%28 = OpIAdd %uint %25 %27
|
2021-08-05 17:34:19 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-09-13 17:11:58 +00:00
|
|
|
%main = OpFunction %void None %29
|
|
|
|
%31 = OpLabel
|
|
|
|
%33 = OpLoad %v3uint %local_invocation_id_1
|
|
|
|
%34 = OpLoad %uint %local_invocation_index_1
|
|
|
|
%35 = OpLoad %v3uint %global_invocation_id_1
|
|
|
|
%36 = OpLoad %v3uint %workgroup_id_1
|
|
|
|
%37 = OpLoad %v3uint %num_workgroups_1
|
|
|
|
%38 = OpCompositeConstruct %ComputeInputs %33 %34 %35 %36 %37
|
|
|
|
%32 = OpFunctionCall %void %main_inner %38
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|