C Specification
Applications can also control the sample locations used for rasterization.
If the pNext
chain of the VkPipelineMultisampleStateCreateInfo
structure specified at pipeline creation time includes an instance of the
VkPipelineSampleLocationsStateCreateInfoEXT
structure, then that
structure controls the sample locations used when rasterizing primitives
with the pipeline.
The VkPipelineSampleLocationsStateCreateInfoEXT
structure is defined
as:
typedef struct VkPipelineSampleLocationsStateCreateInfoEXT {
VkStructureType sType;
const void* pNext;
VkBool32 sampleLocationsEnable;
VkSampleLocationsInfoEXT sampleLocationsInfo;
} VkPipelineSampleLocationsStateCreateInfoEXT;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to an extension-specific structure. -
sampleLocationsEnable
controls whether custom sample locations are used. IfsampleLocationsEnable
isVK_FALSE
, the default sample locations are used and the values specified insampleLocationsInfo
are ignored. -
sampleLocationsInfo
is the sample locations to use during rasterization ifsampleLocationsEnable
isVK_TRUE
and the graphics pipeline is not created withVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
.
Description
See Also
VkBool32
, VkSampleLocationsInfoEXT, VkStructureType
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.