Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- pattern VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT :: VkDynamicState
- pattern VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT :: VkStructureType
- pattern VK_STRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT :: VkStructureType
- pattern VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT :: VkStructureType
- pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT :: VkStructureType
- pattern VK_STRUCTURE_TYPE_MULTISAMPLE_PROPERTIES_EXT :: VkStructureType
- pattern VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT :: VkImageCreateFlagBits
- pattern VK_EXT_SAMPLE_LOCATIONS_SPEC_VERSION :: Integral a => a
- pattern VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCmdSetSampleLocationsEXT :: ("commandBuffer" ::: VkCommandBuffer) -> ("pSampleLocationsInfo" ::: Ptr VkSampleLocationsInfoEXT) -> IO ()
- vkGetPhysicalDeviceMultisamplePropertiesEXT :: ("physicalDevice" ::: VkPhysicalDevice) -> ("samples" ::: VkSampleCountFlagBits) -> ("pMultisampleProperties" ::: Ptr VkMultisamplePropertiesEXT) -> IO ()
- data VkSampleLocationEXT = VkSampleLocationEXT {}
- data VkSampleLocationsInfoEXT = VkSampleLocationsInfoEXT {}
- data VkAttachmentSampleLocationsEXT = VkAttachmentSampleLocationsEXT {}
- data VkSubpassSampleLocationsEXT = VkSubpassSampleLocationsEXT {}
- data VkRenderPassSampleLocationsBeginInfoEXT = VkRenderPassSampleLocationsBeginInfoEXT {}
- data VkPipelineSampleLocationsStateCreateInfoEXT = VkPipelineSampleLocationsStateCreateInfoEXT {}
- data VkPhysicalDeviceSampleLocationsPropertiesEXT = VkPhysicalDeviceSampleLocationsPropertiesEXT {}
- data VkMultisamplePropertiesEXT = VkMultisamplePropertiesEXT {}
Documentation
pattern VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT :: VkDynamicState Source #
VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
specifies that the
sampleLocationsInfo
state in
VkPipelineSampleLocationsStateCreateInfoEXT
will be ignored and must
be set dynamically with vkCmdSetSampleLocationsEXT
before any draw or
clear commands. Enabling custom sample locations is still indicated by
the sampleLocationsEnable
member of
VkPipelineSampleLocationsStateCreateInfoEXT
.
pattern VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT :: VkStructureType Source #
pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT :: VkStructureType Source #
pattern VK_EXT_SAMPLE_LOCATIONS_SPEC_VERSION :: Integral a => a Source #
pattern VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCmdSetSampleLocationsEXT :: ("commandBuffer" ::: VkCommandBuffer) -> ("pSampleLocationsInfo" ::: Ptr VkSampleLocationsInfoEXT) -> IO () Source #
vkCmdSetSampleLocationsEXT - Set the dynamic sample locations state
Parameters
commandBuffer
is the command buffer into which the command will be recorded.
pSampleLocationsInfo
is the sample locations state to set.
Valid Usage
- The bound graphics pipeline must have been created with the
VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled
- The
sampleLocationsPerPixel
member ofpSampleLocationsInfo
must equal therasterizationSamples
member of theVkPipelineMultisampleStateCreateInfo
structure the bound graphics pipeline has been created with - If
VkPhysicalDeviceSampleLocationsPropertiesEXT
::variableSampleLocations
isVK_FALSE
then the current render pass must have been begun by specifying aVkRenderPassSampleLocationsBeginInfoEXT
structure whosepPostSubpassSampleLocations
member contains an element with asubpassIndex
matching the current subpass index and thesampleLocationsInfo
member of that element must match the sample locations state pointed to bypSampleLocationsInfo
Valid Usage (Implicit)
commandBuffer
must be a validVkCommandBuffer
handle
pSampleLocationsInfo
must be a valid pointer to a validVkSampleLocationsInfoEXT
structurecommandBuffer
must be in the recording state- The
VkCommandPool
thatcommandBuffer
was allocated from must support graphics operations
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
vkGetPhysicalDeviceMultisamplePropertiesEXT :: ("physicalDevice" ::: VkPhysicalDevice) -> ("samples" ::: VkSampleCountFlagBits) -> ("pMultisampleProperties" ::: Ptr VkMultisamplePropertiesEXT) -> IO () Source #
vkGetPhysicalDeviceMultisamplePropertiesEXT - Report sample count specific multisampling capabilities of a physical device
Parameters
physicalDevice
is the physical device from which to query the additional multisampling capabilities.
samples
is the sample count to query the capabilities for.pMultisampleProperties
is a pointer to a structure of typeVkMultisamplePropertiesEXT
, in which information about the additional multisampling capabilities specific to the sample count is returned.
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
samples
must be a validVkSampleCountFlagBits
valuepMultisampleProperties
must be a valid pointer to aVkMultisamplePropertiesEXT
structure
See Also
VkMultisamplePropertiesEXT
,
VkPhysicalDevice
,
VkSampleCountFlagBits
data VkSampleLocationEXT Source #
VkSampleLocationEXT - Structure specifying the coordinates of a sample location
Description
The domain space of the sample location coordinates has an upper-left origin within the pixel in framebuffer space.
The values specified in a VkSampleLocationEXT
structure are always
clamped to the implementation-dependent sample location coordinate range
[sampleLocationCoordinateRange
[0],sampleLocationCoordinateRange
[1]]
that can be queried by chaining the
VkPhysicalDeviceSampleLocationsPropertiesEXT
structure to the pNext
chain of
VkPhysicalDeviceProperties2
.
See Also
Instances
Eq VkSampleLocationEXT Source # | |
(==) :: VkSampleLocationEXT -> VkSampleLocationEXT -> Bool # (/=) :: VkSampleLocationEXT -> VkSampleLocationEXT -> Bool # | |
Show VkSampleLocationEXT Source # | |
showsPrec :: Int -> VkSampleLocationEXT -> ShowS # show :: VkSampleLocationEXT -> String # showList :: [VkSampleLocationEXT] -> ShowS # | |
Storable VkSampleLocationEXT Source # | |
sizeOf :: VkSampleLocationEXT -> Int # alignment :: VkSampleLocationEXT -> Int # peekElemOff :: Ptr VkSampleLocationEXT -> Int -> IO VkSampleLocationEXT # pokeElemOff :: Ptr VkSampleLocationEXT -> Int -> VkSampleLocationEXT -> IO () # peekByteOff :: Ptr b -> Int -> IO VkSampleLocationEXT # pokeByteOff :: Ptr b -> Int -> VkSampleLocationEXT -> IO () # peek :: Ptr VkSampleLocationEXT -> IO VkSampleLocationEXT # poke :: Ptr VkSampleLocationEXT -> VkSampleLocationEXT -> IO () # |
data VkSampleLocationsInfoEXT Source #
VkSampleLocationsInfoEXT - Structure specifying a set of sample locations
Description
This structure can be used either to specify the sample locations to
be used for rendering or to specify the set of sample locations an image
subresource has been last rendered with for the purposes of layout
transitions of depth/stencil images created with
VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
.
The sample locations in pSampleLocations
specify
sampleLocationsPerPixel
number of sample locations for each pixel in
the grid of the size specified in sampleLocationGridSize
. The sample
location for sample i at the pixel grid location (x,y) is taken from
pSampleLocations
[(x + y * sampleLocationGridSize.width
) *
sampleLocationsPerPixel
+ i].
Valid Usage
sampleLocationsPerPixel
must be a bit value that is set inVkPhysicalDeviceSampleLocationsPropertiesEXT
::sampleLocationSampleCounts
sampleLocationsCount
must equalsampleLocationsPerPixel
×sampleLocationGridSize.width
×sampleLocationGridSize.height
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT
sampleLocationsPerPixel
must be a validVkSampleCountFlagBits
valuepSampleLocations
must be a valid pointer to an array ofsampleLocationsCount
VkSampleLocationEXT
structuressampleLocationsCount
must be greater than0
See Also
VkAttachmentSampleLocationsEXT
,
VkExtent2D
,
VkPipelineSampleLocationsStateCreateInfoEXT
,
VkSampleCountFlagBits
,
VkSampleLocationEXT
, VkStructureType
,
VkSubpassSampleLocationsEXT
, vkCmdSetSampleLocationsEXT
VkSampleLocationsInfoEXT | |
|
Instances
Eq VkSampleLocationsInfoEXT Source # | |
Show VkSampleLocationsInfoEXT Source # | |
showsPrec :: Int -> VkSampleLocationsInfoEXT -> ShowS # show :: VkSampleLocationsInfoEXT -> String # showList :: [VkSampleLocationsInfoEXT] -> ShowS # | |
Storable VkSampleLocationsInfoEXT Source # | |
sizeOf :: VkSampleLocationsInfoEXT -> Int # alignment :: VkSampleLocationsInfoEXT -> Int # peekElemOff :: Ptr VkSampleLocationsInfoEXT -> Int -> IO VkSampleLocationsInfoEXT # pokeElemOff :: Ptr VkSampleLocationsInfoEXT -> Int -> VkSampleLocationsInfoEXT -> IO () # peekByteOff :: Ptr b -> Int -> IO VkSampleLocationsInfoEXT # pokeByteOff :: Ptr b -> Int -> VkSampleLocationsInfoEXT -> IO () # peek :: Ptr VkSampleLocationsInfoEXT -> IO VkSampleLocationsInfoEXT # poke :: Ptr VkSampleLocationsInfoEXT -> VkSampleLocationsInfoEXT -> IO () # |
data VkAttachmentSampleLocationsEXT Source #
VkAttachmentSampleLocationsEXT - Structure specifying the sample locations state to use in the initial layout transition of attachments
Description
If the image referenced by the framebuffer attachment at index
attachmentIndex
was not created with
VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
then the
values specified in sampleLocationsInfo
are ignored.
Valid Usage
attachmentIndex
must be less than theattachmentCount
specified inVkRenderPassCreateInfo
the render pass specified byVkRenderPassBeginInfo
::renderPass
was created with
Valid Usage (Implicit)
sampleLocationsInfo
must be a validVkSampleLocationsInfoEXT
structure
See Also
VkRenderPassSampleLocationsBeginInfoEXT
, VkSampleLocationsInfoEXT
VkAttachmentSampleLocationsEXT | |
|
Instances
data VkSubpassSampleLocationsEXT Source #
VkSubpassSampleLocationsEXT - Structure specifying the sample locations state to use for layout transitions of attachments performed after a given subpass
Description
If the image referenced by the depth/stencil attachment used in the
subpass identified by subpassIndex
was not created with
VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
or if the
subpass does not use a depth/stencil attachment, and
VkPhysicalDeviceSampleLocationsPropertiesEXT
::variableSampleLocations
is VK_TRUE
then the values specified in sampleLocationsInfo
are
ignored.
Valid Usage
subpassIndex
must be less than thesubpassCount
specified inVkRenderPassCreateInfo
the render pass specified byVkRenderPassBeginInfo
::renderPass
was created with
Valid Usage (Implicit)
sampleLocationsInfo
must be a validVkSampleLocationsInfoEXT
structure
See Also
VkRenderPassSampleLocationsBeginInfoEXT
, VkSampleLocationsInfoEXT
VkSubpassSampleLocationsEXT | |
|
Instances
data VkRenderPassSampleLocationsBeginInfoEXT Source #
VkRenderPassSampleLocationsBeginInfoEXT - Structure specifying sample locations to use for the layout transition of custom sample locations compatible depth/stencil attachments
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT
- If
attachmentInitialSampleLocationsCount
is not0
,pAttachmentInitialSampleLocations
must be a valid pointer to an array ofattachmentInitialSampleLocationsCount
validVkAttachmentSampleLocationsEXT
structures - If
postSubpassSampleLocationsCount
is not0
,pPostSubpassSampleLocations
must be a valid pointer to an array ofpostSubpassSampleLocationsCount
validVkSubpassSampleLocationsEXT
structures
See Also
VkAttachmentSampleLocationsEXT
,
VkStructureType
,
VkSubpassSampleLocationsEXT
VkRenderPassSampleLocationsBeginInfoEXT | |
|
Instances
data VkPipelineSampleLocationsStateCreateInfoEXT Source #
VkPipelineSampleLocationsStateCreateInfoEXT - Structure specifying sample locations for a pipeline
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT
sampleLocationsInfo
must be a validVkSampleLocationsInfoEXT
structure
See Also
VkBool32
, VkSampleLocationsInfoEXT
,
VkStructureType
VkPipelineSampleLocationsStateCreateInfoEXT | |
|
Instances
data VkPhysicalDeviceSampleLocationsPropertiesEXT Source #
VkPhysicalDeviceSampleLocationsPropertiesEXT - Structure describing sample location limits that can be supported by an implementation
Members
The members of the VkPhysicalDeviceSampleLocationsPropertiesEXT
structure describe the following implementation-dependent limits:
Description
sampleLocationSampleCounts
is a bitmask ofVkSampleCountFlagBits
indicating the sample counts supporting custom sample locations.
maxSampleLocationGridSize
is the maximum size of the pixel grid in which sample locations can vary that is supported for all sample counts insampleLocationSampleCounts
.sampleLocationCoordinateRange
[2] is the range of supported sample location coordinates.sampleLocationSubPixelBits
is the number of bits of subpixel precision for sample locations.variableSampleLocations
specifies whether the sample locations used by all pipelines that will be bound to a command buffer during a subpass must match. If set toVK_TRUE
, the implementation supports variable sample locations in a subpass. If set toVK_FALSE
, then the sample locations must stay constant in each subpass.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT
If the VkPhysicalDeviceSampleLocationsPropertiesEXT
structure is
included in the pNext
chain of
VkPhysicalDeviceProperties2
,
it is filled with the implementation-dependent limits.
See Also
VkBool32
, VkExtent2D
,
VkSampleCountFlags
,
VkStructureType
Instances
data VkMultisamplePropertiesEXT Source #
VkMultisamplePropertiesEXT - Structure returning information about sample count specific additional multisampling capabilities
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_MULTISAMPLE_PROPERTIES_EXT
pNext
must beNULL
See Also
VkExtent2D
,
VkStructureType
,
vkGetPhysicalDeviceMultisamplePropertiesEXT
VkMultisamplePropertiesEXT | |
|