| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_NV_clip_space_w_scaling
- pattern VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV :: VkDynamicState
- pattern VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV :: VkStructureType
- pattern VK_NV_CLIP_SPACE_W_SCALING_SPEC_VERSION :: Integral a => a
- pattern VK_NV_CLIP_SPACE_W_SCALING_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCmdSetViewportWScalingNV :: ("commandBuffer" ::: VkCommandBuffer) -> ("firstViewport" ::: Word32) -> ("viewportCount" ::: Word32) -> ("pViewportWScalings" ::: Ptr VkViewportWScalingNV) -> IO ()
- data VkViewportWScalingNV = VkViewportWScalingNV {}
- data VkPipelineViewportWScalingStateCreateInfoNV = VkPipelineViewportWScalingStateCreateInfoNV {}
Documentation
pattern VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV :: VkDynamicState Source #
VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV specifies that the
pViewportScalings state in
VkPipelineViewportWScalingStateCreateInfoNV will be ignored and must
be set dynamically with vkCmdSetViewportWScalingNV before any draws
are performed with a pipeline state with
VkPipelineViewportWScalingStateCreateInfo member
viewportScalingEnable set to VK_TRUE
pattern VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV :: VkStructureType Source #
pattern VK_NV_CLIP_SPACE_W_SCALING_SPEC_VERSION :: Integral a => a Source #
pattern VK_NV_CLIP_SPACE_W_SCALING_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCmdSetViewportWScalingNV :: ("commandBuffer" ::: VkCommandBuffer) -> ("firstViewport" ::: Word32) -> ("viewportCount" ::: Word32) -> ("pViewportWScalings" ::: Ptr VkViewportWScalingNV) -> IO () Source #
vkCmdSetViewportWScalingNV - Set the viewport W scaling on a command buffer
Parameters
commandBufferis the command buffer into which the command will be recorded.
firstViewportis the index of the first viewport whose parameters are updated by the command.viewportCountis the number of viewports whose parameters are updated by the command.pViewportWScalingsis a pointer to an array ofVkViewportWScalingNVstructures specifying viewport parameters.
Description
The viewport parameters taken from element i of pViewportWScalings
replace the current state for the viewport index firstViewport + i,
for i in [0, viewportCount).
Valid Usage
- The bound graphics pipeline must have been created with the
VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NVdynamic state enabled
firstViewportmust be less thanVkPhysicalDeviceLimits::maxViewports- The sum of
firstViewportandviewportCountmust be between1andVkPhysicalDeviceLimits::maxViewports, inclusive
Valid Usage (Implicit)
commandBuffermust be a validVkCommandBufferhandle
pViewportWScalingsmust be a valid pointer to an array ofviewportCountVkViewportWScalingNVstructurescommandBuffermust be in the recording state- The
VkCommandPoolthatcommandBufferwas allocated from must support graphics operations viewportCountmust be greater than0
Host Synchronization
- Host access to
commandBuffermust be externally synchronized
- Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
Command Properties
+-----------------+-----------------+-----------------+-----------------+ | <#VkCommandBuff | <#vkCmdBeginRen | <#VkQueueFlagBi | <#synchronizati | | erLevel Command | derPass Render | ts Supported Qu | on-pipeline-sta | | Buffer Levels> | Pass Scope> | eue Types> | ges-types Pipel | | | | | ine Type> | +=================+=================+=================+=================+ | Primary | Both | Graphics | | | Secondary | | | | +-----------------+-----------------+-----------------+-----------------+
See Also
data VkViewportWScalingNV Source #
VkViewportWScalingNV - Structure specifying a viewport
Description
See Also
VkPipelineViewportWScalingStateCreateInfoNV,
vkCmdSetViewportWScalingNV
Constructors
| VkViewportWScalingNV | |
data VkPipelineViewportWScalingStateCreateInfoNV Source #
VkPipelineViewportWScalingStateCreateInfoNV - Structure specifying parameters of a newly created pipeline viewport W scaling state
Description
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV
viewportCountmust be greater than0
See Also
VkBool32, VkStructureType,
VkViewportWScalingNV
Constructors
| VkPipelineViewportWScalingStateCreateInfoNV | |
Fields
| |