dawn-cmake/test/shader_io/vertex_input_locations_stru...

77 lines
3.4 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 39
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %tint_pointsize %tint_symbol %tint_symbol_1 %tint_symbol_2 %tint_symbol_3 %tint_symbol_6
OpName %tint_pointsize "tint_pointsize"
OpName %tint_symbol "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %tint_symbol_6 "tint_symbol_6"
OpName %tint_symbol_7 "tint_symbol_7"
OpName %tint_symbol_5 "tint_symbol_5"
OpName %main "main"
OpName %VertexInputs "VertexInputs"
OpMemberName %VertexInputs 0 "loc0"
OpMemberName %VertexInputs 1 "loc1"
OpMemberName %VertexInputs 2 "loc2"
OpMemberName %VertexInputs 3 "loc3"
OpDecorate %tint_pointsize BuiltIn PointSize
OpDecorate %tint_symbol Location 0
OpDecorate %tint_symbol_1 Location 1
OpDecorate %tint_symbol_2 Location 2
OpDecorate %tint_symbol_3 Location 3
OpDecorate %tint_symbol_6 BuiltIn Position
OpMemberDecorate %VertexInputs 0 Offset 0
OpMemberDecorate %VertexInputs 1 Offset 4
OpMemberDecorate %VertexInputs 2 Offset 8
OpMemberDecorate %VertexInputs 3 Offset 16
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%4 = OpConstantNull %float
%tint_pointsize = OpVariable %_ptr_Output_float Output %4
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%tint_symbol = OpVariable %_ptr_Input_int Input
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%tint_symbol_1 = OpVariable %_ptr_Input_uint Input
%_ptr_Input_float = OpTypePointer Input %float
%tint_symbol_2 = OpVariable %_ptr_Input_float Input
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%tint_symbol_3 = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%18 = OpConstantNull %v4float
%tint_symbol_6 = OpVariable %_ptr_Output_v4float Output %18
%void = OpTypeVoid
%19 = OpTypeFunction %void %v4float
%24 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%VertexInputs = OpTypeStruct %int %uint %float %v4float
%tint_symbol_7 = OpFunction %void None %19
%tint_symbol_5 = OpFunctionParameter %v4float
%23 = OpLabel
OpStore %tint_symbol_6 %tint_symbol_5
OpReturn
OpFunctionEnd
%main = OpFunction %void None %24
%26 = OpLabel
OpStore %tint_pointsize %float_1
%29 = OpLoad %int %tint_symbol
%30 = OpLoad %uint %tint_symbol_1
%31 = OpLoad %float %tint_symbol_2
%32 = OpLoad %v4float %tint_symbol_3
%33 = OpCompositeConstruct %VertexInputs %29 %30 %31 %32
%34 = OpCompositeExtract %int %33 0
%35 = OpCompositeExtract %uint %33 1
%36 = OpCompositeExtract %float %33 2
%37 = OpCompositeExtract %v4float %33 3
%38 = OpFunctionCall %void %tint_symbol_7 %18
OpReturn
OpFunctionEnd