public class VkSparseImageFormatProperties
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
aspectMask – a bitmask VkImageAspectFlagBits specifying which aspects of the image the properties apply to.imageGranularity – the width, height, and depth of the sparse image block in texels or compressed texel blocks.flags – a bitmask of VkSparseImageFormatFlagBits specifying additional information about the sparse resource.
struct VkSparseImageFormatProperties {
VkImageAspectFlags aspectMask;
VkExtent3D imageGranularity;
VkSparseImageFormatFlags flags;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSparseImageFormatProperties.Buffer
An array of
VkSparseImageFormatProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ASPECTMASK
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
IMAGEGRANULARITY
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkSparseImageFormatProperties(java.nio.ByteBuffer container)
Creates a
VkSparseImageFormatProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
aspectMask()
Returns the value of the
aspectMask field. |
static VkSparseImageFormatProperties |
calloc()
Returns a new
VkSparseImageFormatProperties instance allocated with memCalloc. |
static VkSparseImageFormatProperties.Buffer |
calloc(int capacity)
Returns a new
VkSparseImageFormatProperties.Buffer instance allocated with memCalloc. |
static VkSparseImageFormatProperties |
callocStack()
Returns a new
VkSparseImageFormatProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseImageFormatProperties.Buffer |
callocStack(int capacity)
Returns a new
VkSparseImageFormatProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseImageFormatProperties.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageFormatProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseImageFormatProperties |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageFormatProperties instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseImageFormatProperties |
create()
Returns a new
VkSparseImageFormatProperties instance allocated with BufferUtils. |
static VkSparseImageFormatProperties.Buffer |
create(int capacity)
Returns a new
VkSparseImageFormatProperties.Buffer instance allocated with BufferUtils. |
static VkSparseImageFormatProperties |
create(long address)
Returns a new
VkSparseImageFormatProperties instance for the specified memory address. |
static VkSparseImageFormatProperties.Buffer |
create(long address,
int capacity)
Create a
VkSparseImageFormatProperties.Buffer instance at the specified memory. |
static VkSparseImageFormatProperties |
createSafe(long address)
|
static VkSparseImageFormatProperties.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkExtent3D |
imageGranularity()
Returns a
VkExtent3D view of the imageGranularity field. |
static VkSparseImageFormatProperties |
malloc()
Returns a new
VkSparseImageFormatProperties instance allocated with memAlloc. |
static VkSparseImageFormatProperties.Buffer |
malloc(int capacity)
Returns a new
VkSparseImageFormatProperties.Buffer instance allocated with memAlloc. |
static VkSparseImageFormatProperties |
mallocStack()
Returns a new
VkSparseImageFormatProperties instance allocated on the thread-local MemoryStack. |
static VkSparseImageFormatProperties.Buffer |
mallocStack(int capacity)
Returns a new
VkSparseImageFormatProperties.Buffer instance allocated on the thread-local MemoryStack. |
static VkSparseImageFormatProperties.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageFormatProperties.Buffer instance allocated on the specified MemoryStack. |
static VkSparseImageFormatProperties |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageFormatProperties instance allocated on the specified MemoryStack. |
static int |
naspectMask(long struct)
Unsafe version of
aspectMask(). |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static VkExtent3D |
nimageGranularity(long struct)
Unsafe version of
imageGranularity(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ASPECTMASK
public static final int IMAGEGRANULARITY
public static final int FLAGS
public VkSparseImageFormatProperties(java.nio.ByteBuffer container)
VkSparseImageFormatProperties 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 int aspectMask()
aspectMask field.public VkExtent3D imageGranularity()
VkExtent3D view of the imageGranularity field.public int flags()
flags field.public static VkSparseImageFormatProperties malloc()
VkSparseImageFormatProperties instance allocated with memAlloc. The instance must be explicitly freed.public static VkSparseImageFormatProperties calloc()
VkSparseImageFormatProperties instance allocated with memCalloc. The instance must be explicitly freed.public static VkSparseImageFormatProperties create()
VkSparseImageFormatProperties instance allocated with BufferUtils.public static VkSparseImageFormatProperties create(long address)
VkSparseImageFormatProperties instance for the specified memory address.@Nullable public static VkSparseImageFormatProperties createSafe(long address)
public static VkSparseImageFormatProperties.Buffer malloc(int capacity)
VkSparseImageFormatProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseImageFormatProperties.Buffer calloc(int capacity)
VkSparseImageFormatProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseImageFormatProperties.Buffer create(int capacity)
VkSparseImageFormatProperties.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSparseImageFormatProperties.Buffer create(long address, int capacity)
VkSparseImageFormatProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSparseImageFormatProperties.Buffer createSafe(long address, int capacity)
public static VkSparseImageFormatProperties mallocStack()
VkSparseImageFormatProperties instance allocated on the thread-local MemoryStack.public static VkSparseImageFormatProperties callocStack()
VkSparseImageFormatProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSparseImageFormatProperties mallocStack(org.lwjgl.system.MemoryStack stack)
VkSparseImageFormatProperties instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSparseImageFormatProperties callocStack(org.lwjgl.system.MemoryStack stack)
VkSparseImageFormatProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSparseImageFormatProperties.Buffer mallocStack(int capacity)
VkSparseImageFormatProperties.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSparseImageFormatProperties.Buffer callocStack(int capacity)
VkSparseImageFormatProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSparseImageFormatProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseImageFormatProperties.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSparseImageFormatProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseImageFormatProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int naspectMask(long struct)
aspectMask().public static VkExtent3D nimageGranularity(long struct)
imageGranularity().public static int nflags(long struct)
flags().Copyright LWJGL. All Rights Reserved. License terms.