Class VkSampleLocationEXT

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

    public class VkSampleLocationEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    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

    VkSampleLocationsInfoEXT

    Member documentation

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

    Layout

    
     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.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • x

        public float x()
        Returns the value of the x field.
      • y

        public float y()
        Returns the value of the y field.
      • set

        public VkSampleLocationEXT set​(float x,
                                       float y)
        Initializes this struct with the specified values.
      • malloc

        public static VkSampleLocationEXT malloc()
        Returns a new VkSampleLocationEXT instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkSampleLocationEXT calloc()
        Returns a new VkSampleLocationEXT instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkSampleLocationEXT create()
        Returns a new VkSampleLocationEXT instance allocated with BufferUtils.
      • create

        public static VkSampleLocationEXT create​(long address)
        Returns a new VkSampleLocationEXT instance for the specified memory address.
      • createSafe

        @Nullable
        public static VkSampleLocationEXT createSafe​(long address)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static VkSampleLocationEXT mallocStack()
        Returns a new VkSampleLocationEXT instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkSampleLocationEXT callocStack()
        Returns a new VkSampleLocationEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkSampleLocationEXT mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkSampleLocationEXT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkSampleLocationEXT callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkSampleLocationEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static VkSampleLocationEXT.Buffer mallocStack​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new VkSampleLocationEXT.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static VkSampleLocationEXT.Buffer callocStack​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new VkSampleLocationEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nx

        public static float nx​(long struct)
        Unsafe version of x().
      • ny

        public static float ny​(long struct)
        Unsafe version of y().
      • nx

        public static void nx​(long struct,
                              float value)
        Unsafe version of x.
      • ny

        public static void ny​(long struct,
                              float value)
        Unsafe version of y.