Implement support for VK_EXT_depth_clip_enable

This commit is contained in:
baldurk
2019-04-04 16:23:35 +01:00
parent 50b0456ae6
commit 60c92b2d84
11 changed files with 202 additions and 80 deletions
+8 -1
View File
@@ -655,9 +655,16 @@ struct Rasterizer
Rasterizer(const Rasterizer &) = default;
DOCUMENT(R"(``True`` if pixels outside of the near and far depth planes should be clamped and
to ``0.0`` to ``1.0`` and not clipped.
to ``0.0`` to ``1.0``.
)");
bool depthClampEnable = false;
DOCUMENT(R"(``True`` if pixels outside of the near and far depth planes should be clipped.
.. note::
In Vulkan 1.0 this value was implicitly set to the opposite of :data:`depthClampEnable`, but with
later extensions & versions it can be set independently.
)");
bool depthClipEnable = true;
DOCUMENT("``True`` if primitives should be discarded during rasterization.");
bool rasterizerDiscardEnable = false;
DOCUMENT(R"(``True`` if counter-clockwise polygons are front-facing.