HLSL: Add SampleBias and SampleGrad, and associated tests
This commit is contained in:
433
Test/baseResults/hlsl.samplegrad.offsetarray.dx10.frag.out
Normal file
433
Test/baseResults/hlsl.samplegrad.offsetarray.dx10.frag.out
Normal file
@@ -0,0 +1,433 @@
|
||||
hlsl.samplegrad.offsetarray.dx10.frag
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:40 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:24 Function Parameters:
|
||||
0:? Sequence
|
||||
0:27 Sequence
|
||||
0:27 move second child to first child (temp 4-component vector of float)
|
||||
0:27 'txval10' (temp 4-component vector of float)
|
||||
0:27 textureGradOffset (global 4-component vector of float)
|
||||
0:27 Construct combined texture-sampler (temp sampler1DArray)
|
||||
0:27 'g_tTex1df4' (uniform texture1DArray)
|
||||
0:27 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:27 Constant:
|
||||
0:27 1.100000
|
||||
0:27 Constant:
|
||||
0:27 1.200000
|
||||
0:27 Constant:
|
||||
0:27 1 (const int)
|
||||
0:28 Sequence
|
||||
0:28 move second child to first child (temp 4-component vector of int)
|
||||
0:28 'txval11' (temp 4-component vector of int)
|
||||
0:28 textureGradOffset (global 4-component vector of int)
|
||||
0:28 Construct combined texture-sampler (temp isampler1DArray)
|
||||
0:28 'g_tTex1di4' (uniform itexture1DArray)
|
||||
0:28 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:28 Constant:
|
||||
0:28 1.100000
|
||||
0:28 Constant:
|
||||
0:28 1.200000
|
||||
0:28 Constant:
|
||||
0:28 1 (const int)
|
||||
0:29 Sequence
|
||||
0:29 move second child to first child (temp 4-component vector of uint)
|
||||
0:29 'txval12' (temp 4-component vector of uint)
|
||||
0:29 textureGradOffset (global 4-component vector of uint)
|
||||
0:29 Construct combined texture-sampler (temp usampler1DArray)
|
||||
0:29 'g_tTex1du4' (uniform utexture1DArray)
|
||||
0:29 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:29 Constant:
|
||||
0:29 1.100000
|
||||
0:29 Constant:
|
||||
0:29 1.200000
|
||||
0:29 Constant:
|
||||
0:29 1 (const int)
|
||||
0:31 Sequence
|
||||
0:31 move second child to first child (temp 4-component vector of float)
|
||||
0:31 'txval20' (temp 4-component vector of float)
|
||||
0:31 textureGradOffset (global 4-component vector of float)
|
||||
0:31 Construct combined texture-sampler (temp sampler2DArray)
|
||||
0:31 'g_tTex2df4' (uniform texture2DArray)
|
||||
0:31 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:32 Sequence
|
||||
0:32 move second child to first child (temp 4-component vector of int)
|
||||
0:32 'txval21' (temp 4-component vector of int)
|
||||
0:32 textureGradOffset (global 4-component vector of int)
|
||||
0:32 Construct combined texture-sampler (temp isampler2DArray)
|
||||
0:32 'g_tTex2di4' (uniform itexture2DArray)
|
||||
0:32 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:33 Sequence
|
||||
0:33 move second child to first child (temp 4-component vector of uint)
|
||||
0:33 'txval22' (temp 4-component vector of uint)
|
||||
0:33 textureGradOffset (global 4-component vector of uint)
|
||||
0:33 Construct combined texture-sampler (temp usampler2DArray)
|
||||
0:33 'g_tTex2du4' (uniform utexture2DArray)
|
||||
0:33 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:36 move second child to first child (temp float)
|
||||
0:36 Depth: direct index for structure (temp float FragDepth)
|
||||
0:36 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:36 Constant:
|
||||
0:36 1 (const int)
|
||||
0:36 Constant:
|
||||
0:36 1.000000
|
||||
0:38 Branch: Return with expression
|
||||
0:38 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (uniform sampler)
|
||||
0:? 'g_tTex1df4a' (uniform texture1DArray)
|
||||
0:? 'g_tTex1df4' (uniform texture1DArray)
|
||||
0:? 'g_tTex1di4' (uniform itexture1DArray)
|
||||
0:? 'g_tTex1du4' (uniform utexture1DArray)
|
||||
0:? 'g_tTex2df4' (uniform texture2DArray)
|
||||
0:? 'g_tTex2di4' (uniform itexture2DArray)
|
||||
0:? 'g_tTex2du4' (uniform utexture2DArray)
|
||||
0:? 'g_tTexcdf4' (uniform textureCubeArray)
|
||||
0:? 'g_tTexcdi4' (uniform itextureCubeArray)
|
||||
0:? 'g_tTexcdu4' (uniform utextureCubeArray)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:40 Function Definition: main( (global structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:24 Function Parameters:
|
||||
0:? Sequence
|
||||
0:27 Sequence
|
||||
0:27 move second child to first child (temp 4-component vector of float)
|
||||
0:27 'txval10' (temp 4-component vector of float)
|
||||
0:27 textureGradOffset (global 4-component vector of float)
|
||||
0:27 Construct combined texture-sampler (temp sampler1DArray)
|
||||
0:27 'g_tTex1df4' (uniform texture1DArray)
|
||||
0:27 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:27 Constant:
|
||||
0:27 1.100000
|
||||
0:27 Constant:
|
||||
0:27 1.200000
|
||||
0:27 Constant:
|
||||
0:27 1 (const int)
|
||||
0:28 Sequence
|
||||
0:28 move second child to first child (temp 4-component vector of int)
|
||||
0:28 'txval11' (temp 4-component vector of int)
|
||||
0:28 textureGradOffset (global 4-component vector of int)
|
||||
0:28 Construct combined texture-sampler (temp isampler1DArray)
|
||||
0:28 'g_tTex1di4' (uniform itexture1DArray)
|
||||
0:28 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:28 Constant:
|
||||
0:28 1.100000
|
||||
0:28 Constant:
|
||||
0:28 1.200000
|
||||
0:28 Constant:
|
||||
0:28 1 (const int)
|
||||
0:29 Sequence
|
||||
0:29 move second child to first child (temp 4-component vector of uint)
|
||||
0:29 'txval12' (temp 4-component vector of uint)
|
||||
0:29 textureGradOffset (global 4-component vector of uint)
|
||||
0:29 Construct combined texture-sampler (temp usampler1DArray)
|
||||
0:29 'g_tTex1du4' (uniform utexture1DArray)
|
||||
0:29 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:29 Constant:
|
||||
0:29 1.100000
|
||||
0:29 Constant:
|
||||
0:29 1.200000
|
||||
0:29 Constant:
|
||||
0:29 1 (const int)
|
||||
0:31 Sequence
|
||||
0:31 move second child to first child (temp 4-component vector of float)
|
||||
0:31 'txval20' (temp 4-component vector of float)
|
||||
0:31 textureGradOffset (global 4-component vector of float)
|
||||
0:31 Construct combined texture-sampler (temp sampler2DArray)
|
||||
0:31 'g_tTex2df4' (uniform texture2DArray)
|
||||
0:31 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:32 Sequence
|
||||
0:32 move second child to first child (temp 4-component vector of int)
|
||||
0:32 'txval21' (temp 4-component vector of int)
|
||||
0:32 textureGradOffset (global 4-component vector of int)
|
||||
0:32 Construct combined texture-sampler (temp isampler2DArray)
|
||||
0:32 'g_tTex2di4' (uniform itexture2DArray)
|
||||
0:32 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:33 Sequence
|
||||
0:33 move second child to first child (temp 4-component vector of uint)
|
||||
0:33 'txval22' (temp 4-component vector of uint)
|
||||
0:33 textureGradOffset (global 4-component vector of uint)
|
||||
0:33 Construct combined texture-sampler (temp usampler2DArray)
|
||||
0:33 'g_tTex2du4' (uniform utexture2DArray)
|
||||
0:33 'g_sSamp' (uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:36 move second child to first child (temp float)
|
||||
0:36 Depth: direct index for structure (temp float FragDepth)
|
||||
0:36 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:36 Constant:
|
||||
0:36 1 (const int)
|
||||
0:36 Constant:
|
||||
0:36 1.000000
|
||||
0:38 Branch: Return with expression
|
||||
0:38 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (uniform sampler)
|
||||
0:? 'g_tTex1df4a' (uniform texture1DArray)
|
||||
0:? 'g_tTex1df4' (uniform texture1DArray)
|
||||
0:? 'g_tTex1di4' (uniform itexture1DArray)
|
||||
0:? 'g_tTex1du4' (uniform utexture1DArray)
|
||||
0:? 'g_tTex2df4' (uniform texture2DArray)
|
||||
0:? 'g_tTex2di4' (uniform itexture2DArray)
|
||||
0:? 'g_tTex2du4' (uniform utexture2DArray)
|
||||
0:? 'g_tTexcdf4' (uniform textureCubeArray)
|
||||
0:? 'g_tTexcdi4' (uniform itextureCubeArray)
|
||||
0:? 'g_tTexcdu4' (uniform utextureCubeArray)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 104
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
Capability SampledCubeArray
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main"
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source HLSL 450
|
||||
Name 4 "main"
|
||||
Name 9 "txval10"
|
||||
Name 12 "g_tTex1df4"
|
||||
Name 16 "g_sSamp"
|
||||
Name 31 "txval11"
|
||||
Name 34 "g_tTex1di4"
|
||||
Name 43 "txval12"
|
||||
Name 46 "g_tTex1du4"
|
||||
Name 52 "txval20"
|
||||
Name 55 "g_tTex2df4"
|
||||
Name 68 "txval21"
|
||||
Name 71 "g_tTex2di4"
|
||||
Name 77 "txval22"
|
||||
Name 80 "g_tTex2du4"
|
||||
Name 86 "PS_OUTPUT"
|
||||
MemberName 86(PS_OUTPUT) 0 "Color"
|
||||
MemberName 86(PS_OUTPUT) 1 "Depth"
|
||||
Name 88 "psout"
|
||||
Name 94 "g_tTex1df4a"
|
||||
Name 97 "g_tTexcdf4"
|
||||
Name 100 "g_tTexcdi4"
|
||||
Name 103 "g_tTexcdu4"
|
||||
Decorate 12(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
Decorate 34(g_tTex1di4) DescriptorSet 0
|
||||
Decorate 46(g_tTex1du4) DescriptorSet 0
|
||||
Decorate 55(g_tTex2df4) DescriptorSet 0
|
||||
Decorate 71(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 80(g_tTex2du4) DescriptorSet 0
|
||||
MemberDecorate 86(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 94(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 97(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 100(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 103(g_tTexcdu4) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypePointer Function 7(fvec4)
|
||||
10: TypeImage 6(float) 1D array sampled format:Unknown
|
||||
11: TypePointer UniformConstant 10
|
||||
12(g_tTex1df4): 11(ptr) Variable UniformConstant
|
||||
14: TypeSampler
|
||||
15: TypePointer UniformConstant 14
|
||||
16(g_sSamp): 15(ptr) Variable UniformConstant
|
||||
18: TypeSampledImage 10
|
||||
20: TypeVector 6(float) 2
|
||||
21: 6(float) Constant 1036831949
|
||||
22: 6(float) Constant 1045220557
|
||||
23: 20(fvec2) ConstantComposite 21 22
|
||||
24: 6(float) Constant 1066192077
|
||||
25: 6(float) Constant 1067030938
|
||||
26: TypeInt 32 1
|
||||
27: 26(int) Constant 1
|
||||
29: TypeVector 26(int) 4
|
||||
30: TypePointer Function 29(ivec4)
|
||||
32: TypeImage 26(int) 1D array sampled format:Unknown
|
||||
33: TypePointer UniformConstant 32
|
||||
34(g_tTex1di4): 33(ptr) Variable UniformConstant
|
||||
37: TypeSampledImage 32
|
||||
40: TypeInt 32 0
|
||||
41: TypeVector 40(int) 4
|
||||
42: TypePointer Function 41(ivec4)
|
||||
44: TypeImage 40(int) 1D array sampled format:Unknown
|
||||
45: TypePointer UniformConstant 44
|
||||
46(g_tTex1du4): 45(ptr) Variable UniformConstant
|
||||
49: TypeSampledImage 44
|
||||
53: TypeImage 6(float) 2D array sampled format:Unknown
|
||||
54: TypePointer UniformConstant 53
|
||||
55(g_tTex2df4): 54(ptr) Variable UniformConstant
|
||||
58: TypeSampledImage 53
|
||||
60: TypeVector 6(float) 3
|
||||
61: 6(float) Constant 1050253722
|
||||
62: 60(fvec3) ConstantComposite 21 22 61
|
||||
63: 20(fvec2) ConstantComposite 24 25
|
||||
64: TypeVector 26(int) 2
|
||||
65: 26(int) Constant 0
|
||||
66: 64(ivec2) ConstantComposite 27 65
|
||||
69: TypeImage 26(int) 2D array sampled format:Unknown
|
||||
70: TypePointer UniformConstant 69
|
||||
71(g_tTex2di4): 70(ptr) Variable UniformConstant
|
||||
74: TypeSampledImage 69
|
||||
78: TypeImage 40(int) 2D array sampled format:Unknown
|
||||
79: TypePointer UniformConstant 78
|
||||
80(g_tTex2du4): 79(ptr) Variable UniformConstant
|
||||
83: TypeSampledImage 78
|
||||
86(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
|
||||
87: TypePointer Function 86(PS_OUTPUT)
|
||||
89: 6(float) Constant 1065353216
|
||||
90: TypePointer Function 6(float)
|
||||
94(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
95: TypeImage 6(float) Cube array sampled format:Unknown
|
||||
96: TypePointer UniformConstant 95
|
||||
97(g_tTexcdf4): 96(ptr) Variable UniformConstant
|
||||
98: TypeImage 26(int) Cube array sampled format:Unknown
|
||||
99: TypePointer UniformConstant 98
|
||||
100(g_tTexcdi4): 99(ptr) Variable UniformConstant
|
||||
101: TypeImage 40(int) Cube array sampled format:Unknown
|
||||
102: TypePointer UniformConstant 101
|
||||
103(g_tTexcdu4): 102(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval10): 8(ptr) Variable Function
|
||||
31(txval11): 30(ptr) Variable Function
|
||||
43(txval12): 42(ptr) Variable Function
|
||||
52(txval20): 8(ptr) Variable Function
|
||||
68(txval21): 30(ptr) Variable Function
|
||||
77(txval22): 42(ptr) Variable Function
|
||||
88(psout): 87(ptr) Variable Function
|
||||
13: 10 Load 12(g_tTex1df4)
|
||||
17: 14 Load 16(g_sSamp)
|
||||
19: 18 SampledImage 13 17
|
||||
28: 7(fvec4) ImageSampleExplicitLod 19 23 Grad ConstOffset 24 25 27
|
||||
Store 9(txval10) 28
|
||||
35: 32 Load 34(g_tTex1di4)
|
||||
36: 14 Load 16(g_sSamp)
|
||||
38: 37 SampledImage 35 36
|
||||
39: 29(ivec4) ImageSampleExplicitLod 38 23 Grad ConstOffset 24 25 27
|
||||
Store 31(txval11) 39
|
||||
47: 44 Load 46(g_tTex1du4)
|
||||
48: 14 Load 16(g_sSamp)
|
||||
50: 49 SampledImage 47 48
|
||||
51: 41(ivec4) ImageSampleExplicitLod 50 23 Grad ConstOffset 24 25 27
|
||||
Store 43(txval12) 51
|
||||
56: 53 Load 55(g_tTex2df4)
|
||||
57: 14 Load 16(g_sSamp)
|
||||
59: 58 SampledImage 56 57
|
||||
67: 7(fvec4) ImageSampleExplicitLod 59 62 Grad ConstOffset 63 63 66
|
||||
Store 52(txval20) 67
|
||||
72: 69 Load 71(g_tTex2di4)
|
||||
73: 14 Load 16(g_sSamp)
|
||||
75: 74 SampledImage 72 73
|
||||
76: 29(ivec4) ImageSampleExplicitLod 75 62 Grad ConstOffset 63 63 66
|
||||
Store 68(txval21) 76
|
||||
81: 78 Load 80(g_tTex2du4)
|
||||
82: 14 Load 16(g_sSamp)
|
||||
84: 83 SampledImage 81 82
|
||||
85: 41(ivec4) ImageSampleExplicitLod 84 62 Grad ConstOffset 63 63 66
|
||||
Store 77(txval22) 85
|
||||
91: 90(ptr) AccessChain 88(psout) 27
|
||||
Store 91 89
|
||||
92:86(PS_OUTPUT) Load 88(psout)
|
||||
ReturnValue 92
|
||||
FunctionEnd
|
||||
Reference in New Issue
Block a user