Package org.lwjgl.vulkan
Class NVScissorExclusive
- java.lang.Object
-
- org.lwjgl.vulkan.NVScissorExclusive
-
public class NVScissorExclusive extends java.lang.ObjectThis extension adds support for an exclusive scissor test to Vulkan. The exclusive scissor test behaves like the scissor test, except that the exclusive scissor test fails for pixels inside the corresponding rectangle and passes for pixels outside the rectangle. If the same rectangle is used for both the scissor and exclusive scissor tests, the exclusive scissor test will pass if and only if the scissor test fails.- Name String
VK_NV_scissor_exclusive- Extension Type
- Device extension
- Registered Extension Number
- 206
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_get_physical_device_properties2
- Contact
- Pat Brown nvpbrown
- Last Modified Date
- 2018-07-31
- IP Status
- No known IP claims.
- Interactions and External Dependencies
- None
- Contributors
- Pat Brown, NVIDIA
- Jeff Bolz, NVIDIA
- Piers Daniell, NVIDIA
- Daniel Koch, NVIDIA
-
-
Field Summary
Fields Modifier and Type Field Description static intVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NVExtendsVkDynamicState.static java.lang.StringVK_NV_SCISSOR_EXCLUSIVE_EXTENSION_NAMEThe extension name.static intVK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV
VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NVExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnvkCmdSetExclusiveScissorNV(VkCommandBuffer commandBuffer, int firstExclusiveScissor, int exclusiveScissorCount, long pExclusiveScissors)Unsafe version of:CmdSetExclusiveScissorNVstatic voidvkCmdSetExclusiveScissorNV(VkCommandBuffer commandBuffer, int firstExclusiveScissor, VkRect2D.Buffer pExclusiveScissors)Set the dynamic exclusive scissor rectangles on a command buffer.
-
-
-
Field Detail
-
VK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSION
The extension specification version.
-
VK_NV_SCISSOR_EXCLUSIVE_EXTENSION_NAME
The extension name.
-
VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV
ExtendsVkStructureType.Enum values:
-
VK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
ExtendsVkDynamicState.
-
-
Method Detail
-
nvkCmdSetExclusiveScissorNV
public static void nvkCmdSetExclusiveScissorNV(VkCommandBuffer commandBuffer, int firstExclusiveScissor, int exclusiveScissorCount, long pExclusiveScissors)
Unsafe version of:CmdSetExclusiveScissorNV- Parameters:
exclusiveScissorCount- the number of exclusive scissor rectangles updated by the command.
-
vkCmdSetExclusiveScissorNV
public static void vkCmdSetExclusiveScissorNV(VkCommandBuffer commandBuffer, int firstExclusiveScissor, VkRect2D.Buffer pExclusiveScissors)
Set the dynamic exclusive scissor rectangles on a command buffer.C Specification
If the pipeline state object is created with
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NVenabled, then the exclusive scissor rectangles are set by:void vkCmdSetExclusiveScissorNV( VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkRect2D* pExclusiveScissors);Description
The scissor rectangles taken from element
iofpExclusiveScissorsreplace the current state for the scissor indexfirstExclusiveScissor + i, foriin[0, exclusiveScissorCount).Each scissor rectangle is described by a
VkRect2Dstructure, with theoffset.xandoffset.yvalues determining the upper left corner of the scissor rectangle, and theextent.widthandextent.heightvalues determining the size in pixels.Valid Usage
- The exclusive scissor feature must be enabled.
- The bound graphics pipeline must have been created with the
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NVdynamic state enabled firstExclusiveScissormust be less thanVkPhysicalDeviceLimits::maxViewports- The sum of
firstExclusiveScissorandexclusiveScissorCountmust be between 1 andVkPhysicalDeviceLimits::maxViewports, inclusive - If the multiple viewports feature is not enabled,
firstExclusiveScissormust be 0 - If the multiple viewports feature is not enabled,
exclusiveScissorCountmust be 1 - The
xandymembers ofoffsetin each member ofpExclusiveScissorsmust be greater than or equal to 0 - Evaluation of
(offset.x + extent.width)for each member ofpExclusiveScissorsmust not cause a signed integer addition overflow - Evaluation of
(offset.y + extent.height)for each member ofpExclusiveScissorsmust not cause a signed integer addition overflow
Valid Usage (Implicit)
commandBuffermust be a validVkCommandBufferhandlepExclusiveScissorsmust be a valid pointer to an array ofexclusiveScissorCountVkRect2DstructurescommandBuffermust be in the recording state- The
VkCommandPoolthatcommandBufferwas allocated from must support graphics operations exclusiveScissorCountmust be greater than 0
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
Command Properties
Command Buffer Levels Render Pass Scope Supported Queue Types Pipeline Type Primary Secondary Both Graphics See Also
- Parameters:
commandBuffer- the command buffer into which the command will be recorded.firstExclusiveScissor- the index of the first exclusive scissor rectangle whose state is updated by the command.pExclusiveScissors- a pointer to an array ofVkRect2Dstructures defining exclusive scissor rectangles.
-
-