blob: 53216baf85ccd844acbf974709751799a4f2254a [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 39
; Schema: 0
OpCapability Shader
%28 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main" %x_3_param_1
OpExecutionMode %main LocalSize 1 1 1
OpName %x_3_param_1 "x_3_param_1"
OpName %x_3 "x_3"
OpName %S "S"
OpMemberName %S 0 "field0"
OpName %x_6 "x_6"
OpName %x_7 "x_7"
OpName %main_1 "main_1"
OpName %main_inner "main_inner"
OpName %x_3_param "x_3_param"
OpName %main "main"
OpDecorate %x_3_param_1 BuiltIn GlobalInvocationId
OpDecorate %S Block
OpMemberDecorate %S 0 Offset 0
OpDecorate %_runtimearr_uint ArrayStride 4
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 0
OpDecorate %x_7 DescriptorSet 0
OpDecorate %x_7 Binding 1
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
%x_3_param_1 = OpVariable %_ptr_Input_v3uint Input
%_ptr_Private_v3uint = OpTypePointer Private %v3uint
%7 = OpConstantNull %v3uint
%x_3 = OpVariable %_ptr_Private_v3uint Private %7
%_runtimearr_uint = OpTypeRuntimeArray %uint
%S = OpTypeStruct %_runtimearr_uint
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
%x_6 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%x_7 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%void = OpTypeVoid
%13 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Private_uint = OpTypePointer Private %uint
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%int = OpTypeInt 32 1
%30 = OpTypeFunction %void %v3uint
%main_1 = OpFunction %void None %13
%16 = OpLabel
%19 = OpAccessChain %_ptr_Private_uint %x_3 %uint_0
%20 = OpLoad %uint %19
%22 = OpAccessChain %_ptr_StorageBuffer_uint %x_6 %uint_0 %20
%23 = OpLoad %uint %22
%24 = OpAccessChain %_ptr_StorageBuffer_uint %x_7 %uint_0 %20
%29 = OpBitcast %int %23
%26 = OpExtInst %int %28 SAbs %29
%25 = OpBitcast %uint %26
OpStore %24 %25
OpReturn
OpFunctionEnd
%main_inner = OpFunction %void None %30
%x_3_param = OpFunctionParameter %v3uint
%33 = OpLabel
OpStore %x_3 %x_3_param
%34 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd
%main = OpFunction %void None %13
%36 = OpLabel
%38 = OpLoad %v3uint %x_3_param_1
%37 = OpFunctionCall %void %main_inner %38
OpReturn
OpFunctionEnd