dawn-cmake/test/tint/bug/tint/1653.wgsl.expected.spvasm

61 lines
2.7 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vs_main "vs_main" %in_vertex_index_1 %value %vertex_point_size
OpName %in_vertex_index_1 "in_vertex_index_1"
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %vs_main_inner "vs_main_inner"
OpName %in_vertex_index "in_vertex_index"
OpName %var_for_index "var_for_index"
OpName %vs_main "vs_main"
OpDecorate %in_vertex_index_1 BuiltIn VertexIndex
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpDecorate %_arr_v4float_uint_3 ArrayStride 16
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%in_vertex_index_1 = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%8 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %8
%_ptr_Output_float = OpTypePointer Output %float
%11 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %11
%12 = OpTypeFunction %v4float %uint
%uint_3 = OpConstant %uint 3
%_arr_v4float_uint_3 = OpTypeArray %v4float %uint_3
%float_1 = OpConstant %float 1
%19 = OpConstantComposite %v4float %11 %11 %11 %float_1
%20 = OpConstantComposite %v4float %11 %float_1 %11 %float_1
%21 = OpConstantComposite %v4float %float_1 %float_1 %11 %float_1
%22 = OpConstantComposite %_arr_v4float_uint_3 %19 %20 %21
%_ptr_Function__arr_v4float_uint_3 = OpTypePointer Function %_arr_v4float_uint_3
%25 = OpConstantNull %_arr_v4float_uint_3
%_ptr_Function_v4float = OpTypePointer Function %v4float
%void = OpTypeVoid
%29 = OpTypeFunction %void
%vs_main_inner = OpFunction %v4float None %12
%in_vertex_index = OpFunctionParameter %uint
%15 = OpLabel
%var_for_index = OpVariable %_ptr_Function__arr_v4float_uint_3 Function %25
OpStore %var_for_index %22
%27 = OpAccessChain %_ptr_Function_v4float %var_for_index %in_vertex_index
%28 = OpLoad %v4float %27
OpReturnValue %28
OpFunctionEnd
%vs_main = OpFunction %void None %29
%32 = OpLabel
%34 = OpLoad %uint %in_vertex_index_1
%33 = OpFunctionCall %v4float %vs_main_inner %34
OpStore %value %33
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd