HLSL: Force flat (nointerp) onto integer fragment inputs.
Addresses #940.
This commit is contained in:
@@ -129,10 +129,10 @@ gl_FragCoord origin is upper left
|
||||
0:? 'input' (layout( location=0) in 4-component vector of float)
|
||||
0:2 move second child to first child ( temp int)
|
||||
0:? 'c' ( temp int)
|
||||
0:? 'c' (layout( location=1) in int)
|
||||
0:? 'c' (layout( location=1) flat in int)
|
||||
0:2 move second child to first child ( temp int)
|
||||
0:? 'd' ( temp int)
|
||||
0:? 'd' (layout( location=2) in int)
|
||||
0:? 'd' (layout( location=2) flat in int)
|
||||
0:2 move second child to first child ( temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:2 Function Call: @PixelShaderFunction(vf4;i1;i1; ( temp 4-component vector of float)
|
||||
@@ -142,8 +142,8 @@ gl_FragCoord origin is upper left
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'input' (layout( location=0) in 4-component vector of float)
|
||||
0:? 'c' (layout( location=1) in int)
|
||||
0:? 'd' (layout( location=2) in int)
|
||||
0:? 'c' (layout( location=1) flat in int)
|
||||
0:? 'd' (layout( location=2) flat in int)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -279,10 +279,10 @@ gl_FragCoord origin is upper left
|
||||
0:? 'input' (layout( location=0) in 4-component vector of float)
|
||||
0:2 move second child to first child ( temp int)
|
||||
0:? 'c' ( temp int)
|
||||
0:? 'c' (layout( location=1) in int)
|
||||
0:? 'c' (layout( location=1) flat in int)
|
||||
0:2 move second child to first child ( temp int)
|
||||
0:? 'd' ( temp int)
|
||||
0:? 'd' (layout( location=2) in int)
|
||||
0:? 'd' (layout( location=2) flat in int)
|
||||
0:2 move second child to first child ( temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:2 Function Call: @PixelShaderFunction(vf4;i1;i1; ( temp 4-component vector of float)
|
||||
@@ -292,8 +292,8 @@ gl_FragCoord origin is upper left
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'input' (layout( location=0) in 4-component vector of float)
|
||||
0:? 'c' (layout( location=1) in int)
|
||||
0:? 'd' (layout( location=2) in int)
|
||||
0:? 'c' (layout( location=1) flat in int)
|
||||
0:? 'd' (layout( location=2) flat in int)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
@@ -321,7 +321,9 @@ gl_FragCoord origin is upper left
|
||||
Name 101 "param"
|
||||
Name 103 "param"
|
||||
Decorate 88(input) Location 0
|
||||
Decorate 92(c) Flat
|
||||
Decorate 92(c) Location 1
|
||||
Decorate 95(d) Flat
|
||||
Decorate 95(d) Location 2
|
||||
Decorate 98(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
|
||||
Reference in New Issue
Block a user