HLSL: Support SV_Coverage and SV_DispatchThreadId; catch SV_GroupIndex.
This commit is contained in:
@@ -18,9 +18,10 @@ gl_FragCoord origin is upper left
|
||||
0:11 'x' (in float)
|
||||
0:11 Constant:
|
||||
0:11 -1.000000
|
||||
0:15 Function Definition: main(vf4; (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:15 Function Definition: main(vf4;i1; (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:15 Function Parameters:
|
||||
0:15 'inpos' (noperspective in 4-component vector of float FragCoord)
|
||||
0:15 'sampleMask' (out int SampleMaskIn)
|
||||
0:? Sequence
|
||||
0:18 Sequence
|
||||
0:18 move second child to first child (temp float)
|
||||
@@ -74,6 +75,7 @@ gl_FragCoord origin is upper left
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:? 'inpos' (noperspective in 4-component vector of float FragCoord)
|
||||
0:? 'sampleMask' (out int SampleMaskIn)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -98,9 +100,10 @@ gl_FragCoord origin is upper left
|
||||
0:11 'x' (in float)
|
||||
0:11 Constant:
|
||||
0:11 -1.000000
|
||||
0:15 Function Definition: main(vf4; (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:15 Function Definition: main(vf4;i1; (temp structure{temp 4-component vector of float Color, temp float Depth})
|
||||
0:15 Function Parameters:
|
||||
0:15 'inpos' (noperspective in 4-component vector of float FragCoord)
|
||||
0:15 'sampleMask' (out int SampleMaskIn)
|
||||
0:? Sequence
|
||||
0:18 Sequence
|
||||
0:18 move second child to first child (temp float)
|
||||
@@ -154,15 +157,17 @@ gl_FragCoord origin is upper left
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:? 'inpos' (noperspective in 4-component vector of float FragCoord)
|
||||
0:? 'sampleMask' (out int SampleMaskIn)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 61
|
||||
// Id's are bound by 63
|
||||
|
||||
Capability Shader
|
||||
Capability SampleRateShading
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 45 53 57
|
||||
EntryPoint Fragment 4 "main" 45 53 57 62
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 12 "MyFunc(f1;f1;f1;"
|
||||
@@ -182,10 +187,12 @@ gl_FragCoord origin is upper left
|
||||
Name 45 "inpos"
|
||||
Name 53 "Color"
|
||||
Name 57 "Depth"
|
||||
Name 62 "sampleMask"
|
||||
Decorate 45(inpos) NoPerspective
|
||||
Decorate 45(inpos) BuiltIn FragCoord
|
||||
Decorate 53(Color) Location 0
|
||||
Decorate 57(Depth) BuiltIn FragDepth
|
||||
Decorate 62(sampleMask) BuiltIn SampleMask
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -211,6 +218,8 @@ gl_FragCoord origin is upper left
|
||||
53(Color): 52(ptr) Variable Output
|
||||
56: TypePointer Output 6(float)
|
||||
57(Depth): 56(ptr) Variable Output
|
||||
61: TypePointer Output 34(int)
|
||||
62(sampleMask): 61(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
17(x): 7(ptr) Variable Function
|
||||
|
||||
Reference in New Issue
Block a user