public class VkBindImagePlaneMemoryInfo
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, planeAspect must be IMAGE_ASPECT_PLANE_0_BIT or IMAGE_ASPECT_PLANE_1_BIT for “_2PLANE” formats and planeAspect must be IMAGE_ASPECT_PLANE_0_BIT, IMAGE_ASPECT_PLANE_1_BIT, or IMAGE_ASPECT_PLANE_2_BIT for “_3PLANE” formats.)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.)BindImageMemory2 must bind all or none of the planes of an image (i.e. bindings to all planes of an image must be made in a single BindImageMemory2 call), as separate bindingssType must be STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_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 of the disjoint image plane to bind.
struct VkBindImagePlaneMemoryInfo {
VkStructureType sType;
void const * pNext;
VkImageAspectFlagBits planeAspect;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBindImagePlaneMemoryInfo.Buffer
An array of
VkBindImagePlaneMemoryInfo 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 |
|---|
VkBindImagePlaneMemoryInfo(java.nio.ByteBuffer container)
Creates a
VkBindImagePlaneMemoryInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBindImagePlaneMemoryInfo |
calloc()
Returns a new
VkBindImagePlaneMemoryInfo instance allocated with memCalloc. |
static VkBindImagePlaneMemoryInfo.Buffer |
calloc(int capacity)
Returns a new
VkBindImagePlaneMemoryInfo.Buffer instance allocated with memCalloc. |
static VkBindImagePlaneMemoryInfo |
callocStack()
Returns a new
VkBindImagePlaneMemoryInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindImagePlaneMemoryInfo.Buffer |
callocStack(int capacity)
Returns a new
VkBindImagePlaneMemoryInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindImagePlaneMemoryInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImagePlaneMemoryInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindImagePlaneMemoryInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImagePlaneMemoryInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindImagePlaneMemoryInfo |
create()
Returns a new
VkBindImagePlaneMemoryInfo instance allocated with BufferUtils. |
static VkBindImagePlaneMemoryInfo.Buffer |
create(int capacity)
Returns a new
VkBindImagePlaneMemoryInfo.Buffer instance allocated with BufferUtils. |
static VkBindImagePlaneMemoryInfo |
create(long address)
Returns a new
VkBindImagePlaneMemoryInfo instance for the specified memory address. |
static VkBindImagePlaneMemoryInfo.Buffer |
create(long address,
int capacity)
Create a
VkBindImagePlaneMemoryInfo.Buffer instance at the specified memory. |
static VkBindImagePlaneMemoryInfo |
createSafe(long address)
|
static VkBindImagePlaneMemoryInfo.Buffer |
createSafe(long address,
int capacity)
|
static VkBindImagePlaneMemoryInfo |
malloc()
Returns a new
VkBindImagePlaneMemoryInfo instance allocated with memAlloc. |
static VkBindImagePlaneMemoryInfo.Buffer |
malloc(int capacity)
Returns a new
VkBindImagePlaneMemoryInfo.Buffer instance allocated with memAlloc. |
static VkBindImagePlaneMemoryInfo |
mallocStack()
Returns a new
VkBindImagePlaneMemoryInfo instance allocated on the thread-local MemoryStack. |
static VkBindImagePlaneMemoryInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkBindImagePlaneMemoryInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkBindImagePlaneMemoryInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImagePlaneMemoryInfo.Buffer instance allocated on the specified MemoryStack. |
static VkBindImagePlaneMemoryInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImagePlaneMemoryInfo 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. |
VkBindImagePlaneMemoryInfo |
planeAspect(int value)
Sets the specified value to the
planeAspect field. |
long |
pNext()
Returns the value of the
pNext field. |
VkBindImagePlaneMemoryInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkBindImagePlaneMemoryInfo |
set(int sType,
long pNext,
int planeAspect)
Initializes this struct with the specified values.
|
VkBindImagePlaneMemoryInfo |
set(VkBindImagePlaneMemoryInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBindImagePlaneMemoryInfo |
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 VkBindImagePlaneMemoryInfo(java.nio.ByteBuffer container)
VkBindImagePlaneMemoryInfo 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 VkBindImagePlaneMemoryInfo sType(int value)
sType field.public VkBindImagePlaneMemoryInfo pNext(long value)
pNext field.public VkBindImagePlaneMemoryInfo planeAspect(int value)
planeAspect field.public VkBindImagePlaneMemoryInfo set(int sType, long pNext, int planeAspect)
public VkBindImagePlaneMemoryInfo set(VkBindImagePlaneMemoryInfo src)
src - the source structpublic static VkBindImagePlaneMemoryInfo malloc()
VkBindImagePlaneMemoryInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkBindImagePlaneMemoryInfo calloc()
VkBindImagePlaneMemoryInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkBindImagePlaneMemoryInfo create()
VkBindImagePlaneMemoryInfo instance allocated with BufferUtils.public static VkBindImagePlaneMemoryInfo create(long address)
VkBindImagePlaneMemoryInfo instance for the specified memory address.@Nullable public static VkBindImagePlaneMemoryInfo createSafe(long address)
public static VkBindImagePlaneMemoryInfo.Buffer malloc(int capacity)
VkBindImagePlaneMemoryInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindImagePlaneMemoryInfo.Buffer calloc(int capacity)
VkBindImagePlaneMemoryInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindImagePlaneMemoryInfo.Buffer create(int capacity)
VkBindImagePlaneMemoryInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBindImagePlaneMemoryInfo.Buffer create(long address, int capacity)
VkBindImagePlaneMemoryInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBindImagePlaneMemoryInfo.Buffer createSafe(long address, int capacity)
public static VkBindImagePlaneMemoryInfo mallocStack()
VkBindImagePlaneMemoryInfo instance allocated on the thread-local MemoryStack.public static VkBindImagePlaneMemoryInfo callocStack()
VkBindImagePlaneMemoryInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBindImagePlaneMemoryInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkBindImagePlaneMemoryInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBindImagePlaneMemoryInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkBindImagePlaneMemoryInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBindImagePlaneMemoryInfo.Buffer mallocStack(int capacity)
VkBindImagePlaneMemoryInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBindImagePlaneMemoryInfo.Buffer callocStack(int capacity)
VkBindImagePlaneMemoryInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBindImagePlaneMemoryInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindImagePlaneMemoryInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBindImagePlaneMemoryInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindImagePlaneMemoryInfo.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.