Files
wgpu/tests/out/spv/interpolate.spvasm
T

209 lines
5.5 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: rspirv
; Bound: 108
OpCapability Shader
OpCapability SampleRateShading
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %42 "main" %29 %31 %33 %35 %37 %39 %40 %41
OpEntryPoint Fragment %106 "main" %85 %88 %91 %94 %97 %100 %102 %104
OpExecutionMode %106 OriginUpperLeft
OpSource GLSL 450
OpName %25 "FragmentInput"
OpMemberName %25 0 "position"
OpMemberName %25 1 "flat"
OpMemberName %25 2 "linear"
OpMemberName %25 3 "linear_centroid"
OpMemberName %25 4 "linear_sample"
OpMemberName %25 5 "perspective"
OpMemberName %25 6 "perspective_centroid"
OpMemberName %25 7 "perspective_sample"
OpName %26 "out"
OpName %29 "position"
OpName %31 "flat"
OpName %33 "linear"
OpName %35 "linear_centroid"
OpName %37 "linear_sample"
OpName %39 "perspective"
OpName %40 "perspective_centroid"
OpName %41 "perspective_sample"
OpName %42 "main"
OpName %85 "position"
OpName %88 "flat"
OpName %91 "linear"
OpName %94 "linear_centroid"
OpName %97 "linear_sample"
OpName %100 "perspective"
OpName %102 "perspective_centroid"
OpName %104 "perspective_sample"
OpName %106 "main"
OpMemberDecorate %25 0 Offset 0
OpMemberDecorate %25 1 Offset 16
OpMemberDecorate %25 2 Offset 20
OpMemberDecorate %25 3 Offset 24
OpMemberDecorate %25 4 Offset 32
OpMemberDecorate %25 5 Offset 48
OpMemberDecorate %25 6 Offset 64
OpMemberDecorate %25 7 Offset 68
OpDecorate %29 BuiltIn Position
OpDecorate %31 Location 0
OpDecorate %31 Flat
OpDecorate %33 Location 1
OpDecorate %33 NoPerspective
OpDecorate %35 Location 2
OpDecorate %35 NoPerspective
OpDecorate %35 Centroid
OpDecorate %37 Location 3
OpDecorate %37 NoPerspective
OpDecorate %37 Sample
OpDecorate %39 Location 4
OpDecorate %40 Location 5
OpDecorate %40 Centroid
OpDecorate %41 Location 6
OpDecorate %41 Sample
OpDecorate %85 BuiltIn FragCoord
OpDecorate %88 Location 0
OpDecorate %88 Flat
OpDecorate %91 Location 1
OpDecorate %91 NoPerspective
OpDecorate %94 Location 2
OpDecorate %94 NoPerspective
OpDecorate %94 Centroid
OpDecorate %97 Location 3
OpDecorate %97 NoPerspective
OpDecorate %97 Sample
OpDecorate %100 Location 4
OpDecorate %102 Location 5
OpDecorate %102 Centroid
OpDecorate %104 Location 6
OpDecorate %104 Sample
%2 = OpTypeVoid
%4 = OpTypeFloat 32
%3 = OpConstant %4 2.0
%5 = OpConstant %4 4.0
%6 = OpConstant %4 5.0
%7 = OpConstant %4 6.0
%9 = OpTypeInt 32 0
%8 = OpConstant %9 8
%10 = OpConstant %4 27.0
%11 = OpConstant %4 64.0
%12 = OpConstant %4 125.0
%13 = OpConstant %4 216.0
%14 = OpConstant %4 343.0
%15 = OpConstant %4 512.0
%16 = OpConstant %4 729.0
%17 = OpConstant %4 1000.0
%18 = OpConstant %4 1331.0
%19 = OpConstant %4 1728.0
%20 = OpConstant %4 2197.0
%21 = OpConstant %4 2744.0
%22 = OpTypeVector %4 4
%23 = OpTypeVector %4 2
%24 = OpTypeVector %4 3
%25 = OpTypeStruct %22 %9 %4 %23 %24 %22 %4 %4
%27 = OpTypePointer Function %25
%30 = OpTypePointer Output %22
%29 = OpVariable %30 Output
%32 = OpTypePointer Output %9
%31 = OpVariable %32 Output
%34 = OpTypePointer Output %4
%33 = OpVariable %34 Output
%36 = OpTypePointer Output %23
%35 = OpVariable %36 Output
%38 = OpTypePointer Output %24
%37 = OpVariable %38 Output
%39 = OpVariable %30 Output
%40 = OpVariable %34 Output
%41 = OpVariable %34 Output
%43 = OpTypeFunction %2
%45 = OpTypePointer Function %22
%47 = OpConstant %9 0
%49 = OpTypePointer Function %9
%50 = OpConstant %9 1
%52 = OpTypePointer Function %4
%53 = OpConstant %9 2
%55 = OpTypePointer Function %23
%57 = OpConstant %9 3
%59 = OpTypePointer Function %24
%61 = OpConstant %9 4
%64 = OpConstant %9 5
%66 = OpConstant %9 6
%68 = OpConstant %9 7
%73 = OpTypePointer Output %4
%86 = OpTypePointer Input %22
%85 = OpVariable %86 Input
%89 = OpTypePointer Input %9
%88 = OpVariable %89 Input
%92 = OpTypePointer Input %4
%91 = OpVariable %92 Input
%95 = OpTypePointer Input %23
%94 = OpVariable %95 Input
%98 = OpTypePointer Input %24
%97 = OpVariable %98 Input
%100 = OpVariable %86 Input
%102 = OpVariable %92 Input
%104 = OpVariable %92 Input
%42 = OpFunction %2 None %43
%28 = OpLabel
%26 = OpVariable %27 Function
OpBranch %44
%44 = OpLabel
%46 = OpCompositeConstruct %22 %3 %5 %6 %7
%48 = OpAccessChain %45 %26 %47
OpStore %48 %46
%51 = OpAccessChain %49 %26 %50
OpStore %51 %8
%54 = OpAccessChain %52 %26 %53
OpStore %54 %10
%56 = OpCompositeConstruct %23 %11 %12
%58 = OpAccessChain %55 %26 %57
OpStore %58 %56
%60 = OpCompositeConstruct %24 %13 %14 %15
%62 = OpAccessChain %59 %26 %61
OpStore %62 %60
%63 = OpCompositeConstruct %22 %16 %17 %18 %19
%65 = OpAccessChain %45 %26 %64
OpStore %65 %63
%67 = OpAccessChain %52 %26 %66
OpStore %67 %20
%69 = OpAccessChain %52 %26 %68
OpStore %69 %21
%70 = OpLoad %25 %26
%71 = OpCompositeExtract %22 %70 0
OpStore %29 %71
%72 = OpAccessChain %73 %29 %50
%74 = OpLoad %4 %72
%75 = OpFNegate %4 %74
OpStore %72 %75
%76 = OpCompositeExtract %9 %70 1
OpStore %31 %76
%77 = OpCompositeExtract %4 %70 2
OpStore %33 %77
%78 = OpCompositeExtract %23 %70 3
OpStore %35 %78
%79 = OpCompositeExtract %24 %70 4
OpStore %37 %79
%80 = OpCompositeExtract %22 %70 5
OpStore %39 %80
%81 = OpCompositeExtract %4 %70 6
OpStore %40 %81
%82 = OpCompositeExtract %4 %70 7
OpStore %41 %82
OpReturn
OpFunctionEnd
%106 = OpFunction %2 None %43
%83 = OpLabel
%87 = OpLoad %22 %85
%90 = OpLoad %9 %88
%93 = OpLoad %4 %91
%96 = OpLoad %23 %94
%99 = OpLoad %24 %97
%101 = OpLoad %22 %100
%103 = OpLoad %4 %102
%105 = OpLoad %4 %104
%84 = OpCompositeConstruct %25 %87 %90 %93 %96 %99 %101 %103 %105
OpBranch %107
%107 = OpLabel
OpReturn
OpFunctionEnd