HLSL: Broaden solution for #940, editing integer input for 'flat'.
This commit is contained in:
parent
f0bc598dd7
commit
4329d555ad
6 changed files with 249 additions and 46 deletions
9
Test/hlsl.synthesizeInput.frag
Normal file
9
Test/hlsl.synthesizeInput.frag
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
struct PSInput {
|
||||
float interp;
|
||||
uint no_interp;
|
||||
};
|
||||
|
||||
float4 main(PSInput input : INPUT) : SV_TARGET
|
||||
{
|
||||
return float4(float(input.no_interp), input.interp, 0, 1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue