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: 31
|
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"
|
|
|
|
OpName %main_inner "main_inner"
|
|
|
|
OpName %local_invocation_id "local_invocation_id"
|
|
|
|
OpName %local_invocation_index "local_invocation_index"
|
|
|
|
OpName %global_invocation_id "global_invocation_id"
|
|
|
|
OpName %workgroup_id "workgroup_id"
|
2021-06-03 09:38:34 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
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
|
|
|
%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
|
2021-08-05 17:34:19 +00:00
|
|
|
%9 = OpTypeFunction %void %v3uint %uint %v3uint %v3uint
|
|
|
|
%23 = OpTypeFunction %void
|
|
|
|
%main_inner = OpFunction %void None %9
|
|
|
|
%local_invocation_id = OpFunctionParameter %v3uint
|
|
|
|
%local_invocation_index = OpFunctionParameter %uint
|
|
|
|
%global_invocation_id = OpFunctionParameter %v3uint
|
|
|
|
%workgroup_id = OpFunctionParameter %v3uint
|
|
|
|
%16 = OpLabel
|
|
|
|
%17 = OpCompositeExtract %uint %local_invocation_id 0
|
|
|
|
%18 = OpIAdd %uint %17 %local_invocation_index
|
|
|
|
%19 = OpCompositeExtract %uint %global_invocation_id 0
|
|
|
|
%20 = OpIAdd %uint %18 %19
|
|
|
|
%21 = OpCompositeExtract %uint %workgroup_id 0
|
|
|
|
%22 = OpIAdd %uint %20 %21
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %23
|
|
|
|
%25 = OpLabel
|
|
|
|
%27 = OpLoad %v3uint %local_invocation_id_1
|
|
|
|
%28 = OpLoad %uint %local_invocation_index_1
|
|
|
|
%29 = OpLoad %v3uint %global_invocation_id_1
|
|
|
|
%30 = OpLoad %v3uint %workgroup_id_1
|
|
|
|
%26 = OpFunctionCall %void %main_inner %27 %28 %29 %30
|
2021-06-03 09:38:34 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|