Class VkAttachmentSampleCountInfoAMD

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, COLORATTACHMENTCOUNT, PCOLORATTACHMENTSAMPLES, DEPTHSTENCILATTACHMENTSAMPLES

        The struct member offsets.
    • Constructor Detail

      • VkAttachmentSampleCountInfoAMD

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

        public int sType()
        the type of this structure
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure
      • colorAttachmentCount

        public int colorAttachmentCount()
        the number of color attachments specified in a render pass instance.
      • pColorAttachmentSamples

        @Nullable
        public java.nio.IntBuffer pColorAttachmentSamples()
        a pointer to an array of VkSampleCountFlagBits values defining the sample count of color attachments.
      • depthStencilAttachmentSamples

        public int depthStencilAttachmentSamples()
        a VkSampleCountFlagBits value defining the sample count of a depth/stencil attachment.
      • set

        public VkAttachmentSampleCountInfoAMD set​(int sType,
                                                  long pNext,
                                                  @Nullable
                                                  java.nio.IntBuffer pColorAttachmentSamples,
                                                  int depthStencilAttachmentSamples)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • ncolorAttachmentCount

        public static int ncolorAttachmentCount​(long struct)
        Unsafe version of colorAttachmentCount().
      • npColorAttachmentSamples

        @Nullable
        public static java.nio.IntBuffer npColorAttachmentSamples​(long struct)
        Unsafe version of pColorAttachmentSamples.
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • ncolorAttachmentCount

        public static void ncolorAttachmentCount​(long struct,
                                                 int value)
        Sets the specified value to the colorAttachmentCount field of the specified struct.
      • npColorAttachmentSamples

        public static void npColorAttachmentSamples​(long struct,
                                                    @Nullable
                                                    java.nio.IntBuffer value)
        Unsafe version of pColorAttachmentSamples.
      • ndepthStencilAttachmentSamples

        public static void ndepthStencilAttachmentSamples​(long struct,
                                                          int value)
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate