blob: ecaadcb26c87644790a6d43317c2cfa18d6fc1e8 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 47
; Schema: 0
OpCapability Shader
%34 = 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 %x_8 "x_8"
OpName %x_9 "x_9"
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_int ArrayStride 4
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 0
OpDecorate %x_7 DescriptorSet 0
OpDecorate %x_7 Binding 1
OpDecorate %x_8 DescriptorSet 0
OpDecorate %x_8 Binding 2
OpDecorate %x_9 DescriptorSet 0
OpDecorate %x_9 Binding 3
%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
%int = OpTypeInt 32 1
%_runtimearr_int = OpTypeRuntimeArray %int
%S = OpTypeStruct %_runtimearr_int
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
%x_6 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%x_7 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%x_8 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%x_9 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%void = OpTypeVoid
%16 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Private_uint = OpTypePointer Private %uint
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%38 = OpTypeFunction %void %v3uint
%main_1 = OpFunction %void None %16
%19 = OpLabel
%22 = OpAccessChain %_ptr_Private_uint %x_3 %uint_0
%23 = OpLoad %uint %22
%25 = OpAccessChain %_ptr_StorageBuffer_int %x_6 %uint_0 %23
%26 = OpLoad %int %25
%27 = OpAccessChain %_ptr_StorageBuffer_int %x_7 %uint_0 %23
%28 = OpLoad %int %27
%29 = OpAccessChain %_ptr_StorageBuffer_int %x_8 %uint_0 %23
%30 = OpLoad %int %29
%31 = OpAccessChain %_ptr_StorageBuffer_int %x_9 %uint_0 %23
%35 = OpBitcast %uint %26
%36 = OpBitcast %uint %28
%37 = OpBitcast %uint %30
%33 = OpExtInst %uint %34 UClamp %35 %36 %37
%32 = OpBitcast %int %33
OpStore %31 %32
OpReturn
OpFunctionEnd
%main_inner = OpFunction %void None %38
%x_3_param = OpFunctionParameter %v3uint
%41 = OpLabel
OpStore %x_3 %x_3_param
%42 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd
%main = OpFunction %void None %16
%44 = OpLabel
%46 = OpLoad %v3uint %x_3_param_1
%45 = OpFunctionCall %void %main_inner %46
OpReturn
OpFunctionEnd