vkd3d-shader/hlsl: Validate groupshared variables.

This commit is contained in:
Shaun Ren
2025-11-17 22:04:52 -05:00
committed by Henri Verbeet
parent d2d50efaea
commit b31dc058b9
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
2 changed files with 28 additions and 6 deletions

View File

@@ -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