mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Test invalid out const parameters.
This commit is contained in:
parent
a9d7c65eb8
commit
f0070cd595
Notes:
Henri Verbeet
2025-01-21 14:13:49 +01:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1347
@ -197,6 +197,31 @@ void main(out float4 o : sv_target)
|
||||
sub(o);
|
||||
}
|
||||
|
||||
[pixel shader fail(sm<6)]
|
||||
void sub(out const float4 c, out float4 o)
|
||||
{
|
||||
o = 0;
|
||||
}
|
||||
|
||||
void main(out float4 o : sv_target)
|
||||
{
|
||||
float4 c = 0;
|
||||
sub(c, o);
|
||||
}
|
||||
|
||||
% inout const is allowed, unlike out const in the above.
|
||||
[pixel shader]
|
||||
void sub(inout const float4 c, out float4 o)
|
||||
{
|
||||
o = 0;
|
||||
}
|
||||
|
||||
void main(out float4 o : sv_target)
|
||||
{
|
||||
float4 c = 0;
|
||||
sub(c, o);
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
float4 main(void) : sv_target
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user