mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: Validate groupshared variables.
This commit is contained in:
Notes:
Henri Verbeet
2025-12-08 17:48:57 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1836
@@ -49,7 +49,7 @@ void main(uint local_idx : SV_GroupIndex)
|
||||
shader model >= 4.0
|
||||
|
||||
% The type of a groupshared variable must not contain objects.
|
||||
[compute shader fail(sm<6) todo]
|
||||
[compute shader fail(sm<6)]
|
||||
struct data
|
||||
{
|
||||
Texture2D tex;
|
||||
@@ -65,7 +65,7 @@ void main(uint local_idx : SV_GroupIndex)
|
||||
|
||||
% Even though the 'groupshared' attribute is ignored in non-compute shaders,
|
||||
% native still checks whether the type of the variable contains objects or not.
|
||||
[pixel shader fail(sm<6) todo]
|
||||
[pixel shader fail(sm<6) todo(sm>=5.1 & sm<6)]
|
||||
groupshared Texture2D m[4];
|
||||
|
||||
float4 main() : SV_Target
|
||||
|
||||
Reference in New Issue
Block a user