HLSL: Broaden solution for #940, editing integer input for 'flat'.

This commit is contained in:
John Kessenich
2017-06-21 01:35:57 -06:00
parent f0bc598dd7
commit 4329d555ad
6 changed files with 249 additions and 46 deletions

View 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);
}