Class VkSampleLocationEXT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkSampleLocationEXT
    extends Struct
    implements NativeResource
    Structure specifying the coordinates of a sample 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 by chaining the VkPhysicalDeviceSampleLocationsPropertiesEXT structure to the pNext chain of VkPhysicalDeviceProperties2.

    See Also


    Member documentation

    • x – the horizontal coordinate of the sample’s location.
    • y – the vertical coordinate of the sample’s location.


     struct VkSampleLocationEXT {
         float x;
         float y;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • X, Y

        The struct member offsets.
    • Constructor Detail

      • VkSampleLocationEXT

        public VkSampleLocationEXT​(java.nio.ByteBuffer container)
        Creates a VkSampleLocationEXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.