Package org.lwjgl.vulkan
Class VkPhysicalDeviceSparseProperties
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPhysicalDeviceSparseProperties>
org.lwjgl.vulkan.VkPhysicalDeviceSparseProperties
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VkPhysicalDeviceSparseProperties
extends org.lwjgl.system.Struct<VkPhysicalDeviceSparseProperties>
Structure specifying physical device sparse memory properties.
See Also
Layout
struct VkPhysicalDeviceSparseProperties {
VkBool32 residencyStandard2DBlockShape();
VkBool32 residencyStandard2DMultisampleBlockShape();
VkBool32 residencyStandard3DBlockShape();
VkBool32 residencyAlignedMipSize();
VkBool32 residencyNonResidentStrict();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkPhysicalDeviceSparsePropertiesstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceSparseProperties(ByteBuffer container) Creates aVkPhysicalDeviceSparsePropertiesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncreate(long address) Returns a newVkPhysicalDeviceSparsePropertiesinstance for the specified memory address.create(long address, int capacity) Create aVkPhysicalDeviceSparseProperties.Bufferinstance at the specified memory.static @Nullable VkPhysicalDeviceSparsePropertiescreateSafe(long address) static @Nullable VkPhysicalDeviceSparseProperties.BuffercreateSafe(long address, int capacity) static intnresidencyAlignedMipSize(long struct) Unsafe version ofresidencyAlignedMipSize().static intnresidencyNonResidentStrict(long struct) Unsafe version ofresidencyNonResidentStrict().static intnresidencyStandard2DBlockShape(long struct) Unsafe version ofresidencyStandard2DBlockShape().static intnresidencyStandard2DMultisampleBlockShape(long struct) Unsafe version ofresidencyStandard2DMultisampleBlockShape().static intnresidencyStandard3DBlockShape(long struct) Unsafe version ofresidencyStandard3DBlockShape().booleanTRUEif images with mip level dimensions that are not integer multiples of the corresponding dimensions of the sparse image block may be placed in the mip tail.booleanspecifies whether the physical device can consistently access non-resident regions of a resource.booleanTRUEif the physical device will access all single-sample 2D sparse resources using the standard sparse image block shapes (based on image format), as described in the Standard Sparse Image Block Shapes (Single Sample) table.booleanTRUEif the physical device will access all multisample 2D sparse resources using the standard sparse image block shapes (based on image format), as described in the Standard Sparse Image Block Shapes (MSAA) table.booleanTRUEif the physical device will access all 3D sparse resources using the standard sparse image block shapes (based on image format), as described in the Standard Sparse Image Block Shapes (Single Sample) table.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
RESIDENCYSTANDARD2DBLOCKSHAPE
public static final int RESIDENCYSTANDARD2DBLOCKSHAPEThe struct member offsets. -
RESIDENCYSTANDARD2DMULTISAMPLEBLOCKSHAPE
public static final int RESIDENCYSTANDARD2DMULTISAMPLEBLOCKSHAPEThe struct member offsets. -
RESIDENCYSTANDARD3DBLOCKSHAPE
public static final int RESIDENCYSTANDARD3DBLOCKSHAPEThe struct member offsets. -
RESIDENCYALIGNEDMIPSIZE
public static final int RESIDENCYALIGNEDMIPSIZEThe struct member offsets. -
RESIDENCYNONRESIDENTSTRICT
public static final int RESIDENCYNONRESIDENTSTRICTThe struct member offsets.
-
-
Constructor Details
-
VkPhysicalDeviceSparseProperties
Creates aVkPhysicalDeviceSparsePropertiesinstance at the current position of the specifiedByteBuffercontainer. 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkPhysicalDeviceSparseProperties>
-
residencyStandard2DBlockShape
public boolean residencyStandard2DBlockShape()TRUEif the physical device will access all single-sample 2D sparse resources using the standard sparse image block shapes (based on image format), as described in the Standard Sparse Image Block Shapes (Single Sample) table. If this property is not supported the value returned in theimageGranularitymember of theVkSparseImageFormatPropertiesstructure for single-sample 2D images is not required to match the standard sparse image block dimensions listed in the table. -
residencyStandard2DMultisampleBlockShape
public boolean residencyStandard2DMultisampleBlockShape()TRUEif the physical device will access all multisample 2D sparse resources using the standard sparse image block shapes (based on image format), as described in the Standard Sparse Image Block Shapes (MSAA) table. If this property is not supported, the value returned in theimageGranularitymember of theVkSparseImageFormatPropertiesstructure for multisample 2D images is not required to match the standard sparse image block dimensions listed in the table. -
residencyStandard3DBlockShape
public boolean residencyStandard3DBlockShape()TRUEif the physical device will access all 3D sparse resources using the standard sparse image block shapes (based on image format), as described in the Standard Sparse Image Block Shapes (Single Sample) table. If this property is not supported, the value returned in theimageGranularitymember of theVkSparseImageFormatPropertiesstructure for 3D images is not required to match the standard sparse image block dimensions listed in the table. -
residencyAlignedMipSize
public boolean residencyAlignedMipSize()TRUEif images with mip level dimensions that are not integer multiples of the corresponding dimensions of the sparse image block may be placed in the mip tail. If this property is not reported, only mip levels with dimensions smaller than theimageGranularitymember of theVkSparseImageFormatPropertiesstructure will be placed in the mip tail. If this property is reported the implementation is allowed to returnSPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BITin theflagsmember ofVkSparseImageFormatProperties, indicating that mip level dimensions that are not integer multiples of the corresponding dimensions of the sparse image block will be placed in the mip tail. -
residencyNonResidentStrict
public boolean residencyNonResidentStrict()specifies whether the physical device can consistently access non-resident regions of a resource. If this property isTRUE, access to non-resident regions of resources will be guaranteed to return values as if the resource was populated with 0; writes to non-resident regions will be discarded. -
create
Returns a newVkPhysicalDeviceSparsePropertiesinstance for the specified memory address. -
createSafe
-
create
Create aVkPhysicalDeviceSparseProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkPhysicalDeviceSparseProperties.Buffer createSafe(long address, int capacity) -
nresidencyStandard2DBlockShape
public static int nresidencyStandard2DBlockShape(long struct) Unsafe version ofresidencyStandard2DBlockShape(). -
nresidencyStandard2DMultisampleBlockShape
public static int nresidencyStandard2DMultisampleBlockShape(long struct) Unsafe version ofresidencyStandard2DMultisampleBlockShape(). -
nresidencyStandard3DBlockShape
public static int nresidencyStandard3DBlockShape(long struct) Unsafe version ofresidencyStandard3DBlockShape(). -
nresidencyAlignedMipSize
public static int nresidencyAlignedMipSize(long struct) Unsafe version ofresidencyAlignedMipSize(). -
nresidencyNonResidentStrict
public static int nresidencyNonResidentStrict(long struct) Unsafe version ofresidencyNonResidentStrict().
-