HLSL: Broaden solution for #940, editing integer input for 'flat'.
This commit is contained in:
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);
|
||||
}
|
||||
Reference in New Issue
Block a user