mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests: Add additional tests for function calls in state block rhs.
This commit is contained in:
parent
becdcec147
commit
7363fd2816
Notes:
Henri Verbeet
2024-08-20 21:34:57 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1006
@ -441,6 +441,36 @@ sampler sam
|
||||
float4 main() : sv_target { return 0; }
|
||||
|
||||
|
||||
% The number of parameters must also match.
|
||||
[pixel shader fail(sm<6)]
|
||||
float4 fun(float a, float b)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
sampler sam
|
||||
{
|
||||
cat = fun(foo); // no matching 1 parameter function.
|
||||
};
|
||||
|
||||
float4 main() : sv_target { return 0; }
|
||||
|
||||
|
||||
% Compiler assumes that unknown stateblock constants are 'const int'.
|
||||
[pixel shader fail(sm<6)]
|
||||
float4 fun(float p[2])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
sampler sam
|
||||
{
|
||||
cat = fun(foo); // cannot convert from 'const int' to 'float[2]'.
|
||||
};
|
||||
|
||||
float4 main() : sv_target { return 0; }
|
||||
|
||||
|
||||
% PixelShader and VertexShader are valid identifiers for the lhs
|
||||
[pixel shader]
|
||||
sampler sam
|
||||
|
Loading…
Reference in New Issue
Block a user