mirror of
https://github.com/status-im/Vulkan-Docs.git
synced 2025-02-18 09:16:51 +00:00
* Bump API patch number and header version number to 20 for this update. Github Issues: * Replaced existing reference pages by text automatically extracted from the specification source, or generated from vk.xml in some cases. This isn't a complete solution for the reference pages, but puts them in a much better state. The ref pages (only) are now placed under a CC BY open source license, which is more current than the obsolete license previously used. Further improvements to the pages should not edit them directly, but instead concentrate on the specification source from which the ref pages are being extracted (public issues 44, 55, 160; internal issue 389).
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
// Copyright (c) 2014-2016 Khronos Group. This work is licensed under a
|
|
// Creative Commons Attribution 4.0 International License; see
|
|
// http://creativecommons.org/licenses/by/4.0/
|
|
|
|
VkCullModeFlagBits(3)
|
|
=====================
|
|
|
|
Name
|
|
----
|
|
VkCullModeFlagBits - Bitmask controlling triangle culling
|
|
|
|
C Specification
|
|
---------------
|
|
|
|
// refBegin VkCullModeFlagBits - Bitmask controlling triangle culling
|
|
|
|
Once the orientation of triangles is determined, they are culled according
|
|
to the setting of the
|
|
slink:VkPipelineRasterizationStateCreateInfo::pname:cullMode property of the
|
|
currently active pipeline, which takes the following values:
|
|
|
|
include::../enums/VkCullModeFlagBits.txt[]
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
If the pname:cullMode is set to ename:VK_CULL_MODE_NONE no triangles are
|
|
discarded, if it is set to ename:VK_CULL_MODE_FRONT_BIT front-facing
|
|
triangles are discarded, if it is set to ename:VK_CULL_MODE_BACK_BIT then
|
|
back-facing triangles are discarded and if it is set to
|
|
ename:VK_CULL_MODE_FRONT_AND_BACK then all triangles are discarded.
|
|
Following culling, fragments are produced for any triangles which have not
|
|
been discarded.
|
|
|
|
// refEnd VkCullModeFlagBits
|
|
|
|
|
|
See Also
|
|
--------
|
|
|
|
elink:VkCullModeFlags
|
|
|
|
|
|
Document Notes
|
|
--------------
|
|
|
|
For more information, see the Vulkan Specification at URL
|
|
|
|
https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#VkCullModeFlagBits
|
|
|
|
This page is extracted from the Vulkan Specification.
|
|
Fixes and changes should be made to the Specification,not directly.
|
|
|
|
include::footer.txt[]
|
|
|