2021-07-26 22:19:48 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-10-26 18:36:44 +00:00
|
|
|
; Bound: 58
|
2021-07-26 22:19:48 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpCapability ImageQuery
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Vertex %vertex_main "vertex_main" %tint_symbol_1_1_1 %vertex_point_size
|
2021-07-26 22:19:48 +00:00
|
|
|
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
|
|
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
|
|
OpExecutionMode %fragment_main OriginUpperLeft
|
|
|
|
OpExecutionMode %compute_main LocalSize 1 1 1
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %tint_symbol_1_1_1 "tint_symbol_1_1_1"
|
|
|
|
OpName %vertex_point_size "vertex_point_size"
|
2021-07-26 22:19:48 +00:00
|
|
|
OpName %arg_0 "arg_0"
|
|
|
|
OpName %tint_symbol_1 "tint_symbol_1"
|
|
|
|
OpName %textureNumSamples_a3c8a0 "textureNumSamples_a3c8a0"
|
|
|
|
OpName %res "res"
|
|
|
|
OpName %tint_symbol_2 "tint_symbol_2"
|
|
|
|
OpName %tint_symbol "tint_symbol"
|
|
|
|
OpName %vertex_main_1 "vertex_main_1"
|
|
|
|
OpName %vertex_main_out "vertex_main_out"
|
|
|
|
OpMemberName %vertex_main_out 0 "tint_symbol_1_1"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %vertex_main_inner "vertex_main_inner"
|
2021-07-26 22:19:48 +00:00
|
|
|
OpName %vertex_main "vertex_main"
|
|
|
|
OpName %fragment_main_1 "fragment_main_1"
|
|
|
|
OpName %fragment_main "fragment_main"
|
|
|
|
OpName %compute_main_1 "compute_main_1"
|
|
|
|
OpName %compute_main "compute_main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %tint_symbol_1_1_1 BuiltIn Position
|
|
|
|
OpDecorate %vertex_point_size BuiltIn PointSize
|
2021-07-26 22:19:48 +00:00
|
|
|
OpDecorate %arg_0 DescriptorSet 1
|
|
|
|
OpDecorate %arg_0 Binding 0
|
|
|
|
OpMemberDecorate %vertex_main_out 0 Offset 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
2021-08-05 17:34:19 +00:00
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%5 = OpConstantNull %v4float
|
|
|
|
%tint_symbol_1_1_1 = OpVariable %_ptr_Output_v4float Output %5
|
|
|
|
%_ptr_Output_float = OpTypePointer Output %float
|
|
|
|
%8 = OpConstantNull %float
|
|
|
|
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
2022-04-08 08:33:28 +00:00
|
|
|
%11 = OpTypeImage %float 2D 0 0 1 1 Unknown
|
2021-08-05 17:34:19 +00:00
|
|
|
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
|
|
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
2021-07-26 22:19:48 +00:00
|
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
2022-01-05 20:24:22 +00:00
|
|
|
%tint_symbol_1 = OpVariable %_ptr_Private_v4float Private %5
|
2021-07-26 22:19:48 +00:00
|
|
|
%void = OpTypeVoid
|
2022-01-05 20:24:22 +00:00
|
|
|
%14 = OpTypeFunction %void
|
2021-07-26 22:19:48 +00:00
|
|
|
%int = OpTypeInt 32 1
|
2022-06-01 15:57:22 +00:00
|
|
|
%19 = OpConstantNull %int
|
2021-07-26 22:19:48 +00:00
|
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
2022-10-26 18:36:44 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%26 = OpTypeFunction %void %v4float
|
2021-07-26 22:19:48 +00:00
|
|
|
%vertex_main_out = OpTypeStruct %v4float
|
2022-10-26 18:36:44 +00:00
|
|
|
%34 = OpTypeFunction %vertex_main_out
|
2021-07-26 22:19:48 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2022-01-05 20:24:22 +00:00
|
|
|
%textureNumSamples_a3c8a0 = OpFunction %void None %14
|
|
|
|
%17 = OpLabel
|
2022-06-01 15:57:22 +00:00
|
|
|
%res = OpVariable %_ptr_Function_int Function %19
|
|
|
|
OpStore %res %19
|
2022-10-26 18:36:44 +00:00
|
|
|
%25 = OpLoad %11 %arg_0
|
|
|
|
%23 = OpImageQuerySamples %uint %25
|
|
|
|
%22 = OpBitcast %int %23
|
2022-06-01 15:57:22 +00:00
|
|
|
OpStore %res %22
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-10-26 18:36:44 +00:00
|
|
|
%tint_symbol_2 = OpFunction %void None %26
|
2021-07-26 22:19:48 +00:00
|
|
|
%tint_symbol = OpFunctionParameter %v4float
|
2022-10-26 18:36:44 +00:00
|
|
|
%29 = OpLabel
|
2021-07-26 22:19:48 +00:00
|
|
|
OpStore %tint_symbol_1 %tint_symbol
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-01-05 20:24:22 +00:00
|
|
|
%vertex_main_1 = OpFunction %void None %14
|
2022-10-26 18:36:44 +00:00
|
|
|
%31 = OpLabel
|
|
|
|
%32 = OpFunctionCall %void %textureNumSamples_a3c8a0
|
|
|
|
%33 = OpFunctionCall %void %tint_symbol_2 %5
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-10-26 18:36:44 +00:00
|
|
|
%vertex_main_inner = OpFunction %vertex_main_out None %34
|
|
|
|
%37 = OpLabel
|
|
|
|
%38 = OpFunctionCall %void %vertex_main_1
|
|
|
|
%39 = OpLoad %v4float %tint_symbol_1
|
|
|
|
%40 = OpCompositeConstruct %vertex_main_out %39
|
|
|
|
OpReturnValue %40
|
2021-07-26 22:19:48 +00:00
|
|
|
OpFunctionEnd
|
2022-01-05 20:24:22 +00:00
|
|
|
%vertex_main = OpFunction %void None %14
|
2022-10-26 18:36:44 +00:00
|
|
|
%42 = OpLabel
|
|
|
|
%43 = OpFunctionCall %vertex_main_out %vertex_main_inner
|
|
|
|
%44 = OpCompositeExtract %v4float %43 0
|
|
|
|
OpStore %tint_symbol_1_1_1 %44
|
2021-08-05 17:34:19 +00:00
|
|
|
OpStore %vertex_point_size %float_1
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-01-05 20:24:22 +00:00
|
|
|
%fragment_main_1 = OpFunction %void None %14
|
2022-10-26 18:36:44 +00:00
|
|
|
%47 = OpLabel
|
|
|
|
%48 = OpFunctionCall %void %textureNumSamples_a3c8a0
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-01-05 20:24:22 +00:00
|
|
|
%fragment_main = OpFunction %void None %14
|
2022-10-26 18:36:44 +00:00
|
|
|
%50 = OpLabel
|
|
|
|
%51 = OpFunctionCall %void %fragment_main_1
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-01-05 20:24:22 +00:00
|
|
|
%compute_main_1 = OpFunction %void None %14
|
2022-10-26 18:36:44 +00:00
|
|
|
%53 = OpLabel
|
|
|
|
%54 = OpFunctionCall %void %textureNumSamples_a3c8a0
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-01-05 20:24:22 +00:00
|
|
|
%compute_main = OpFunction %void None %14
|
2022-10-26 18:36:44 +00:00
|
|
|
%56 = OpLabel
|
|
|
|
%57 = OpFunctionCall %void %compute_main_1
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|