cmdSetSampleLocationsEXT :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded.-> SampleLocationsInfoEXTpSampleLocationsInfois the sample locations state to set.-> io ()
vkCmdSetSampleLocationsEXT - Set sample locations dynamically for a command buffer
Description
This command sets the custom sample locations for subsequent drawing
commands when drawing using
shader objects,
or when the graphics pipeline is created with
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
set in
PipelineDynamicStateCreateInfo::pDynamicStates,
and when the
PipelineSampleLocationsStateCreateInfoEXT::sampleLocationsEnable
property of the bound graphics pipeline is
TRUE. Otherwise, this state is
specified by the
PipelineSampleLocationsStateCreateInfoEXT::sampleLocationsInfo
values used to create the currently active pipeline.
Valid Usage
If PhysicalDeviceSampleLocationsPropertiesEXT::
variableSampleLocationsis FALSE then the current render pass must have been begun by specifying a RenderPassSampleLocationsBeginInfoEXT structure whosepPostSubpassSampleLocationsmember contains an element with asubpassIndexmatching the current subpass index and thesampleLocationsInfomember of that element must match the sample locations state pointed to bypSampleLocationsInfo
Valid Usage (Implicit)
commandBuffermust be a valid CommandBuffer handle
pSampleLocationsInfomust be a valid pointer to a valid SampleLocationsInfoEXT structurecommandBuffermust be in the recording stateThe CommandPool that
commandBufferwas allocated from must support QUEUE_GRAPHICS_BIT operationsThis command must only be called outside of a video coding scope
Host Synchronization
Host access to
commandBuffermust be externally synchronized
Host access to the CommandPool that
commandBufferwas allocated from must be externally synchronized
Command Properties
'
Primary Secondary | Both | Outside | VK_QUEUE_GRAPHICS_BIT | State |
Conditional Rendering
vkCmdSetSampleLocationsEXT is not affected by conditional rendering
See Also
VK_EXT_sample_locations, CommandBuffer, SampleLocationsInfoEXT