public class VkPhysicalDeviceSparseProperties
extends org.lwjgl.system.Struct
residencyStandard2DBlockShape – TRUE if 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 the imageGranularity member of the VkSparseImageFormatProperties structure for single-sample 2D images is not required: to match the standard sparse image block dimensions listed in the table.residencyStandard2DMultisampleBlockShape – TRUE if 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 the imageGranularity member of the VkSparseImageFormatProperties structure for multisample 2D images is not required: to match the standard sparse image block dimensions listed in the table.residencyStandard3DBlockShape – TRUE if 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 the imageGranularity member of the VkSparseImageFormatProperties structure for 3D images is not required: to match the standard sparse image block dimensions listed in the table.residencyAlignedMipSize – TRUE if 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 the imageGranularity member of the VkSparseImageFormatProperties structure will be placed in the mip tail. If this property is reported the implementation is allowed to return SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT in the flags member of VkSparseImageFormatProperties, 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 – specifies whether the physical device can consistently access non-resident regions of a resource. If this property is TRUE, access to non-resident regions of resources will be guaranteed to return values as if the resource were populated with 0; writes to non-resident regions will be discarded.
struct VkPhysicalDeviceSparseProperties {
VkBool32 residencyStandard2DBlockShape;
VkBool32 residencyStandard2DMultisampleBlockShape;
VkBool32 residencyStandard3DBlockShape;
VkBool32 residencyAlignedMipSize;
VkBool32 residencyNonResidentStrict;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceSparseProperties.Buffer
An array of
VkPhysicalDeviceSparseProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
RESIDENCYALIGNEDMIPSIZE
The struct member offsets.
|
static int |
RESIDENCYNONRESIDENTSTRICT
The struct member offsets.
|
static int |
RESIDENCYSTANDARD2DBLOCKSHAPE
The struct member offsets.
|
static int |
RESIDENCYSTANDARD2DMULTISAMPLEBLOCKSHAPE
The struct member offsets.
|
static int |
RESIDENCYSTANDARD3DBLOCKSHAPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkPhysicalDeviceSparseProperties(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceSparseProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceSparseProperties |
create(long address)
Returns a new
VkPhysicalDeviceSparseProperties instance for the specified memory address. |
static VkPhysicalDeviceSparseProperties.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceSparseProperties.Buffer instance at the specified memory. |
static VkPhysicalDeviceSparseProperties |
createSafe(long address)
|
static VkPhysicalDeviceSparseProperties.Buffer |
createSafe(long address,
int capacity)
|
static int |
nresidencyAlignedMipSize(long struct)
Unsafe version of
residencyAlignedMipSize(). |
static int |
nresidencyNonResidentStrict(long struct)
Unsafe version of
residencyNonResidentStrict(). |
static int |
nresidencyStandard2DBlockShape(long struct)
Unsafe version of
residencyStandard2DBlockShape(). |
static int |
nresidencyStandard2DMultisampleBlockShape(long struct)
Unsafe version of
residencyStandard2DMultisampleBlockShape(). |
static int |
nresidencyStandard3DBlockShape(long struct)
Unsafe version of
residencyStandard3DBlockShape(). |
boolean |
residencyAlignedMipSize()
Returns the value of the
residencyAlignedMipSize field. |
boolean |
residencyNonResidentStrict()
Returns the value of the
residencyNonResidentStrict field. |
boolean |
residencyStandard2DBlockShape()
Returns the value of the
residencyStandard2DBlockShape field. |
boolean |
residencyStandard2DMultisampleBlockShape()
Returns the value of the
residencyStandard2DMultisampleBlockShape field. |
boolean |
residencyStandard3DBlockShape()
Returns the value of the
residencyStandard3DBlockShape field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RESIDENCYSTANDARD2DBLOCKSHAPE
public static final int RESIDENCYSTANDARD2DMULTISAMPLEBLOCKSHAPE
public static final int RESIDENCYSTANDARD3DBLOCKSHAPE
public static final int RESIDENCYALIGNEDMIPSIZE
public static final int RESIDENCYNONRESIDENTSTRICT
public VkPhysicalDeviceSparseProperties(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic boolean residencyStandard2DBlockShape()
residencyStandard2DBlockShape field.public boolean residencyStandard2DMultisampleBlockShape()
residencyStandard2DMultisampleBlockShape field.public boolean residencyStandard3DBlockShape()
residencyStandard3DBlockShape field.public boolean residencyAlignedMipSize()
residencyAlignedMipSize field.public boolean residencyNonResidentStrict()
residencyNonResidentStrict field.public static VkPhysicalDeviceSparseProperties create(long address)
VkPhysicalDeviceSparseProperties instance for the specified memory address.@Nullable public static VkPhysicalDeviceSparseProperties createSafe(long address)
public static VkPhysicalDeviceSparseProperties.Buffer create(long address, int capacity)
VkPhysicalDeviceSparseProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceSparseProperties.Buffer createSafe(long address, int capacity)
public static int nresidencyStandard2DBlockShape(long struct)
residencyStandard2DBlockShape().public static int nresidencyStandard2DMultisampleBlockShape(long struct)
residencyStandard2DMultisampleBlockShape().public static int nresidencyStandard3DBlockShape(long struct)
residencyStandard3DBlockShape().public static int nresidencyAlignedMipSize(long struct)
residencyAlignedMipSize().public static int nresidencyNonResidentStrict(long struct)
residencyNonResidentStrict().Copyright LWJGL. All Rights Reserved. License terms.