blob: 35000efc3ef18b9ace3ecb87ccfe2d8dbccbebf6 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 42
; Schema: 0
OpCapability Shader
%34 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main" %tint_symbol
OpExecutionMode %main LocalSize 1 1 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 %tint_symbol "tint_symbol"
OpName %main_1 "main_1"
OpName %main "main"
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
OpDecorate %x_8 DescriptorSet 0
OpDecorate %x_8 Binding 2
OpDecorate %x_9 DescriptorSet 0
OpDecorate %x_9 Binding 3
OpDecorate %tint_symbol BuiltIn GlobalInvocationId
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%_ptr_Private_v3uint = OpTypePointer Private %v3uint
%5 = OpConstantNull %v3uint
%x_3 = OpVariable %_ptr_Private_v3uint Private %5
%_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
%x_8 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%x_9 = OpVariable %_ptr_StorageBuffer_S StorageBuffer
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
%tint_symbol = OpVariable %_ptr_Input_v3uint Input
%void = OpTypeVoid
%15 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Private_uint = OpTypePointer Private %uint
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%int = OpTypeInt 32 1
%main_1 = OpFunction %void None %15
%18 = OpLabel
%21 = OpAccessChain %_ptr_Private_uint %x_3 %uint_0
%22 = OpLoad %uint %21
%24 = OpAccessChain %_ptr_StorageBuffer_uint %x_6 %uint_0 %22
%25 = OpLoad %uint %24
%26 = OpAccessChain %_ptr_StorageBuffer_uint %x_7 %uint_0 %22
%27 = OpLoad %uint %26
%28 = OpAccessChain %_ptr_StorageBuffer_uint %x_8 %uint_0 %22
%29 = OpLoad %uint %28
%30 = OpAccessChain %_ptr_StorageBuffer_uint %x_9 %uint_0 %22
%35 = OpBitcast %int %25
%36 = OpBitcast %int %27
%37 = OpBitcast %int %29
%32 = OpExtInst %int %34 SClamp %35 %36 %37
%31 = OpBitcast %uint %32
OpStore %30 %31
OpReturn
OpFunctionEnd
%main = OpFunction %void None %15
%39 = OpLabel
%40 = OpLoad %v3uint %tint_symbol
OpStore %x_3 %40
%41 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd