blob: 9b588f9f242409736ef0b9c5149fcb0c315a11e9 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %2 "main" %gl_GlobalInvocationID
OpExecutionMode %2 LocalSize 1 1 1
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
OpDecorate %_runtimearr_uint ArrayStride 4
OpDecorate %_struct_5 BufferBlock
OpMemberDecorate %_struct_5 0 Offset 0
OpDecorate %6 DescriptorSet 0
OpDecorate %6 Binding 0
OpDecorate %7 DescriptorSet 0
OpDecorate %7 Binding 1
OpDecorate %8 DescriptorSet 0
OpDecorate %8 Binding 2
OpDecorate %9 DescriptorSet 0
OpDecorate %9 Binding 3
%uint = OpTypeInt 32 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%_ptr_Input_uint = OpTypePointer Input %uint
%v3uint = OpTypeVector %uint 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
%void = OpTypeVoid
%16 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%_runtimearr_uint = OpTypeRuntimeArray %uint
%v4uint = OpTypeVector %uint 4
%_struct_5 = OpTypeStruct %_runtimearr_uint
%_ptr_Uniform__struct_5 = OpTypePointer Uniform %_struct_5
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
%6 = OpVariable %_ptr_Uniform__struct_5 Uniform
%7 = OpVariable %_ptr_Uniform__struct_5 Uniform
%8 = OpVariable %_ptr_Uniform__struct_5 Uniform
%9 = OpVariable %_ptr_Uniform__struct_5 Uniform
%2 = OpFunction %void None %16
%21 = OpLabel
%22 = OpAccessChain %_ptr_Input_uint %gl_GlobalInvocationID %uint_0
%23 = OpLoad %uint %22
%24 = OpAccessChain %_ptr_Uniform_uint %6 %uint_0 %23
%25 = OpLoad %uint %24
%26 = OpAccessChain %_ptr_Uniform_uint %7 %uint_0 %23
%27 = OpLoad %uint %26
%28 = OpAccessChain %_ptr_Uniform_uint %8 %uint_0 %23
%29 = OpLoad %uint %28
%30 = OpExtInst %uint %1 SClamp %25 %27 %29
%31 = OpAccessChain %_ptr_Uniform_uint %9 %uint_0 %23
OpStore %31 %30
OpReturn
OpFunctionEnd