blob: 9978152e7f4530673864dd7712a18cb417aa68c2 [file] [log] [blame]
;
; vertex_main
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 58
; Schema: 0
OpCapability Shader
OpCapability ImageQuery
%32 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main___point_size_Output
OpName %arg_0 "arg_0"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %vertex_main_position_Output "vertex_main_position_Output"
OpName %vertex_main___point_size_Output "vertex_main___point_size_Output"
OpName %textureLoad_6273b1 "textureLoad_6273b1"
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_inner "vertex_main_inner"
OpMemberName %vertex_main_out 0 "tint_symbol_1_1"
OpName %vertex_main_out "vertex_main_out"
OpName %vertex_main "vertex_main"
OpDecorate %arg_0 DescriptorSet 1
OpDecorate %arg_0 Binding 0
OpDecorate %vertex_main_position_Output BuiltIn Position
OpDecorate %vertex_main___point_size_Output BuiltIn PointSize
OpMemberDecorate %vertex_main_out 0 Offset 0
%float = OpTypeFloat 32
%3 = OpTypeImage %float 2D 0 0 1 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%8 = OpConstantNull %v4float
%tint_symbol_1 = OpVariable %_ptr_Private_v4float Private %8
%_ptr_Output_v4float = OpTypePointer Output %v4float
%vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output
%_ptr_Output_float = OpTypePointer Output %float
%vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output
%void = OpTypeVoid
%15 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%float_0 = OpConstant %float 0
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%uint_1 = OpConstant %uint 1
%25 = OpConstantComposite %v2uint %uint_1 %uint_1
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%28 = OpConstantNull %v2int
%int_1 = OpConstant %int 1
%40 = OpTypeFunction %void %v4float
%vertex_main_out = OpTypeStruct %v4float
%48 = OpTypeFunction %vertex_main_out
%float_1 = OpConstant %float 1
%textureLoad_6273b1 = OpFunction %void None %15
%16 = OpLabel
%res = OpVariable %_ptr_Function_float Function
OpStore %res %float_0
%20 = OpLoad %3 %arg_0 None
%21 = OpImageQuerySize %v2uint %20
%24 = OpISub %v2uint %21 %25
%27 = OpBitcast %v2uint %28
%31 = OpExtInst %v2uint %32 UMin %27 %24
%33 = OpImageFetch %v4float %20 %31 Sample %int_1
%35 = OpCompositeExtract %float %33 0
%36 = OpCompositeConstruct %v4float %35 %float_0 %float_0 %float_0
%37 = OpCompositeExtract %float %36 0
OpStore %res %37 None
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %40
%tint_symbol = OpFunctionParameter %v4float
%41 = OpLabel
OpStore %tint_symbol_1 %tint_symbol None
OpReturn
OpFunctionEnd
%vertex_main_1 = OpFunction %void None %15
%43 = OpLabel
%44 = OpFunctionCall %void %textureLoad_6273b1
%45 = OpFunctionCall %void %tint_symbol_2 %8
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %vertex_main_out None %48
%49 = OpLabel
%50 = OpFunctionCall %void %vertex_main_1
%51 = OpLoad %v4float %tint_symbol_1 None
%52 = OpCompositeConstruct %vertex_main_out %51
OpReturnValue %52
OpFunctionEnd
%vertex_main = OpFunction %void None %15
%54 = OpLabel
%55 = OpFunctionCall %vertex_main_out %vertex_main_inner
%56 = OpCompositeExtract %v4float %55 0
OpStore %vertex_main_position_Output %56 None
OpStore %vertex_main___point_size_Output %float_1 None
OpReturn
OpFunctionEnd
;
; fragment_main
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 37
; Schema: 0
OpCapability Shader
OpCapability ImageQuery
%24 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %fragment_main "fragment_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpName %arg_0 "arg_0"
OpName %textureLoad_6273b1 "textureLoad_6273b1"
OpName %res "res"
OpName %fragment_main_1 "fragment_main_1"
OpName %fragment_main "fragment_main"
OpDecorate %arg_0 DescriptorSet 1
OpDecorate %arg_0 Binding 0
%float = OpTypeFloat 32
%3 = OpTypeImage %float 2D 0 0 1 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant
%void = OpTypeVoid
%7 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%float_0 = OpConstant %float 0
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%uint_1 = OpConstant %uint 1
%17 = OpConstantComposite %v2uint %uint_1 %uint_1
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%20 = OpConstantNull %v2int
%v4float = OpTypeVector %float 4
%int_1 = OpConstant %int 1
%textureLoad_6273b1 = OpFunction %void None %7
%8 = OpLabel
%res = OpVariable %_ptr_Function_float Function
OpStore %res %float_0
%12 = OpLoad %3 %arg_0 None
%13 = OpImageQuerySize %v2uint %12
%16 = OpISub %v2uint %13 %17
%19 = OpBitcast %v2uint %20
%23 = OpExtInst %v2uint %24 UMin %19 %16
%25 = OpImageFetch %v4float %12 %23 Sample %int_1
%28 = OpCompositeExtract %float %25 0
%29 = OpCompositeConstruct %v4float %28 %float_0 %float_0 %float_0
%30 = OpCompositeExtract %float %29 0
OpStore %res %30 None
OpReturn
OpFunctionEnd
%fragment_main_1 = OpFunction %void None %7
%32 = OpLabel
%33 = OpFunctionCall %void %textureLoad_6273b1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %7
%35 = OpLabel
%36 = OpFunctionCall %void %fragment_main_1
OpReturn
OpFunctionEnd
;
; compute_main
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 37
; Schema: 0
OpCapability Shader
OpCapability ImageQuery
%24 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %arg_0 "arg_0"
OpName %textureLoad_6273b1 "textureLoad_6273b1"
OpName %res "res"
OpName %compute_main_1 "compute_main_1"
OpName %compute_main "compute_main"
OpDecorate %arg_0 DescriptorSet 1
OpDecorate %arg_0 Binding 0
%float = OpTypeFloat 32
%3 = OpTypeImage %float 2D 0 0 1 1 Unknown
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant
%void = OpTypeVoid
%7 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%float_0 = OpConstant %float 0
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%uint_1 = OpConstant %uint 1
%17 = OpConstantComposite %v2uint %uint_1 %uint_1
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%20 = OpConstantNull %v2int
%v4float = OpTypeVector %float 4
%int_1 = OpConstant %int 1
%textureLoad_6273b1 = OpFunction %void None %7
%8 = OpLabel
%res = OpVariable %_ptr_Function_float Function
OpStore %res %float_0
%12 = OpLoad %3 %arg_0 None
%13 = OpImageQuerySize %v2uint %12
%16 = OpISub %v2uint %13 %17
%19 = OpBitcast %v2uint %20
%23 = OpExtInst %v2uint %24 UMin %19 %16
%25 = OpImageFetch %v4float %12 %23 Sample %int_1
%28 = OpCompositeExtract %float %25 0
%29 = OpCompositeConstruct %v4float %28 %float_0 %float_0 %float_0
%30 = OpCompositeExtract %float %29 0
OpStore %res %30 None
OpReturn
OpFunctionEnd
%compute_main_1 = OpFunction %void None %7
%32 = OpLabel
%33 = OpFunctionCall %void %textureLoad_6273b1
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %7
%35 = OpLabel
%36 = OpFunctionCall %void %compute_main_1
OpReturn
OpFunctionEnd