Structures

VkSampleLocationEXT

Structure specifying the coordinates of a sample location

The VkSampleLocationEXT structure is defined as:

typedef struct VkSampleLocationEXT {
    float x;
    float y;
} VkSampleLocationEXT;
  • x is the horizontal coordinate of the sample’s location.
  • y is the vertical coordinate of the sample’s location.

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 using VkPhysicalDeviceSampleLocationsPropertiesEXT.