mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Validate that statics don't contain both resources and numerics.
This commit is contained in:
committed by
Alexandre Julliard
parent
2fa913ccaa
commit
6873b71304
Notes:
Alexandre Julliard
2022-11-10 22:56:31 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/42
@@ -250,3 +250,17 @@ float4 main() : sv_target
|
||||
a.a = 1;
|
||||
return a.a;
|
||||
}
|
||||
|
||||
[pixel shader fail]
|
||||
struct apple
|
||||
{
|
||||
sampler sam;
|
||||
float4 aa;
|
||||
};
|
||||
|
||||
static struct apple a;
|
||||
|
||||
float4 main() : sv_target
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user