Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- cmdSetSampleLocationsEXT :: forall io. MonadIO io => CommandBuffer -> SampleLocationsInfoEXT -> io ()
- getPhysicalDeviceMultisamplePropertiesEXT :: forall io. MonadIO io => PhysicalDevice -> ("samples" ::: SampleCountFlagBits) -> io MultisamplePropertiesEXT
- data SampleLocationEXT = SampleLocationEXT {}
- data SampleLocationsInfoEXT = SampleLocationsInfoEXT {}
- data AttachmentSampleLocationsEXT = AttachmentSampleLocationsEXT {}
- data SubpassSampleLocationsEXT = SubpassSampleLocationsEXT {}
- data RenderPassSampleLocationsBeginInfoEXT = RenderPassSampleLocationsBeginInfoEXT {}
- data PipelineSampleLocationsStateCreateInfoEXT = PipelineSampleLocationsStateCreateInfoEXT {}
- data PhysicalDeviceSampleLocationsPropertiesEXT = PhysicalDeviceSampleLocationsPropertiesEXT {}
- data MultisamplePropertiesEXT = MultisamplePropertiesEXT {}
- type EXT_SAMPLE_LOCATIONS_SPEC_VERSION = 1
- pattern EXT_SAMPLE_LOCATIONS_SPEC_VERSION :: forall a. Integral a => a
- type EXT_SAMPLE_LOCATIONS_EXTENSION_NAME = "VK_EXT_sample_locations"
- pattern EXT_SAMPLE_LOCATIONS_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
cmdSetSampleLocationsEXT Source #
:: forall io. MonadIO io | |
=> CommandBuffer |
|
-> SampleLocationsInfoEXT |
|
-> io () |
vkCmdSetSampleLocationsEXT - Set the dynamic sample locations state
Valid Usage
- The
sampleLocationsPerPixel
member ofpSampleLocationsInfo
must equal therasterizationSamples
member of thePipelineMultisampleStateCreateInfo
structure the bound graphics pipeline has been created with
- If
PhysicalDeviceSampleLocationsPropertiesEXT
::variableSampleLocations
isFALSE
then the current render pass must have been begun by specifying aRenderPassSampleLocationsBeginInfoEXT
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 validCommandBuffer
handle
pSampleLocationsInfo
must be a valid pointer to a validSampleLocationsInfoEXT
structurecommandBuffer
must be in the recording state- The
CommandPool
thatcommandBuffer
was allocated from must support graphics operations
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
CommandPool
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
getPhysicalDeviceMultisamplePropertiesEXT Source #
:: forall io. MonadIO io | |
=> PhysicalDevice |
|
-> ("samples" ::: SampleCountFlagBits) |
|
-> io MultisamplePropertiesEXT |
vkGetPhysicalDeviceMultisamplePropertiesEXT - Report sample count specific multisampling capabilities of a physical device
Valid Usage (Implicit)
See Also
MultisamplePropertiesEXT
, PhysicalDevice
,
SampleCountFlagBits
data SampleLocationEXT 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 SampleLocationEXT
structure are always
clamped to the implementation-dependent sample location coordinate range
[sampleLocationCoordinateRange
[0],sampleLocationCoordinateRange
[1]]
that can be queried by adding a
PhysicalDeviceSampleLocationsPropertiesEXT
structure to the pNext
chain of
PhysicalDeviceProperties2
.
See Also
Instances
data SampleLocationsInfoEXT 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
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].
If the render pass has a fragment density map, the implementation will
choose the sample locations for the fragment and the contents of
pSampleLocations
may be ignored.
Valid Usage
sampleLocationsPerPixel
must be a bit value that is set inPhysicalDeviceSampleLocationsPropertiesEXT
::sampleLocationSampleCounts
sampleLocationsCount
must equalsampleLocationsPerPixel
×sampleLocationGridSize.width
×sampleLocationGridSize.height
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT
- If
sampleLocationsPerPixel
is not0
,sampleLocationsPerPixel
must be a validSampleCountFlagBits
value - If
sampleLocationsCount
is not0
,pSampleLocations
must be a valid pointer to an array ofsampleLocationsCount
SampleLocationEXT
structures
See Also
AttachmentSampleLocationsEXT
, Extent2D
,
PipelineSampleLocationsStateCreateInfoEXT
,
SampleCountFlagBits
,
SampleLocationEXT
, StructureType
,
SubpassSampleLocationsEXT
, cmdSetSampleLocationsEXT
SampleLocationsInfoEXT | |
|
Instances
data AttachmentSampleLocationsEXT 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
IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
then the values specified in sampleLocationsInfo
are ignored.
Valid Usage (Implicit)
See Also
RenderPassSampleLocationsBeginInfoEXT
, SampleLocationsInfoEXT
AttachmentSampleLocationsEXT | |
|
Instances
data SubpassSampleLocationsEXT 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
IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
or if the subpass does not use a depth/stencil attachment, and
PhysicalDeviceSampleLocationsPropertiesEXT
::variableSampleLocations
is TRUE
then the values specified in
sampleLocationsInfo
are ignored.
Valid Usage (Implicit)
See Also
RenderPassSampleLocationsBeginInfoEXT
, SampleLocationsInfoEXT
SubpassSampleLocationsEXT | |
|
Instances
data RenderPassSampleLocationsBeginInfoEXT Source #
VkRenderPassSampleLocationsBeginInfoEXT - Structure specifying sample locations to use for the layout transition of custom sample locations compatible depth/stencil attachments
Valid Usage (Implicit)
- If
attachmentInitialSampleLocationsCount
is not0
,pAttachmentInitialSampleLocations
must be a valid pointer to an array ofattachmentInitialSampleLocationsCount
validAttachmentSampleLocationsEXT
structures - If
postSubpassSampleLocationsCount
is not0
,pPostSubpassSampleLocations
must be a valid pointer to an array ofpostSubpassSampleLocationsCount
validSubpassSampleLocationsEXT
structures
See Also
AttachmentSampleLocationsEXT
,
StructureType
,
SubpassSampleLocationsEXT
RenderPassSampleLocationsBeginInfoEXT | |
|
Instances
data PipelineSampleLocationsStateCreateInfoEXT Source #
VkPipelineSampleLocationsStateCreateInfoEXT - Structure specifying sample locations for a pipeline
Valid Usage (Implicit)
See Also
PipelineSampleLocationsStateCreateInfoEXT | |
|
Instances
data PhysicalDeviceSampleLocationsPropertiesEXT Source #
VkPhysicalDeviceSampleLocationsPropertiesEXT - Structure describing sample location limits that can be supported by an implementation
Members
The members of the PhysicalDeviceSampleLocationsPropertiesEXT
structure describe the following implementation-dependent limits:
Description
If the PhysicalDeviceSampleLocationsPropertiesEXT
structure is
included in the pNext
chain of
PhysicalDeviceProperties2
,
it is filled with the implementation-dependent limits.
Valid Usage (Implicit)
See Also
PhysicalDeviceSampleLocationsPropertiesEXT | |
|
Instances
data MultisamplePropertiesEXT Source #
VkMultisamplePropertiesEXT - Structure returning information about sample count specific additional multisampling capabilities
Valid Usage (Implicit)
See Also
Extent2D
,
StructureType
,
getPhysicalDeviceMultisamplePropertiesEXT
MultisamplePropertiesEXT | |
|
Instances
type EXT_SAMPLE_LOCATIONS_SPEC_VERSION = 1 Source #
pattern EXT_SAMPLE_LOCATIONS_SPEC_VERSION :: forall a. Integral a => a Source #
type EXT_SAMPLE_LOCATIONS_EXTENSION_NAME = "VK_EXT_sample_locations" Source #
pattern EXT_SAMPLE_LOCATIONS_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #