HLSL: Force flat (nointerp) onto integer fragment inputs.
Addresses #940.
This commit is contained in:
parent
f02c8e6ba1
commit
54596ff99e
21 changed files with 151 additions and 108 deletions
|
|
@ -53,10 +53,10 @@ gl_FragCoord origin is upper left
|
|||
0:? 'inDV4' (layout( location=6) in 4-component vector of double)
|
||||
0:5 move second child to first child ( temp uint)
|
||||
0:? 'inU1a' ( temp uint)
|
||||
0:? 'inU1a' (layout( location=8) in uint)
|
||||
0:? 'inU1a' (layout( location=8) flat in uint)
|
||||
0:5 move second child to first child ( temp uint)
|
||||
0:? 'inU1b' ( temp uint)
|
||||
0:? 'inU1b' (layout( location=9) in uint)
|
||||
0:? 'inU1b' (layout( location=9) flat in uint)
|
||||
0:5 move second child to first child ( temp float)
|
||||
0:? '@entryPointOutput' (layout( location=0) out float)
|
||||
0:5 Function Call: @PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1; ( temp float)
|
||||
|
|
@ -76,8 +76,8 @@ gl_FragCoord origin is upper left
|
|||
0:? 'inDV2' (layout( location=3) in 2-component vector of double)
|
||||
0:? 'inDV3' (layout( location=4) in 3-component vector of double)
|
||||
0:? 'inDV4' (layout( location=6) in 4-component vector of double)
|
||||
0:? 'inU1a' (layout( location=8) in uint)
|
||||
0:? 'inU1b' (layout( location=9) in uint)
|
||||
0:? 'inU1a' (layout( location=8) flat in uint)
|
||||
0:? 'inU1b' (layout( location=9) flat in uint)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
|
@ -137,10 +137,10 @@ gl_FragCoord origin is upper left
|
|||
0:? 'inDV4' (layout( location=6) in 4-component vector of double)
|
||||
0:5 move second child to first child ( temp uint)
|
||||
0:? 'inU1a' ( temp uint)
|
||||
0:? 'inU1a' (layout( location=8) in uint)
|
||||
0:? 'inU1a' (layout( location=8) flat in uint)
|
||||
0:5 move second child to first child ( temp uint)
|
||||
0:? 'inU1b' ( temp uint)
|
||||
0:? 'inU1b' (layout( location=9) in uint)
|
||||
0:? 'inU1b' (layout( location=9) flat in uint)
|
||||
0:5 move second child to first child ( temp float)
|
||||
0:? '@entryPointOutput' (layout( location=0) out float)
|
||||
0:5 Function Call: @PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1; ( temp float)
|
||||
|
|
@ -160,8 +160,8 @@ gl_FragCoord origin is upper left
|
|||
0:? 'inDV2' (layout( location=3) in 2-component vector of double)
|
||||
0:? 'inDV3' (layout( location=4) in 3-component vector of double)
|
||||
0:? 'inDV4' (layout( location=6) in 4-component vector of double)
|
||||
0:? 'inU1a' (layout( location=8) in uint)
|
||||
0:? 'inU1b' (layout( location=9) in uint)
|
||||
0:? 'inU1a' (layout( location=8) flat in uint)
|
||||
0:? 'inU1b' (layout( location=9) flat in uint)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
|
|
@ -217,7 +217,9 @@ gl_FragCoord origin is upper left
|
|||
Decorate 54(inDV2) Location 3
|
||||
Decorate 58(inDV3) Location 4
|
||||
Decorate 62(inDV4) Location 6
|
||||
Decorate 66(inU1a) Flat
|
||||
Decorate 66(inU1a) Location 8
|
||||
Decorate 69(inU1b) Flat
|
||||
Decorate 69(inU1b) Location 9
|
||||
Decorate 72(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue