Move to revision 31 of SPIR-V.
This commit is contained in:
parent
e24a74c320
commit
5e4b1242bf
77 changed files with 6050 additions and 5450 deletions
126
Test/baseResults/spv.test.frag.out
Normal file → Executable file
126
Test/baseResults/spv.test.frag.out
Normal file → Executable file
|
|
@ -5,82 +5,86 @@ Linked fragment stage:
|
|||
|
||||
// Module Version 99
|
||||
// Generated by (magic number): 51a00bb
|
||||
// Id's are bound by 54
|
||||
// Id's are bound by 56
|
||||
|
||||
Source GLSL 110
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4
|
||||
EntryPoint Fragment 4 "main"
|
||||
ExecutionMode 4 OriginLowerLeft
|
||||
Name 4 "main"
|
||||
Name 9 "blendscale"
|
||||
Name 13 "v"
|
||||
Name 16 "texSampler2D"
|
||||
Name 20 "t"
|
||||
Name 23 "scale"
|
||||
Name 30 "w"
|
||||
Name 33 "texSampler3D"
|
||||
Name 37 "coords"
|
||||
Name 43 "gl_FragColor"
|
||||
Name 46 "u"
|
||||
Name 49 "blend"
|
||||
Decorate 20(t) Smooth
|
||||
Decorate 37(coords) Smooth
|
||||
Decorate 43(gl_FragColor) BuiltIn FragColor
|
||||
Name 17 "texSampler2D"
|
||||
Name 21 "t"
|
||||
Name 24 "scale"
|
||||
Name 31 "w"
|
||||
Name 35 "texSampler3D"
|
||||
Name 39 "coords"
|
||||
Name 45 "gl_FragColor"
|
||||
Name 48 "u"
|
||||
Name 51 "blend"
|
||||
Decorate 21(t) Smooth
|
||||
Decorate 39(coords) Smooth
|
||||
Decorate 45(gl_FragColor) BuiltIn FragColor
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
3: TypeFunction 2
|
||||
7: TypeFloat 32
|
||||
8: TypePointer Function 7(float)
|
||||
10: 7(float) Constant 1071971828
|
||||
11: TypeVector 7(float) 4
|
||||
12: TypePointer Function 11(fvec4)
|
||||
14: TypeSampler7(float) 2D filter+texture
|
||||
15: TypePointer UniformConstant 14
|
||||
16(texSampler2D): 15(ptr) Variable UniformConstant
|
||||
18: TypeVector 7(float) 2
|
||||
19: TypePointer Input 18(fvec2)
|
||||
20(t): 19(ptr) Variable Input
|
||||
22: TypePointer UniformConstant 18(fvec2)
|
||||
23(scale): 22(ptr) Variable UniformConstant
|
||||
31: TypeSampler7(float) 3D filter+texture
|
||||
32: TypePointer UniformConstant 31
|
||||
33(texSampler3D): 32(ptr) Variable UniformConstant
|
||||
35: TypeVector 7(float) 3
|
||||
36: TypePointer Input 35(fvec3)
|
||||
37(coords): 36(ptr) Variable Input
|
||||
42: TypePointer Output 11(fvec4)
|
||||
43(gl_FragColor): 42(ptr) Variable Output
|
||||
45: TypePointer UniformConstant 11(fvec4)
|
||||
46(u): 45(ptr) Variable UniformConstant
|
||||
48: TypePointer UniformConstant 7(float)
|
||||
49(blend): 48(ptr) Variable UniformConstant
|
||||
14: TypeImage 7(float) 2D sampled format:Unknown
|
||||
15: TypeSampledImage 14
|
||||
16: TypePointer UniformConstant 15
|
||||
17(texSampler2D): 16(ptr) Variable UniformConstant
|
||||
19: TypeVector 7(float) 2
|
||||
20: TypePointer Input 19(fvec2)
|
||||
21(t): 20(ptr) Variable Input
|
||||
23: TypePointer UniformConstant 19(fvec2)
|
||||
24(scale): 23(ptr) Variable UniformConstant
|
||||
32: TypeImage 7(float) 3D sampled format:Unknown
|
||||
33: TypeSampledImage 32
|
||||
34: TypePointer UniformConstant 33
|
||||
35(texSampler3D): 34(ptr) Variable UniformConstant
|
||||
37: TypeVector 7(float) 3
|
||||
38: TypePointer Input 37(fvec3)
|
||||
39(coords): 38(ptr) Variable Input
|
||||
44: TypePointer Output 11(fvec4)
|
||||
45(gl_FragColor): 44(ptr) Variable Output
|
||||
47: TypePointer UniformConstant 11(fvec4)
|
||||
48(u): 47(ptr) Variable UniformConstant
|
||||
50: TypePointer UniformConstant 7(float)
|
||||
51(blend): 50(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(blendscale): 8(ptr) Variable Function
|
||||
13(v): 12(ptr) Variable Function
|
||||
30(w): 12(ptr) Variable Function
|
||||
Store 9(blendscale) 10
|
||||
17: 14 Load 16(texSampler2D)
|
||||
21: 18(fvec2) Load 20(t)
|
||||
24: 18(fvec2) Load 23(scale)
|
||||
25: 18(fvec2) FAdd 21 24
|
||||
26: 18(fvec2) Load 23(scale)
|
||||
27: 18(fvec2) FDiv 25 26
|
||||
28: 11(fvec4) TextureSample 17 27
|
||||
29: 11(fvec4) VectorShuffle 28 28 3 2 1 0
|
||||
Store 13(v) 29
|
||||
34: 31 Load 33(texSampler3D)
|
||||
38: 35(fvec3) Load 37(coords)
|
||||
39: 11(fvec4) TextureSample 34 38
|
||||
40: 11(fvec4) Load 13(v)
|
||||
41: 11(fvec4) FAdd 39 40
|
||||
Store 30(w) 41
|
||||
44: 11(fvec4) Load 30(w)
|
||||
47: 11(fvec4) Load 46(u)
|
||||
50: 7(float) Load 49(blend)
|
||||
51: 7(float) Load 9(blendscale)
|
||||
52: 7(float) FMul 50 51
|
||||
53: 11(fvec4) ExtInst 1(GLSL.std.450) 36(mix) 44 47 52
|
||||
Store 43(gl_FragColor) 53
|
||||
9(blendscale): 8(ptr) Variable Function
|
||||
13(v): 12(ptr) Variable Function
|
||||
31(w): 12(ptr) Variable Function
|
||||
Store 9(blendscale) 10
|
||||
18: 15 Load 17(texSampler2D)
|
||||
22: 19(fvec2) Load 21(t)
|
||||
25: 19(fvec2) Load 24(scale)
|
||||
26: 19(fvec2) FAdd 22 25
|
||||
27: 19(fvec2) Load 24(scale)
|
||||
28: 19(fvec2) FDiv 26 27
|
||||
29: 11(fvec4) ImageSampleImplicitLod 18 28
|
||||
30: 11(fvec4) VectorShuffle 29 29 3 2 1 0
|
||||
Store 13(v) 30
|
||||
36: 33 Load 35(texSampler3D)
|
||||
40: 37(fvec3) Load 39(coords)
|
||||
41: 11(fvec4) ImageSampleImplicitLod 36 40
|
||||
42: 11(fvec4) Load 13(v)
|
||||
43: 11(fvec4) FAdd 41 42
|
||||
Store 31(w) 43
|
||||
46: 11(fvec4) Load 31(w)
|
||||
49: 11(fvec4) Load 48(u)
|
||||
52: 7(float) Load 51(blend)
|
||||
53: 7(float) Load 9(blendscale)
|
||||
54: 7(float) FMul 52 53
|
||||
55: 11(fvec4) ExtInst 1(GLSL.std.450) 46(Mix) 46 49 54
|
||||
Store 45(gl_FragColor) 55
|
||||
Branch 6
|
||||
6: Label
|
||||
Return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue