public class VkImagePlaneMemoryRequirementsInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
IMAGE_TILING_LINEAR or IMAGE_TILING_OPTIMAL, then planeAspect must be a single valid format plane for the image. (That is, for a two-plane image planeAspect must be IMAGE_ASPECT_PLANE_0_BIT or IMAGE_ASPECT_PLANE_1_BIT, and for a three-plane image planeAspect must be IMAGE_ASPECT_PLANE_0_BIT, IMAGE_ASPECT_PLANE_1_BIT or IMAGE_ASPECT_PLANE_2_BIT).IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then planeAspect must be a single valid memory plane for the image. (That is, aspectMask must specify a plane index that is less than the drmFormatModifierPlaneCount associated with the image’s format and drmFormatModifier.)sType must be STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFOplaneAspect must be a valid VkImageAspectFlagBits valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.planeAspect – the aspect corresponding to the image plane to query.
struct VkImagePlaneMemoryRequirementsInfo {
VkStructureType sType;
void const * pNext;
VkImageAspectFlagBits planeAspect;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImagePlaneMemoryRequirementsInfo.Buffer
An array of
VkImagePlaneMemoryRequirementsInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PLANEASPECT
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImagePlaneMemoryRequirementsInfo(java.nio.ByteBuffer container)
Creates a
VkImagePlaneMemoryRequirementsInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImagePlaneMemoryRequirementsInfo |
calloc()
Returns a new
VkImagePlaneMemoryRequirementsInfo instance allocated with memCalloc. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
calloc(int capacity)
Returns a new
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated with memCalloc. |
static VkImagePlaneMemoryRequirementsInfo |
callocStack()
Returns a new
VkImagePlaneMemoryRequirementsInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
callocStack(int capacity)
Returns a new
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImagePlaneMemoryRequirementsInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImagePlaneMemoryRequirementsInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImagePlaneMemoryRequirementsInfo |
create()
Returns a new
VkImagePlaneMemoryRequirementsInfo instance allocated with BufferUtils. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
create(int capacity)
Returns a new
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated with BufferUtils. |
static VkImagePlaneMemoryRequirementsInfo |
create(long address)
Returns a new
VkImagePlaneMemoryRequirementsInfo instance for the specified memory address. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
create(long address,
int capacity)
Create a
VkImagePlaneMemoryRequirementsInfo.Buffer instance at the specified memory. |
static VkImagePlaneMemoryRequirementsInfo |
createSafe(long address)
|
static VkImagePlaneMemoryRequirementsInfo.Buffer |
createSafe(long address,
int capacity)
|
static VkImagePlaneMemoryRequirementsInfo |
malloc()
Returns a new
VkImagePlaneMemoryRequirementsInfo instance allocated with memAlloc. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
malloc(int capacity)
Returns a new
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated with memAlloc. |
static VkImagePlaneMemoryRequirementsInfo |
mallocStack()
Returns a new
VkImagePlaneMemoryRequirementsInfo instance allocated on the thread-local MemoryStack. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkImagePlaneMemoryRequirementsInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated on the specified MemoryStack. |
static VkImagePlaneMemoryRequirementsInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImagePlaneMemoryRequirementsInfo instance allocated on the specified MemoryStack. |
static int |
nplaneAspect(long struct)
Unsafe version of
planeAspect(). |
static void |
nplaneAspect(long struct,
int value)
Unsafe version of
planeAspect. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
int |
planeAspect()
Returns the value of the
planeAspect field. |
VkImagePlaneMemoryRequirementsInfo |
planeAspect(int value)
Sets the specified value to the
planeAspect field. |
long |
pNext()
Returns the value of the
pNext field. |
VkImagePlaneMemoryRequirementsInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImagePlaneMemoryRequirementsInfo |
set(int sType,
long pNext,
int planeAspect)
Initializes this struct with the specified values.
|
VkImagePlaneMemoryRequirementsInfo |
set(VkImagePlaneMemoryRequirementsInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImagePlaneMemoryRequirementsInfo |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int PLANEASPECT
public VkImagePlaneMemoryRequirementsInfo(java.nio.ByteBuffer container)
VkImagePlaneMemoryRequirementsInfo 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 sType()
sType field.public long pNext()
pNext field.public int planeAspect()
planeAspect field.public VkImagePlaneMemoryRequirementsInfo sType(int value)
sType field.public VkImagePlaneMemoryRequirementsInfo pNext(long value)
pNext field.public VkImagePlaneMemoryRequirementsInfo planeAspect(int value)
planeAspect field.public VkImagePlaneMemoryRequirementsInfo set(int sType, long pNext, int planeAspect)
public VkImagePlaneMemoryRequirementsInfo set(VkImagePlaneMemoryRequirementsInfo src)
src - the source structpublic static VkImagePlaneMemoryRequirementsInfo malloc()
VkImagePlaneMemoryRequirementsInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkImagePlaneMemoryRequirementsInfo calloc()
VkImagePlaneMemoryRequirementsInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkImagePlaneMemoryRequirementsInfo create()
VkImagePlaneMemoryRequirementsInfo instance allocated with BufferUtils.public static VkImagePlaneMemoryRequirementsInfo create(long address)
VkImagePlaneMemoryRequirementsInfo instance for the specified memory address.@Nullable public static VkImagePlaneMemoryRequirementsInfo createSafe(long address)
public static VkImagePlaneMemoryRequirementsInfo.Buffer malloc(int capacity)
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImagePlaneMemoryRequirementsInfo.Buffer calloc(int capacity)
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImagePlaneMemoryRequirementsInfo.Buffer create(int capacity)
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImagePlaneMemoryRequirementsInfo.Buffer create(long address, int capacity)
VkImagePlaneMemoryRequirementsInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImagePlaneMemoryRequirementsInfo.Buffer createSafe(long address, int capacity)
public static VkImagePlaneMemoryRequirementsInfo mallocStack()
VkImagePlaneMemoryRequirementsInfo instance allocated on the thread-local MemoryStack.public static VkImagePlaneMemoryRequirementsInfo callocStack()
VkImagePlaneMemoryRequirementsInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImagePlaneMemoryRequirementsInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkImagePlaneMemoryRequirementsInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImagePlaneMemoryRequirementsInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkImagePlaneMemoryRequirementsInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImagePlaneMemoryRequirementsInfo.Buffer mallocStack(int capacity)
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImagePlaneMemoryRequirementsInfo.Buffer callocStack(int capacity)
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImagePlaneMemoryRequirementsInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImagePlaneMemoryRequirementsInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImagePlaneMemoryRequirementsInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImagePlaneMemoryRequirementsInfo.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nplaneAspect(long struct)
planeAspect().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nplaneAspect(long struct,
int value)
planeAspect.Copyright LWJGL. All Rights Reserved. License terms.