Class VkSubpassSampleLocationsEXT

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

    public class VkSubpassSampleLocationsEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    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 VkPhysicalDeviceSampleLocationsPropertiesEXT::variableSampleLocations is TRUE then the values specified in sampleLocationsInfo are ignored.

    Valid Usage
    Valid Usage (Implicit)
    See Also

    VkRenderPassSampleLocationsBeginInfoEXT, VkSampleLocationsInfoEXT

    Member documentation

    • subpassIndex – the index of the subpass for which the sample locations state is provided.
    • sampleLocationsInfo – the sample locations state to use for the layout transition of the depth/stencil attachment away from the image layout the attachment is used with in the subpass specified in subpassIndex.

    Layout

    
     struct VkSubpassSampleLocationsEXT {
         uint32_t subpassIndex;
         VkSampleLocationsInfoEXT sampleLocationsInfo;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SUBPASSINDEX, SAMPLELOCATIONSINFO

        The struct member offsets.
    • Constructor Detail

      • VkSubpassSampleLocationsEXT

        public VkSubpassSampleLocationsEXT​(java.nio.ByteBuffer container)
        Creates a VkSubpassSampleLocationsEXT 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.