Class VkPhysicalDeviceSparseProperties

All Implemented Interfaces:
Pointer

public class VkPhysicalDeviceSparseProperties extends Struct<VkPhysicalDeviceSparseProperties>

 struct VkPhysicalDeviceSparseProperties {
     VkBool32 residencyStandard2DBlockShape;
     VkBool32 residencyStandard2DMultisampleBlockShape;
     VkBool32 residencyStandard3DBlockShape;
     VkBool32 residencyAlignedMipSize;
     VkBool32 residencyNonResidentStrict;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • RESIDENCYSTANDARD2DBLOCKSHAPE

      public static final int RESIDENCYSTANDARD2DBLOCKSHAPE
      The struct member offsets.
    • RESIDENCYSTANDARD2DMULTISAMPLEBLOCKSHAPE

      public static final int RESIDENCYSTANDARD2DMULTISAMPLEBLOCKSHAPE
      The struct member offsets.
    • RESIDENCYSTANDARD3DBLOCKSHAPE

      public static final int RESIDENCYSTANDARD3DBLOCKSHAPE
      The struct member offsets.
    • RESIDENCYALIGNEDMIPSIZE

      public static final int RESIDENCYALIGNEDMIPSIZE
      The struct member offsets.
    • RESIDENCYNONRESIDENTSTRICT

      public static final int RESIDENCYNONRESIDENTSTRICT
      The struct member offsets.
  • Constructor Details

    • VkPhysicalDeviceSparseProperties

      public VkPhysicalDeviceSparseProperties(ByteBuffer container)
      Creates a VkPhysicalDeviceSparseProperties 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkPhysicalDeviceSparseProperties>
    • residencyStandard2DBlockShape

      public boolean residencyStandard2DBlockShape()
      Returns:
      the value of the residencyStandard2DBlockShape field.
    • residencyStandard2DMultisampleBlockShape

      public boolean residencyStandard2DMultisampleBlockShape()
      Returns:
      the value of the residencyStandard2DMultisampleBlockShape field.
    • residencyStandard3DBlockShape

      public boolean residencyStandard3DBlockShape()
      Returns:
      the value of the residencyStandard3DBlockShape field.
    • residencyAlignedMipSize

      public boolean residencyAlignedMipSize()
      Returns:
      the value of the residencyAlignedMipSize field.
    • residencyNonResidentStrict

      public boolean residencyNonResidentStrict()
      Returns:
      the value of the residencyNonResidentStrict field.
    • create

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

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

      public static VkPhysicalDeviceSparseProperties.Buffer create(long address, int capacity)
      Create a VkPhysicalDeviceSparseProperties.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkPhysicalDeviceSparseProperties.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nresidencyStandard2DBlockShape

      public static int nresidencyStandard2DBlockShape(long struct)
    • nresidencyStandard2DMultisampleBlockShape

      public static int nresidencyStandard2DMultisampleBlockShape(long struct)
    • nresidencyStandard3DBlockShape

      public static int nresidencyStandard3DBlockShape(long struct)
    • nresidencyAlignedMipSize

      public static int nresidencyAlignedMipSize(long struct)
      Unsafe version of residencyAlignedMipSize().
    • nresidencyNonResidentStrict

      public static int nresidencyNonResidentStrict(long struct)
      Unsafe version of residencyNonResidentStrict().