2022-02-23 21:18:09 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-06-01 15:57:22 +00:00
|
|
|
; Bound: 35
|
2022-02-23 21:18:09 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
%11 = OpExtInstImport "GLSL.std.450"
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %f "f"
|
|
|
|
OpExecutionMode %f LocalSize 1 1 1
|
|
|
|
OpName %tint_extract_bits "tint_extract_bits"
|
|
|
|
OpName %v "v"
|
|
|
|
OpName %offset "offset"
|
|
|
|
OpName %count "count"
|
|
|
|
OpName %f_1 "f_1"
|
|
|
|
OpName %v_0 "v"
|
|
|
|
OpName %offset_1 "offset_1"
|
|
|
|
OpName %count_0 "count"
|
|
|
|
OpName %f "f"
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%v3int = OpTypeVector %int 3
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%1 = OpTypeFunction %v3int %v3int %uint %uint
|
|
|
|
%uint_32 = OpConstant %uint 32
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%17 = OpTypeFunction %void
|
|
|
|
%21 = OpConstantNull %v3int
|
|
|
|
%_ptr_Function_v3int = OpTypePointer Function %v3int
|
2022-06-01 15:57:22 +00:00
|
|
|
%24 = OpConstantNull %uint
|
2022-02-23 21:18:09 +00:00
|
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
|
|
%tint_extract_bits = OpFunction %v3int None %1
|
|
|
|
%v = OpFunctionParameter %v3int
|
|
|
|
%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 = OpBitFieldSExtract %v3int %v %10 %16
|
|
|
|
OpReturnValue %15
|
|
|
|
OpFunctionEnd
|
|
|
|
%f_1 = OpFunction %void None %17
|
|
|
|
%20 = OpLabel
|
|
|
|
%v_0 = OpVariable %_ptr_Function_v3int Function %21
|
2022-06-01 15:57:22 +00:00
|
|
|
%offset_1 = OpVariable %_ptr_Function_uint Function %24
|
|
|
|
%count_0 = OpVariable %_ptr_Function_uint Function %24
|
2022-02-23 21:18:09 +00:00
|
|
|
OpStore %v_0 %21
|
2022-06-01 15:57:22 +00:00
|
|
|
OpStore %offset_1 %24
|
|
|
|
OpStore %count_0 %24
|
|
|
|
%28 = OpLoad %v3int %v_0
|
|
|
|
%29 = OpLoad %uint %offset_1
|
|
|
|
%30 = OpLoad %uint %count_0
|
|
|
|
%31 = OpFunctionCall %v3int %tint_extract_bits %28 %29 %30
|
2022-02-23 21:18:09 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%f = OpFunction %void None %17
|
2022-06-01 15:57:22 +00:00
|
|
|
%33 = OpLabel
|
|
|
|
%34 = OpFunctionCall %void %f_1
|
2022-02-23 21:18:09 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|