mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Enable the corresponding capabilities when using the clip/cull distance built-ins.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a10ecbc289
commit
56b042d1fa
@ -3628,6 +3628,12 @@ static void vkd3d_dxbc_compiler_decorate_builtin(struct vkd3d_dxbc_compiler *com
|
|||||||
case SpvBuiltInSampleId:
|
case SpvBuiltInSampleId:
|
||||||
vkd3d_spirv_enable_capability(builder, SpvCapabilitySampleRateShading);
|
vkd3d_spirv_enable_capability(builder, SpvCapabilitySampleRateShading);
|
||||||
break;
|
break;
|
||||||
|
case SpvBuiltInClipDistance:
|
||||||
|
vkd3d_spirv_enable_capability(builder, SpvCapabilityClipDistance);
|
||||||
|
break;
|
||||||
|
case SpvBuiltInCullDistance:
|
||||||
|
vkd3d_spirv_enable_capability(builder, SpvCapabilityCullDistance);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user