mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/dxil: Handle SV_ClipDistance and SV_CullDistance.
This commit is contained in:
parent
01af0f94bb
commit
9e57039fce
Notes:
Alexandre Julliard
2024-05-14 23:00:31 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/864
@ -8455,6 +8455,8 @@ static const enum vkd3d_shader_sysval_semantic sysval_semantic_table[] =
|
||||
[SEMANTIC_KIND_VERTEXID] = VKD3D_SHADER_SV_VERTEX_ID,
|
||||
[SEMANTIC_KIND_INSTANCEID] = VKD3D_SHADER_SV_INSTANCE_ID,
|
||||
[SEMANTIC_KIND_POSITION] = VKD3D_SHADER_SV_POSITION,
|
||||
[SEMANTIC_KIND_CLIPDISTANCE] = VKD3D_SHADER_SV_CLIP_DISTANCE,
|
||||
[SEMANTIC_KIND_CULLDISTANCE] = VKD3D_SHADER_SV_CULL_DISTANCE,
|
||||
[SEMANTIC_KIND_PRIMITIVEID] = VKD3D_SHADER_SV_PRIMITIVE_ID,
|
||||
[SEMANTIC_KIND_ISFRONTFACE] = VKD3D_SHADER_SV_IS_FRONT_FACE,
|
||||
[SEMANTIC_KIND_COVERAGE] = VKD3D_SHADER_SV_COVERAGE,
|
||||
|
@ -48,7 +48,7 @@ float4 main(const in float4 position : SV_Position) : SV_Target
|
||||
|
||||
[test]
|
||||
clear rtv 0 1.0 1.0 1.0 1.0
|
||||
todo draw triangle strip 4
|
||||
todo(sm<6) draw triangle strip 4
|
||||
probe all rgba (0.0, 1.0, 0.0, 1.0)
|
||||
|
||||
[vb 1]
|
||||
@ -59,7 +59,7 @@ probe all rgba (0.0, 1.0, 0.0, 1.0)
|
||||
|
||||
[test]
|
||||
clear rtv 0 1.0 1.0 1.0 1.0
|
||||
todo draw triangle strip 4
|
||||
todo(sm<6) draw triangle strip 4
|
||||
probe all rgba (0.0, 1.0, 0.0, 1.0)
|
||||
|
||||
[vb 1]
|
||||
@ -70,7 +70,7 @@ probe all rgba (0.0, 1.0, 0.0, 1.0)
|
||||
|
||||
[test]
|
||||
clear rtv 0 1.0 1.0 1.0 1.0
|
||||
todo draw triangle strip 4
|
||||
todo(sm<6) draw triangle strip 4
|
||||
probe all rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
[vb 1]
|
||||
@ -81,7 +81,7 @@ probe all rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
[test]
|
||||
clear rtv 0 1.0 1.0 1.0 1.0
|
||||
todo draw triangle strip 4
|
||||
todo(sm<6) draw triangle strip 4
|
||||
probe rtv 0 (160, 240) rgba (0.0, 1.0, 0.0, 1.0)
|
||||
probe rtv 0 (480, 240) rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
@ -93,6 +93,6 @@ probe rtv 0 (480, 240) rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
[test]
|
||||
clear rtv 0 1.0 1.0 1.0 1.0
|
||||
todo draw triangle strip 4
|
||||
todo(sm<6) draw triangle strip 4
|
||||
probe rtv 0 (320, 120) rgba (0.0, 1.0, 0.0, 1.0)
|
||||
probe rtv 0 (320, 360) rgba (1.0, 1.0, 1.0, 1.0)
|
||||
|
Loading…
Reference in New Issue
Block a user