Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
commandBuffer
is the command buffer into which the command will be recorded.
firstViewport
is the index of the first viewport whose parameters are updated by the command.viewportCount
is the number of viewports whose parameters are updated by the command.pViewportWScalings
is a pointer to an array ofVkViewportWScalingNV
structures 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_NV
dynamic state enabled
firstViewport
must be less thanVkPhysicalDeviceLimits
::maxViewports
- The sum of
firstViewport
andviewportCount
must be between1
andVkPhysicalDeviceLimits
::maxViewports
, inclusive
Valid Usage (Implicit)
commandBuffer
must be a validVkCommandBuffer
handle
pViewportWScalings
must be a valid pointer to an array ofviewportCount
VkViewportWScalingNV
structurescommandBuffer
must be in the recording state- The
VkCommandPool
thatcommandBuffer
was allocated from must support graphics operations viewportCount
must be greater than0
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
VkCommandPool
thatcommandBuffer
was 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
data VkViewportWScalingNV Source #
VkViewportWScalingNV - Structure specifying a viewport
See Also
VkPipelineViewportWScalingStateCreateInfoNV
,
vkCmdSetViewportWScalingNV
Instances
Eq VkViewportWScalingNV Source # | |
(==) :: VkViewportWScalingNV -> VkViewportWScalingNV -> Bool # (/=) :: VkViewportWScalingNV -> VkViewportWScalingNV -> Bool # | |
Show VkViewportWScalingNV Source # | |
showsPrec :: Int -> VkViewportWScalingNV -> ShowS # show :: VkViewportWScalingNV -> String # showList :: [VkViewportWScalingNV] -> ShowS # | |
Storable VkViewportWScalingNV Source # | |
sizeOf :: VkViewportWScalingNV -> Int # alignment :: VkViewportWScalingNV -> Int # peekElemOff :: Ptr VkViewportWScalingNV -> Int -> IO VkViewportWScalingNV # pokeElemOff :: Ptr VkViewportWScalingNV -> Int -> VkViewportWScalingNV -> IO () # peekByteOff :: Ptr b -> Int -> IO VkViewportWScalingNV # pokeByteOff :: Ptr b -> Int -> VkViewportWScalingNV -> IO () # peek :: Ptr VkViewportWScalingNV -> IO VkViewportWScalingNV # poke :: Ptr VkViewportWScalingNV -> VkViewportWScalingNV -> IO () # |
data VkPipelineViewportWScalingStateCreateInfoNV Source #
VkPipelineViewportWScalingStateCreateInfoNV - Structure specifying parameters of a newly created pipeline viewport W scaling state
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV
viewportCount
must be greater than0
See Also
VkBool32
, VkStructureType
,
VkViewportWScalingNV
VkPipelineViewportWScalingStateCreateInfoNV | |
|