blob: 688e14073c4624af1c311758b1a0337b753b855c [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 38
; Schema: 0
OpCapability Shader
%11 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %tint_insert_bits "tint_insert_bits"
OpName %v "v"
OpName %n "n"
OpName %offset "offset"
OpName %count "count"
OpName %f_1 "f_1"
OpName %v_0 "v"
OpName %n_0 "n"
OpName %offset_1 "offset_1"
OpName %count_0 "count"
OpName %f "f"
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%1 = OpTypeFunction %v3uint %v3uint %v3uint %uint %uint
%uint_32 = OpConstant %uint 32
%void = OpTypeVoid
%17 = OpTypeFunction %void
%21 = OpConstantNull %v3uint
%_ptr_Function_v3uint = OpTypePointer Function %v3uint
%uint_0 = OpConstant %uint 0
%_ptr_Function_uint = OpTypePointer Function %uint
%28 = OpConstantNull %uint
%tint_insert_bits = OpFunction %v3uint None %1
%v = OpFunctionParameter %v3uint
%n = OpFunctionParameter %v3uint
%offset = OpFunctionParameter %uint
%count = OpFunctionParameter %uint
%9 = OpLabel
%10 = OpExtInst %uint %11 UMin %offset %uint_32
%14 = OpIAdd %uint %10 %count
%13 = OpExtInst %uint %11 UMin %uint_32 %14
%16 = OpISub %uint %13 %10
%15 = OpBitFieldInsert %v3uint %v %n %10 %16
OpReturnValue %15
OpFunctionEnd
%f_1 = OpFunction %void None %17
%20 = OpLabel
%v_0 = OpVariable %_ptr_Function_v3uint Function %21
%n_0 = OpVariable %_ptr_Function_v3uint Function %21
%offset_1 = OpVariable %_ptr_Function_uint Function %28
%count_0 = OpVariable %_ptr_Function_uint Function %28
OpStore %v_0 %21
OpStore %n_0 %21
OpStore %offset_1 %uint_0
OpStore %count_0 %uint_0
%30 = OpLoad %v3uint %v_0
%31 = OpLoad %v3uint %n_0
%32 = OpLoad %uint %offset_1
%33 = OpLoad %uint %count_0
%34 = OpFunctionCall %v3uint %tint_insert_bits %30 %31 %32 %33
OpReturn
OpFunctionEnd
%f = OpFunction %void None %17
%36 = OpLabel
%37 = OpFunctionCall %void %f_1
OpReturn
OpFunctionEnd