mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-14 13:51:04 +00:00
d3f1122a44
Rationalizes the entire tracking of the linker object nodes, effecting GLSL, HLSL, and SPIR-V, to allow tracked objects to be fully edited before their type snapshot for linker objects. Should only effect things when the rest of the AST contained no reference to the symbol, because normal AST nodes were not stale. Also will only effect such objects when their types were edited.
427 lines
20 KiB
Plaintext
427 lines
20 KiB
Plaintext
hlsl.gather.array.dx10.frag
|
|
Shader version: 450
|
|
gl_FragCoord origin is upper left
|
|
0:? Sequence
|
|
0:24 Function Definition: main( (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:24 Function Parameters:
|
|
0:? Sequence
|
|
0:29 Sequence
|
|
0:29 move second child to first child (temp 4-component vector of float)
|
|
0:29 'txval20' (temp 4-component vector of float)
|
|
0:29 textureGather (global 4-component vector of float)
|
|
0:29 Construct combined texture-sampler (temp sampler2DArray)
|
|
0:29 'g_tTex2df4a' (uniform texture2DArray)
|
|
0:29 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.100000
|
|
0:? 0.200000
|
|
0:? 0.300000
|
|
0:30 Sequence
|
|
0:30 move second child to first child (temp 4-component vector of int)
|
|
0:30 'txval21' (temp 4-component vector of int)
|
|
0:30 textureGather (global 4-component vector of int)
|
|
0:30 Construct combined texture-sampler (temp isampler2DArray)
|
|
0:30 'g_tTex2di4a' (uniform itexture2DArray)
|
|
0:30 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.300000
|
|
0:? 0.400000
|
|
0:? 0.500000
|
|
0:31 Sequence
|
|
0:31 move second child to first child (temp 4-component vector of uint)
|
|
0:31 'txval22' (temp 4-component vector of uint)
|
|
0:31 textureGather (global 4-component vector of uint)
|
|
0:31 Construct combined texture-sampler (temp usampler2DArray)
|
|
0:31 'g_tTex2du4a' (uniform utexture2DArray)
|
|
0:31 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.500000
|
|
0:? 0.600000
|
|
0:? 0.700000
|
|
0:35 Sequence
|
|
0:35 move second child to first child (temp 4-component vector of float)
|
|
0:35 'txval40' (temp 4-component vector of float)
|
|
0:35 textureGather (global 4-component vector of float)
|
|
0:35 Construct combined texture-sampler (temp samplerCubeArray)
|
|
0:35 'g_tTexcdf4a' (uniform textureCubeArray)
|
|
0:35 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.100000
|
|
0:? 0.200000
|
|
0:? 0.300000
|
|
0:? 0.400000
|
|
0:36 Sequence
|
|
0:36 move second child to first child (temp 4-component vector of int)
|
|
0:36 'txval41' (temp 4-component vector of int)
|
|
0:36 textureGather (global 4-component vector of int)
|
|
0:36 Construct combined texture-sampler (temp isamplerCubeArray)
|
|
0:36 'g_tTexcdi4a' (uniform itextureCubeArray)
|
|
0:36 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.400000
|
|
0:? 0.500000
|
|
0:? 0.600000
|
|
0:? 0.700000
|
|
0:37 Sequence
|
|
0:37 move second child to first child (temp 4-component vector of uint)
|
|
0:37 'txval42' (temp 4-component vector of uint)
|
|
0:37 textureGather (global 4-component vector of uint)
|
|
0:37 Construct combined texture-sampler (temp usamplerCubeArray)
|
|
0:37 'g_tTexcdu4a' (uniform utextureCubeArray)
|
|
0:37 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.700000
|
|
0:? 0.800000
|
|
0:? 0.900000
|
|
0:? 1.000000
|
|
0:39 move second child to first child (temp 4-component vector of float)
|
|
0:39 Color: direct index for structure (temp 4-component vector of float)
|
|
0:39 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:39 Constant:
|
|
0:39 0 (const int)
|
|
0:39 Constant:
|
|
0:39 1.000000
|
|
0:39 1.000000
|
|
0:39 1.000000
|
|
0:39 1.000000
|
|
0:40 move second child to first child (temp float)
|
|
0:40 Depth: direct index for structure (temp float)
|
|
0:40 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:40 Constant:
|
|
0:40 1 (const int)
|
|
0:40 Constant:
|
|
0:40 1.000000
|
|
0:42 Sequence
|
|
0:42 Sequence
|
|
0:42 move second child to first child (temp 4-component vector of float)
|
|
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
|
0:42 Color: direct index for structure (temp 4-component vector of float)
|
|
0:42 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:42 Constant:
|
|
0:42 0 (const int)
|
|
0:42 move second child to first child (temp float)
|
|
0:? 'Depth' (out float FragDepth)
|
|
0:42 Depth: direct index for structure (temp float)
|
|
0:42 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:42 Constant:
|
|
0:42 1 (const int)
|
|
0:42 Branch: Return
|
|
0:? Linker Objects
|
|
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
|
0:? 'Depth' (out float FragDepth)
|
|
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? 'g_tTex1df4a' (layout(binding=1 ) uniform texture1DArray)
|
|
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1DArray)
|
|
0:? 'g_tTex1di4a' (uniform itexture1DArray)
|
|
0:? 'g_tTex1du4a' (uniform utexture1DArray)
|
|
0:? 'g_tTex2df4a' (uniform texture2DArray)
|
|
0:? 'g_tTex2di4a' (uniform itexture2DArray)
|
|
0:? 'g_tTex2du4a' (uniform utexture2DArray)
|
|
0:? 'g_tTexcdf4a' (uniform textureCubeArray)
|
|
0:? 'g_tTexcdi4a' (uniform itextureCubeArray)
|
|
0:? 'g_tTexcdu4a' (uniform utextureCubeArray)
|
|
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
Shader version: 450
|
|
gl_FragCoord origin is upper left
|
|
0:? Sequence
|
|
0:24 Function Definition: main( (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:24 Function Parameters:
|
|
0:? Sequence
|
|
0:29 Sequence
|
|
0:29 move second child to first child (temp 4-component vector of float)
|
|
0:29 'txval20' (temp 4-component vector of float)
|
|
0:29 textureGather (global 4-component vector of float)
|
|
0:29 Construct combined texture-sampler (temp sampler2DArray)
|
|
0:29 'g_tTex2df4a' (uniform texture2DArray)
|
|
0:29 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.100000
|
|
0:? 0.200000
|
|
0:? 0.300000
|
|
0:30 Sequence
|
|
0:30 move second child to first child (temp 4-component vector of int)
|
|
0:30 'txval21' (temp 4-component vector of int)
|
|
0:30 textureGather (global 4-component vector of int)
|
|
0:30 Construct combined texture-sampler (temp isampler2DArray)
|
|
0:30 'g_tTex2di4a' (uniform itexture2DArray)
|
|
0:30 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.300000
|
|
0:? 0.400000
|
|
0:? 0.500000
|
|
0:31 Sequence
|
|
0:31 move second child to first child (temp 4-component vector of uint)
|
|
0:31 'txval22' (temp 4-component vector of uint)
|
|
0:31 textureGather (global 4-component vector of uint)
|
|
0:31 Construct combined texture-sampler (temp usampler2DArray)
|
|
0:31 'g_tTex2du4a' (uniform utexture2DArray)
|
|
0:31 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.500000
|
|
0:? 0.600000
|
|
0:? 0.700000
|
|
0:35 Sequence
|
|
0:35 move second child to first child (temp 4-component vector of float)
|
|
0:35 'txval40' (temp 4-component vector of float)
|
|
0:35 textureGather (global 4-component vector of float)
|
|
0:35 Construct combined texture-sampler (temp samplerCubeArray)
|
|
0:35 'g_tTexcdf4a' (uniform textureCubeArray)
|
|
0:35 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.100000
|
|
0:? 0.200000
|
|
0:? 0.300000
|
|
0:? 0.400000
|
|
0:36 Sequence
|
|
0:36 move second child to first child (temp 4-component vector of int)
|
|
0:36 'txval41' (temp 4-component vector of int)
|
|
0:36 textureGather (global 4-component vector of int)
|
|
0:36 Construct combined texture-sampler (temp isamplerCubeArray)
|
|
0:36 'g_tTexcdi4a' (uniform itextureCubeArray)
|
|
0:36 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.400000
|
|
0:? 0.500000
|
|
0:? 0.600000
|
|
0:? 0.700000
|
|
0:37 Sequence
|
|
0:37 move second child to first child (temp 4-component vector of uint)
|
|
0:37 'txval42' (temp 4-component vector of uint)
|
|
0:37 textureGather (global 4-component vector of uint)
|
|
0:37 Construct combined texture-sampler (temp usamplerCubeArray)
|
|
0:37 'g_tTexcdu4a' (uniform utextureCubeArray)
|
|
0:37 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? Constant:
|
|
0:? 0.700000
|
|
0:? 0.800000
|
|
0:? 0.900000
|
|
0:? 1.000000
|
|
0:39 move second child to first child (temp 4-component vector of float)
|
|
0:39 Color: direct index for structure (temp 4-component vector of float)
|
|
0:39 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:39 Constant:
|
|
0:39 0 (const int)
|
|
0:39 Constant:
|
|
0:39 1.000000
|
|
0:39 1.000000
|
|
0:39 1.000000
|
|
0:39 1.000000
|
|
0:40 move second child to first child (temp float)
|
|
0:40 Depth: direct index for structure (temp float)
|
|
0:40 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:40 Constant:
|
|
0:40 1 (const int)
|
|
0:40 Constant:
|
|
0:40 1.000000
|
|
0:42 Sequence
|
|
0:42 Sequence
|
|
0:42 move second child to first child (temp 4-component vector of float)
|
|
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
|
0:42 Color: direct index for structure (temp 4-component vector of float)
|
|
0:42 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:42 Constant:
|
|
0:42 0 (const int)
|
|
0:42 move second child to first child (temp float)
|
|
0:? 'Depth' (out float FragDepth)
|
|
0:42 Depth: direct index for structure (temp float)
|
|
0:42 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
|
|
0:42 Constant:
|
|
0:42 1 (const int)
|
|
0:42 Branch: Return
|
|
0:? Linker Objects
|
|
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
|
0:? 'Depth' (out float FragDepth)
|
|
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
|
0:? 'g_tTex1df4a' (layout(binding=1 ) uniform texture1DArray)
|
|
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1DArray)
|
|
0:? 'g_tTex1di4a' (uniform itexture1DArray)
|
|
0:? 'g_tTex1du4a' (uniform utexture1DArray)
|
|
0:? 'g_tTex2df4a' (uniform texture2DArray)
|
|
0:? 'g_tTex2di4a' (uniform itexture2DArray)
|
|
0:? 'g_tTex2du4a' (uniform utexture2DArray)
|
|
0:? 'g_tTexcdf4a' (uniform textureCubeArray)
|
|
0:? 'g_tTexcdi4a' (uniform itextureCubeArray)
|
|
0:? 'g_tTexcdu4a' (uniform utextureCubeArray)
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 117
|
|
|
|
Capability Shader
|
|
Capability Sampled1D
|
|
Capability SampledCubeArray
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4 "main" 99 103
|
|
ExecutionMode 4 OriginUpperLeft
|
|
Name 4 "main"
|
|
Name 9 "txval20"
|
|
Name 12 "g_tTex2df4a"
|
|
Name 16 "g_sSamp"
|
|
Name 30 "txval21"
|
|
Name 33 "g_tTex2di4a"
|
|
Name 45 "txval22"
|
|
Name 48 "g_tTex2du4a"
|
|
Name 57 "txval40"
|
|
Name 60 "g_tTexcdf4a"
|
|
Name 67 "txval41"
|
|
Name 70 "g_tTexcdi4a"
|
|
Name 77 "txval42"
|
|
Name 80 "g_tTexcdu4a"
|
|
Name 90 "PS_OUTPUT"
|
|
MemberName 90(PS_OUTPUT) 0 "Color"
|
|
MemberName 90(PS_OUTPUT) 1 "Depth"
|
|
Name 92 "psout"
|
|
Name 99 "Color"
|
|
Name 103 "Depth"
|
|
Name 109 "g_tTex1df4a"
|
|
Name 110 "g_tTex1df4"
|
|
Name 113 "g_tTex1di4a"
|
|
Name 116 "g_tTex1du4a"
|
|
Decorate 12(g_tTex2df4a) DescriptorSet 0
|
|
Decorate 16(g_sSamp) DescriptorSet 0
|
|
Decorate 16(g_sSamp) Binding 0
|
|
Decorate 33(g_tTex2di4a) DescriptorSet 0
|
|
Decorate 48(g_tTex2du4a) DescriptorSet 0
|
|
Decorate 60(g_tTexcdf4a) DescriptorSet 0
|
|
Decorate 70(g_tTexcdi4a) DescriptorSet 0
|
|
Decorate 80(g_tTexcdu4a) DescriptorSet 0
|
|
Decorate 99(Color) Location 0
|
|
Decorate 103(Depth) BuiltIn FragDepth
|
|
Decorate 109(g_tTex1df4a) DescriptorSet 0
|
|
Decorate 109(g_tTex1df4a) Binding 1
|
|
Decorate 110(g_tTex1df4) DescriptorSet 0
|
|
Decorate 110(g_tTex1df4) Binding 0
|
|
Decorate 113(g_tTex1di4a) DescriptorSet 0
|
|
Decorate 116(g_tTex1du4a) DescriptorSet 0
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeFloat 32
|
|
7: TypeVector 6(float) 4
|
|
8: TypePointer Function 7(fvec4)
|
|
10: TypeImage 6(float) 2D array sampled format:Unknown
|
|
11: TypePointer UniformConstant 10
|
|
12(g_tTex2df4a): 11(ptr) Variable UniformConstant
|
|
14: TypeSampler
|
|
15: TypePointer UniformConstant 14
|
|
16(g_sSamp): 15(ptr) Variable UniformConstant
|
|
18: TypeSampledImage 10
|
|
20: TypeVector 6(float) 3
|
|
21: 6(float) Constant 1036831949
|
|
22: 6(float) Constant 1045220557
|
|
23: 6(float) Constant 1050253722
|
|
24: 20(fvec3) ConstantComposite 21 22 23
|
|
25: TypeInt 32 1
|
|
26: 25(int) Constant 0
|
|
28: TypeVector 25(int) 4
|
|
29: TypePointer Function 28(ivec4)
|
|
31: TypeImage 25(int) 2D array sampled format:Unknown
|
|
32: TypePointer UniformConstant 31
|
|
33(g_tTex2di4a): 32(ptr) Variable UniformConstant
|
|
36: TypeSampledImage 31
|
|
38: 6(float) Constant 1053609165
|
|
39: 6(float) Constant 1056964608
|
|
40: 20(fvec3) ConstantComposite 23 38 39
|
|
42: TypeInt 32 0
|
|
43: TypeVector 42(int) 4
|
|
44: TypePointer Function 43(ivec4)
|
|
46: TypeImage 42(int) 2D array sampled format:Unknown
|
|
47: TypePointer UniformConstant 46
|
|
48(g_tTex2du4a): 47(ptr) Variable UniformConstant
|
|
51: TypeSampledImage 46
|
|
53: 6(float) Constant 1058642330
|
|
54: 6(float) Constant 1060320051
|
|
55: 20(fvec3) ConstantComposite 39 53 54
|
|
58: TypeImage 6(float) Cube array sampled format:Unknown
|
|
59: TypePointer UniformConstant 58
|
|
60(g_tTexcdf4a): 59(ptr) Variable UniformConstant
|
|
63: TypeSampledImage 58
|
|
65: 7(fvec4) ConstantComposite 21 22 23 38
|
|
68: TypeImage 25(int) Cube array sampled format:Unknown
|
|
69: TypePointer UniformConstant 68
|
|
70(g_tTexcdi4a): 69(ptr) Variable UniformConstant
|
|
73: TypeSampledImage 68
|
|
75: 7(fvec4) ConstantComposite 38 39 53 54
|
|
78: TypeImage 42(int) Cube array sampled format:Unknown
|
|
79: TypePointer UniformConstant 78
|
|
80(g_tTexcdu4a): 79(ptr) Variable UniformConstant
|
|
83: TypeSampledImage 78
|
|
85: 6(float) Constant 1061997773
|
|
86: 6(float) Constant 1063675494
|
|
87: 6(float) Constant 1065353216
|
|
88: 7(fvec4) ConstantComposite 54 85 86 87
|
|
90(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
|
|
91: TypePointer Function 90(PS_OUTPUT)
|
|
93: 7(fvec4) ConstantComposite 87 87 87 87
|
|
95: 25(int) Constant 1
|
|
96: TypePointer Function 6(float)
|
|
98: TypePointer Output 7(fvec4)
|
|
99(Color): 98(ptr) Variable Output
|
|
102: TypePointer Output 6(float)
|
|
103(Depth): 102(ptr) Variable Output
|
|
107: TypeImage 6(float) 1D array sampled format:Unknown
|
|
108: TypePointer UniformConstant 107
|
|
109(g_tTex1df4a): 108(ptr) Variable UniformConstant
|
|
110(g_tTex1df4): 108(ptr) Variable UniformConstant
|
|
111: TypeImage 25(int) 1D array sampled format:Unknown
|
|
112: TypePointer UniformConstant 111
|
|
113(g_tTex1di4a): 112(ptr) Variable UniformConstant
|
|
114: TypeImage 42(int) 1D array sampled format:Unknown
|
|
115: TypePointer UniformConstant 114
|
|
116(g_tTex1du4a): 115(ptr) Variable UniformConstant
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
9(txval20): 8(ptr) Variable Function
|
|
30(txval21): 29(ptr) Variable Function
|
|
45(txval22): 44(ptr) Variable Function
|
|
57(txval40): 8(ptr) Variable Function
|
|
67(txval41): 29(ptr) Variable Function
|
|
77(txval42): 44(ptr) Variable Function
|
|
92(psout): 91(ptr) Variable Function
|
|
13: 10 Load 12(g_tTex2df4a)
|
|
17: 14 Load 16(g_sSamp)
|
|
19: 18 SampledImage 13 17
|
|
27: 7(fvec4) ImageGather 19 24 26
|
|
Store 9(txval20) 27
|
|
34: 31 Load 33(g_tTex2di4a)
|
|
35: 14 Load 16(g_sSamp)
|
|
37: 36 SampledImage 34 35
|
|
41: 28(ivec4) ImageGather 37 40 26
|
|
Store 30(txval21) 41
|
|
49: 46 Load 48(g_tTex2du4a)
|
|
50: 14 Load 16(g_sSamp)
|
|
52: 51 SampledImage 49 50
|
|
56: 43(ivec4) ImageGather 52 55 26
|
|
Store 45(txval22) 56
|
|
61: 58 Load 60(g_tTexcdf4a)
|
|
62: 14 Load 16(g_sSamp)
|
|
64: 63 SampledImage 61 62
|
|
66: 7(fvec4) ImageGather 64 65 26
|
|
Store 57(txval40) 66
|
|
71: 68 Load 70(g_tTexcdi4a)
|
|
72: 14 Load 16(g_sSamp)
|
|
74: 73 SampledImage 71 72
|
|
76: 28(ivec4) ImageGather 74 75 26
|
|
Store 67(txval41) 76
|
|
81: 78 Load 80(g_tTexcdu4a)
|
|
82: 14 Load 16(g_sSamp)
|
|
84: 83 SampledImage 81 82
|
|
89: 43(ivec4) ImageGather 84 88 26
|
|
Store 77(txval42) 89
|
|
94: 8(ptr) AccessChain 92(psout) 26
|
|
Store 94 93
|
|
97: 96(ptr) AccessChain 92(psout) 95
|
|
Store 97 87
|
|
100: 8(ptr) AccessChain 92(psout) 26
|
|
101: 7(fvec4) Load 100
|
|
Store 99(Color) 101
|
|
104: 96(ptr) AccessChain 92(psout) 95
|
|
105: 6(float) Load 104
|
|
Store 103(Depth) 105
|
|
Return
|
|
FunctionEnd
|