HLSL: Improve setting and testing of interpolation qualifiers.
Notably, use of 'linear' on a non-input could mark it as an input.
This commit is contained in:
parent
d21baed6bc
commit
34e7ee79bb
8 changed files with 299 additions and 184 deletions
|
|
@ -1,9 +1,14 @@
|
|||
struct VI {
|
||||
float4 m[2];
|
||||
uint2 coord;
|
||||
linear float4 b;
|
||||
};
|
||||
|
||||
float4 main(float4 d, VI vi, float4 e) : SV_POSITION
|
||||
VI main(float4 d, VI vi, float4 e) : SV_POSITION
|
||||
{
|
||||
return vi.m[1] + vi.m[0] + float4(vi.coord.x) + d + e;
|
||||
VI local;
|
||||
|
||||
local.b = vi.m[1] + vi.m[0] + float4(vi.coord.x) + d + e;
|
||||
|
||||
return local;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue