2021-07-26 22:19:48 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 62
|
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 %textureDimensions_f60bdb "textureDimensions_f60bdb"
|
|
|
|
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
|
|
|
|
%11 = OpTypeImage %float 2D 1 0 1 1 Unknown
|
|
|
|
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
|
|
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
2021-07-26 22:19:48 +00:00
|
|
|
%float_0 = OpConstant %float 0
|
2021-08-05 17:34:19 +00:00
|
|
|
%13 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
|
2021-07-26 22:19:48 +00:00
|
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%tint_symbol_1 = OpVariable %_ptr_Private_v4float Private %13
|
2021-07-26 22:19:48 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%16 = OpTypeFunction %void
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%v2int = OpTypeVector %int 2
|
|
|
|
%int_0 = OpConstant %int 0
|
|
|
|
%23 = OpConstantComposite %v2int %int_0 %int_0
|
|
|
|
%_ptr_Function_v2int = OpTypePointer Function %v2int
|
|
|
|
%26 = OpConstantNull %v2int
|
|
|
|
%30 = OpTypeFunction %void %v4float
|
|
|
|
%vertex_main_out = OpTypeStruct %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%38 = OpTypeFunction %vertex_main_out
|
2021-07-26 22:19:48 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%textureDimensions_f60bdb = OpFunction %void None %16
|
|
|
|
%19 = OpLabel
|
|
|
|
%res = OpVariable %_ptr_Function_v2int Function %26
|
|
|
|
OpStore %res %23
|
2021-08-05 17:34:19 +00:00
|
|
|
%29 = OpLoad %11 %arg_0
|
2021-07-26 22:19:48 +00:00
|
|
|
%28 = OpImageQuerySize %v2int %29
|
|
|
|
OpStore %res %28
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%tint_symbol_2 = OpFunction %void None %30
|
|
|
|
%tint_symbol = OpFunctionParameter %v4float
|
|
|
|
%33 = OpLabel
|
|
|
|
OpStore %tint_symbol_1 %tint_symbol
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%vertex_main_1 = OpFunction %void None %16
|
|
|
|
%35 = OpLabel
|
|
|
|
%36 = OpFunctionCall %void %textureDimensions_f60bdb
|
2021-08-05 17:34:19 +00:00
|
|
|
%37 = OpFunctionCall %void %tint_symbol_2 %13
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%vertex_main_inner = OpFunction %vertex_main_out None %38
|
|
|
|
%41 = OpLabel
|
|
|
|
%42 = OpFunctionCall %void %vertex_main_1
|
|
|
|
%43 = OpLoad %v4float %tint_symbol_1
|
|
|
|
%44 = OpCompositeConstruct %vertex_main_out %43
|
|
|
|
OpReturnValue %44
|
2021-07-26 22:19:48 +00:00
|
|
|
OpFunctionEnd
|
|
|
|
%vertex_main = OpFunction %void None %16
|
2021-08-05 17:34:19 +00:00
|
|
|
%46 = OpLabel
|
|
|
|
%47 = OpFunctionCall %vertex_main_out %vertex_main_inner
|
|
|
|
%48 = OpCompositeExtract %v4float %47 0
|
|
|
|
OpStore %tint_symbol_1_1_1 %48
|
|
|
|
OpStore %vertex_point_size %float_1
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%fragment_main_1 = OpFunction %void None %16
|
2021-08-05 17:34:19 +00:00
|
|
|
%51 = OpLabel
|
|
|
|
%52 = OpFunctionCall %void %textureDimensions_f60bdb
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%fragment_main = OpFunction %void None %16
|
2021-08-05 17:34:19 +00:00
|
|
|
%54 = OpLabel
|
|
|
|
%55 = OpFunctionCall %void %fragment_main_1
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%compute_main_1 = OpFunction %void None %16
|
2021-08-05 17:34:19 +00:00
|
|
|
%57 = OpLabel
|
|
|
|
%58 = OpFunctionCall %void %textureDimensions_f60bdb
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%compute_main = OpFunction %void None %16
|
2021-08-05 17:34:19 +00:00
|
|
|
%60 = OpLabel
|
|
|
|
%61 = OpFunctionCall %void %compute_main_1
|
2021-07-26 22:19:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|