Files
wgpu/tests/out/spv/interface.vertex.spvasm
T

68 lines
1.7 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: rspirv
; Bound: 41
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %31 "vertex" %17 %20 %22 %24 %26 %28
OpMemberDecorate %7 0 Offset 0
OpMemberDecorate %7 1 Offset 16
OpMemberDecorate %9 0 Offset 0
OpMemberDecorate %9 1 Offset 4
OpMemberDecorate %9 2 Offset 8
OpDecorate %11 ArrayStride 4
OpMemberDecorate %14 0 Offset 0
OpMemberDecorate %15 0 Offset 0
OpDecorate %17 BuiltIn VertexIndex
OpDecorate %20 BuiltIn InstanceIndex
OpDecorate %22 Location 10
OpDecorate %24 Invariant
OpDecorate %24 BuiltIn Position
OpDecorate %26 Location 1
OpDecorate %28 BuiltIn PointSize
%2 = OpTypeVoid
%4 = OpTypeInt 32 1
%3 = OpConstant %4 1
%6 = OpTypeFloat 32
%5 = OpTypeVector %6 4
%7 = OpTypeStruct %5 %6
%8 = OpTypeInt 32 0
%9 = OpTypeStruct %6 %8 %6
%10 = OpTypeBool
%12 = OpConstant %8 1
%11 = OpTypeArray %8 %12
%13 = OpTypeVector %8 3
%14 = OpTypeStruct %8
%15 = OpTypeStruct %8
%18 = OpTypePointer Input %8
%17 = OpVariable %18 Input
%20 = OpVariable %18 Input
%22 = OpVariable %18 Input
%25 = OpTypePointer Output %5
%24 = OpVariable %25 Output
%27 = OpTypePointer Output %6
%26 = OpVariable %27 Output
%29 = OpTypePointer Output %6
%28 = OpVariable %29 Output
%30 = OpConstant %6 1.0
%32 = OpTypeFunction %2
%31 = OpFunction %2 None %32
%16 = OpLabel
%19 = OpLoad %8 %17
%21 = OpLoad %8 %20
%23 = OpLoad %8 %22
OpStore %28 %30
OpBranch %33
%33 = OpLabel
%34 = OpIAdd %8 %19 %21
%35 = OpIAdd %8 %34 %23
%36 = OpCompositeConstruct %5 %30 %30 %30 %30
%37 = OpConvertUToF %6 %35
%38 = OpCompositeConstruct %7 %36 %37
%39 = OpCompositeExtract %5 %38 0
OpStore %24 %39
%40 = OpCompositeExtract %6 %38 1
OpStore %26 %40
OpReturn
OpFunctionEnd