mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
Here I am just printing a trace message on the rare situation where GL_MAX_CLIP_DISTANCES is less than we need. The maximum in Direct3D is given by D3D#_CLIP_OR_CULL_DISTANCE_COUNT which is 8, which seems expectable here. Alternatively we could add a clip-distance capability and only enable it if gl_maxClipDistances is >= 8. Another potential problem is that OpenGL expects the gl_ClipDistance[] array to be the same size on every shader it is declared, which is a restriction I am not sure Direct3D has with its SV_ClipDistance components. Co-authored-by: Anna (navi) Figueiredo Gomes <agomes@codeweavers.com>
56 KiB
56 KiB