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

77 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 39
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %loc0_1 %loc1_1 %loc2_1 %loc3_1 %value %vertex_point_size
OpName %loc0_1 "loc0_1"
OpName %loc1_1 "loc1_1"
OpName %loc2_1 "loc2_1"
OpName %loc3_1 "loc3_1"
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %VertexInputs "VertexInputs"
OpMemberName %VertexInputs 0 "loc0"
OpMemberName %VertexInputs 1 "loc1"
OpMemberName %VertexInputs 2 "loc2"
OpMemberName %VertexInputs 3 "loc3"
OpName %main_inner "main_inner"
OpName %inputs "inputs"
OpName %main "main"
OpDecorate %loc0_1 Location 0
OpDecorate %loc1_1 Location 1
OpDecorate %loc2_1 Location 2
OpDecorate %loc3_1 Location 3
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %VertexInputs 0 Offset 0
OpMemberDecorate %VertexInputs 1 Offset 4
OpMemberDecorate %VertexInputs 2 Offset 8
OpMemberDecorate %VertexInputs 3 Offset 16
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%loc0_1 = OpVariable %_ptr_Input_int Input
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%loc1_1 = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%_ptr_Input_float = OpTypePointer Input %float
%loc2_1 = OpVariable %_ptr_Input_float Input
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%loc3_1 = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%15 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %15
%_ptr_Output_float = OpTypePointer Output %float
%18 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %18
%VertexInputs = OpTypeStruct %int %uint %float %v4float
%19 = OpTypeFunction %v4float %VertexInputs
%void = OpTypeVoid
%28 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%main_inner = OpFunction %v4float None %19
%inputs = OpFunctionParameter %VertexInputs
%23 = OpLabel
%24 = OpCompositeExtract %int %inputs 0
%25 = OpCompositeExtract %uint %inputs 1
%26 = OpCompositeExtract %float %inputs 2
%27 = OpCompositeExtract %v4float %inputs 3
OpReturnValue %15
OpFunctionEnd
%main = OpFunction %void None %28
%31 = OpLabel
%33 = OpLoad %int %loc0_1
%34 = OpLoad %uint %loc1_1
%35 = OpLoad %float %loc2_1
%36 = OpLoad %v4float %loc3_1
%37 = OpCompositeConstruct %VertexInputs %33 %34 %35 %36
%32 = OpFunctionCall %v4float %main_inner %37
OpStore %value %32
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd