2022-04-06 13:57:54 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-04-26 12:20:02 +00:00
|
|
|
; Bound: 81
|
2022-04-06 13:57:54 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
|
|
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
|
|
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
|
|
OpExecutionMode %fragment_main OriginUpperLeft
|
|
|
|
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
|
|
OpName %value "value"
|
|
|
|
OpName %vertex_point_size "vertex_point_size"
|
|
|
|
OpName %ext_tex_plane_1 "ext_tex_plane_1"
|
|
|
|
OpName %ExternalTextureParams "ExternalTextureParams"
|
|
|
|
OpMemberName %ExternalTextureParams 0 "numPlanes"
|
2022-04-21 16:02:36 +00:00
|
|
|
OpMemberName %ExternalTextureParams 1 "yuvToRgbConversionMatrix"
|
2022-04-06 13:57:54 +00:00
|
|
|
OpName %ext_tex_params "ext_tex_params"
|
|
|
|
OpName %arg_0 "arg_0"
|
|
|
|
OpName %textureLoadExternal "textureLoadExternal"
|
|
|
|
OpName %plane0 "plane0"
|
|
|
|
OpName %plane1 "plane1"
|
|
|
|
OpName %coord "coord"
|
2022-04-26 12:20:02 +00:00
|
|
|
OpName %params "params"
|
2022-04-21 16:02:36 +00:00
|
|
|
OpName %color "color"
|
2022-04-06 13:57:54 +00:00
|
|
|
OpName %textureLoad_8acf41 "textureLoad_8acf41"
|
|
|
|
OpName %res "res"
|
|
|
|
OpName %vertex_main_inner "vertex_main_inner"
|
|
|
|
OpName %vertex_main "vertex_main"
|
|
|
|
OpName %fragment_main "fragment_main"
|
|
|
|
OpName %compute_main "compute_main"
|
|
|
|
OpDecorate %value BuiltIn Position
|
|
|
|
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
|
|
OpDecorate %ext_tex_plane_1 DescriptorSet 1
|
|
|
|
OpDecorate %ext_tex_plane_1 Binding 1
|
|
|
|
OpDecorate %ExternalTextureParams Block
|
|
|
|
OpMemberDecorate %ExternalTextureParams 0 Offset 0
|
2022-04-21 16:02:36 +00:00
|
|
|
OpMemberDecorate %ExternalTextureParams 1 Offset 16
|
|
|
|
OpMemberDecorate %ExternalTextureParams 1 ColMajor
|
|
|
|
OpMemberDecorate %ExternalTextureParams 1 MatrixStride 16
|
2022-04-06 13:57:54 +00:00
|
|
|
OpDecorate %ext_tex_params NonWritable
|
|
|
|
OpDecorate %ext_tex_params DescriptorSet 1
|
|
|
|
OpDecorate %ext_tex_params Binding 2
|
|
|
|
OpDecorate %arg_0 DescriptorSet 1
|
|
|
|
OpDecorate %arg_0 Binding 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%5 = OpConstantNull %v4float
|
|
|
|
%value = 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 0 0 0 1 Unknown
|
|
|
|
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
|
|
%ext_tex_plane_1 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
|
|
%uint = OpTypeInt 32 0
|
2022-04-21 16:02:36 +00:00
|
|
|
%mat3v4float = OpTypeMatrix %v4float 3
|
2022-04-26 12:20:02 +00:00
|
|
|
%ExternalTextureParams = OpTypeStruct %uint %mat3v4float
|
2022-04-06 13:57:54 +00:00
|
|
|
%_ptr_Uniform_ExternalTextureParams = OpTypePointer Uniform %ExternalTextureParams
|
|
|
|
%ext_tex_params = OpVariable %_ptr_Uniform_ExternalTextureParams Uniform
|
|
|
|
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%v2int = OpTypeVector %int 2
|
2022-04-26 12:20:02 +00:00
|
|
|
%18 = OpTypeFunction %v4float %11 %11 %v2int %ExternalTextureParams
|
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
|
|
|
%30 = OpConstantNull %v3float
|
2022-04-06 13:57:54 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2022-04-26 12:20:02 +00:00
|
|
|
%bool = OpTypeBool
|
2022-04-06 13:57:54 +00:00
|
|
|
%int_0 = OpConstant %int 0
|
|
|
|
%v2float = OpTypeVector %float 2
|
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%void = OpTypeVoid
|
2022-04-26 12:20:02 +00:00
|
|
|
%57 = OpTypeFunction %void
|
|
|
|
%64 = OpConstantNull %v2int
|
2022-04-06 13:57:54 +00:00
|
|
|
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
2022-04-26 12:20:02 +00:00
|
|
|
%68 = OpTypeFunction %v4float
|
|
|
|
%textureLoadExternal = OpFunction %v4float None %18
|
2022-04-06 13:57:54 +00:00
|
|
|
%plane0 = OpFunctionParameter %11
|
|
|
|
%plane1 = OpFunctionParameter %11
|
|
|
|
%coord = OpFunctionParameter %v2int
|
2022-04-26 12:20:02 +00:00
|
|
|
%params = OpFunctionParameter %ExternalTextureParams
|
|
|
|
%26 = OpLabel
|
|
|
|
%color = OpVariable %_ptr_Function_v3float Function %30
|
|
|
|
%31 = OpCompositeExtract %uint %params 0
|
|
|
|
%33 = OpIEqual %bool %31 %uint_1
|
|
|
|
OpSelectionMerge %35 None
|
|
|
|
OpBranchConditional %33 %36 %37
|
|
|
|
%36 = OpLabel
|
|
|
|
%38 = OpImageFetch %v4float %plane0 %coord Lod %int_0
|
|
|
|
%40 = OpVectorShuffle %v3float %38 %38 0 1 2
|
|
|
|
OpStore %color %40
|
|
|
|
OpBranch %35
|
|
|
|
%37 = OpLabel
|
|
|
|
%41 = OpImageFetch %v4float %plane0 %coord Lod %int_0
|
|
|
|
%42 = OpCompositeExtract %float %41 0
|
|
|
|
%43 = OpImageFetch %v4float %plane1 %coord Lod %int_0
|
|
|
|
%45 = OpVectorShuffle %v2float %43 %43 0 1
|
|
|
|
%46 = OpCompositeExtract %float %45 0
|
|
|
|
%47 = OpCompositeExtract %float %45 1
|
|
|
|
%49 = OpCompositeConstruct %v4float %42 %46 %47 %float_1
|
|
|
|
%50 = OpCompositeExtract %mat3v4float %params 1
|
|
|
|
%51 = OpVectorTimesMatrix %v3float %49 %50
|
|
|
|
OpStore %color %51
|
|
|
|
OpBranch %35
|
|
|
|
%35 = OpLabel
|
|
|
|
%52 = OpLoad %v3float %color
|
|
|
|
%53 = OpCompositeExtract %float %52 0
|
|
|
|
%54 = OpCompositeExtract %float %52 1
|
|
|
|
%55 = OpCompositeExtract %float %52 2
|
|
|
|
%56 = OpCompositeConstruct %v4float %53 %54 %55 %float_1
|
|
|
|
OpReturnValue %56
|
2022-04-06 13:57:54 +00:00
|
|
|
OpFunctionEnd
|
2022-04-26 12:20:02 +00:00
|
|
|
%textureLoad_8acf41 = OpFunction %void None %57
|
|
|
|
%60 = OpLabel
|
2022-04-06 13:57:54 +00:00
|
|
|
%res = OpVariable %_ptr_Function_v4float Function %5
|
2022-04-26 12:20:02 +00:00
|
|
|
%62 = OpLoad %11 %arg_0
|
|
|
|
%63 = OpLoad %11 %ext_tex_plane_1
|
|
|
|
%65 = OpLoad %ExternalTextureParams %ext_tex_params
|
|
|
|
%61 = OpFunctionCall %v4float %textureLoadExternal %62 %63 %64 %65
|
|
|
|
OpStore %res %61
|
2022-04-06 13:57:54 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-04-26 12:20:02 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %68
|
|
|
|
%70 = OpLabel
|
|
|
|
%71 = OpFunctionCall %void %textureLoad_8acf41
|
2022-04-06 13:57:54 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2022-04-26 12:20:02 +00:00
|
|
|
%vertex_main = OpFunction %void None %57
|
|
|
|
%73 = OpLabel
|
|
|
|
%74 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %74
|
2022-04-06 13:57:54 +00:00
|
|
|
OpStore %vertex_point_size %float_1
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-04-26 12:20:02 +00:00
|
|
|
%fragment_main = OpFunction %void None %57
|
|
|
|
%76 = OpLabel
|
|
|
|
%77 = OpFunctionCall %void %textureLoad_8acf41
|
2022-04-06 13:57:54 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-04-26 12:20:02 +00:00
|
|
|
%compute_main = OpFunction %void None %57
|
|
|
|
%79 = OpLabel
|
|
|
|
%80 = OpFunctionCall %void %textureLoad_8acf41
|
2022-04-06 13:57:54 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|