Package org.lwjgl.vulkan
Class VkBindImagePlaneMemoryInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindImagePlaneMemoryInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkBindImagePlaneMemoryInfoKHR
public class VkBindImagePlaneMemoryInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying how to bind an image plane to memory.Valid Usage
- If the image’s tiling is
IMAGE_TILING_LINEARorIMAGE_TILING_OPTIMAL, thenplaneAspectmust be a single valid format plane for the image. (That is,planeAspectmust beIMAGE_ASPECT_PLANE_0_BITorIMAGE_ASPECT_PLANE_1_BITfor “_2PLANE” formats andplaneAspectmust beIMAGE_ASPECT_PLANE_0_BIT,IMAGE_ASPECT_PLANE_1_BIT, orIMAGE_ASPECT_PLANE_2_BITfor “_3PLANE” formats.) - If the image’s tiling is
IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, thenplaneAspectmust be a single valid memory plane for the image. (That is,aspectMaskmust specify a plane index that is less than thedrmFormatModifierPlaneCountassociated with the image’sformatanddrmFormatModifier.) - A single call to
BindImageMemory2must bind all or none of the planes of an image (i.e. bindings to all planes of an image must be made in a singleBindImageMemory2call), as separate bindings
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFOplaneAspectmust be a validVkImageAspectFlagBitsvalue
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.planeAspect– the aspect of the disjoint image plane to bind.
Layout
struct VkBindImagePlaneMemoryInfo { VkStructureType sType; void const * pNext; VkImageAspectFlagBits planeAspect; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBindImagePlaneMemoryInfo.BufferAn array ofVkBindImagePlaneMemoryInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPLANEASPECT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkBindImagePlaneMemoryInfo(java.nio.ByteBuffer container)Creates aVkBindImagePlaneMemoryInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkBindImagePlaneMemoryInfocalloc()Returns a newVkBindImagePlaneMemoryInfoinstance allocated withmemCalloc.static VkBindImagePlaneMemoryInfo.Buffercalloc(int capacity)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated withmemCalloc.static VkBindImagePlaneMemoryInfocallocStack()Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindImagePlaneMemoryInfo.BuffercallocStack(int capacity)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindImagePlaneMemoryInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindImagePlaneMemoryInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindImagePlaneMemoryInfocreate()Returns a newVkBindImagePlaneMemoryInfoinstance allocated withBufferUtils.static VkBindImagePlaneMemoryInfo.Buffercreate(int capacity)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated withBufferUtils.static VkBindImagePlaneMemoryInfocreate(long address)Returns a newVkBindImagePlaneMemoryInfoinstance for the specified memory address.static VkBindImagePlaneMemoryInfo.Buffercreate(long address, int capacity)Create aVkBindImagePlaneMemoryInfo.Bufferinstance at the specified memory.static VkBindImagePlaneMemoryInfocreateSafe(long address)static VkBindImagePlaneMemoryInfo.BuffercreateSafe(long address, int capacity)static VkBindImagePlaneMemoryInfomalloc()Returns a newVkBindImagePlaneMemoryInfoinstance allocated withmemAlloc.static VkBindImagePlaneMemoryInfo.Buffermalloc(int capacity)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated withmemAlloc.static VkBindImagePlaneMemoryInfomallocStack()Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the thread-localMemoryStack.static VkBindImagePlaneMemoryInfo.BuffermallocStack(int capacity)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkBindImagePlaneMemoryInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkBindImagePlaneMemoryInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the specifiedMemoryStack.static intnplaneAspect(long struct)Unsafe version ofplaneAspect().static voidnplaneAspect(long struct, int value)Unsafe version ofplaneAspect.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.intplaneAspect()Returns the value of theplaneAspectfield.VkBindImagePlaneMemoryInfoplaneAspect(int value)Sets the specified value to theplaneAspectfield.longpNext()Returns the value of thepNextfield.VkBindImagePlaneMemoryInfopNext(long value)Sets the specified value to thepNextfield.VkBindImagePlaneMemoryInfoset(int sType, long pNext, int planeAspect)Initializes this struct with the specified values.VkBindImagePlaneMemoryInfoset(VkBindImagePlaneMemoryInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkBindImagePlaneMemoryInfosType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkBindImagePlaneMemoryInfo
public VkBindImagePlaneMemoryInfo(java.nio.ByteBuffer container)
Creates aVkBindImagePlaneMemoryInfoinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
planeAspect
public int planeAspect()
Returns the value of theplaneAspectfield.
-
sType
public VkBindImagePlaneMemoryInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkBindImagePlaneMemoryInfo pNext(long value)
Sets the specified value to thepNextfield.
-
planeAspect
public VkBindImagePlaneMemoryInfo planeAspect(int value)
Sets the specified value to theplaneAspectfield.
-
set
public VkBindImagePlaneMemoryInfo set(int sType, long pNext, int planeAspect)
Initializes this struct with the specified values.
-
set
public VkBindImagePlaneMemoryInfo set(VkBindImagePlaneMemoryInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBindImagePlaneMemoryInfo malloc()
Returns a newVkBindImagePlaneMemoryInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBindImagePlaneMemoryInfo calloc()
Returns a newVkBindImagePlaneMemoryInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBindImagePlaneMemoryInfo create()
Returns a newVkBindImagePlaneMemoryInfoinstance allocated withBufferUtils.
-
create
public static VkBindImagePlaneMemoryInfo create(long address)
Returns a newVkBindImagePlaneMemoryInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkBindImagePlaneMemoryInfo createSafe(long address)
-
malloc
public static VkBindImagePlaneMemoryInfo.Buffer malloc(int capacity)
Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBindImagePlaneMemoryInfo.Buffer calloc(int capacity)
Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindImagePlaneMemoryInfo.Buffer create(int capacity)
Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindImagePlaneMemoryInfo.Buffer create(long address, int capacity)
Create aVkBindImagePlaneMemoryInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBindImagePlaneMemoryInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkBindImagePlaneMemoryInfo mallocStack()
Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkBindImagePlaneMemoryInfo callocStack()
Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkBindImagePlaneMemoryInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkBindImagePlaneMemoryInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkBindImagePlaneMemoryInfo.Buffer mallocStack(int capacity)
Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkBindImagePlaneMemoryInfo.Buffer callocStack(int capacity)
Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkBindImagePlaneMemoryInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkBindImagePlaneMemoryInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nplaneAspect
public static int nplaneAspect(long struct)
Unsafe version ofplaneAspect().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nplaneAspect
public static void nplaneAspect(long struct, int value)Unsafe version ofplaneAspect.
-
-