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
tilingisIMAGE_TILING_LINEARorIMAGE_TILING_OPTIMAL, thenplaneAspectmust be a single valid format plane for the image (that is, for a two-plane imageplaneAspectmust beIMAGE_ASPECT_PLANE_0_BITorIMAGE_ASPECT_PLANE_1_BIT, and for a three-plane imageplaneAspectmust beIMAGE_ASPECT_PLANE_0_BIT,IMAGE_ASPECT_PLANE_1_BITorIMAGE_ASPECT_PLANE_2_BIT) - If the image’s
tilingisIMAGE_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 theVkDrmFormatModifierPropertiesEXT::drmFormatModifierPlaneCountassociated with the image’sformatandVkImageDrmFormatModifierPropertiesEXT::drmFormatModifier)
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFOplaneAspectmust be a validVkImageAspectFlagBitsvalue
Layout
struct VkBindImagePlaneMemoryInfo { VkStructureTypesType(); void const *pNext(); VkImageAspectFlagBitsplaneAspect(); }
-
-
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 Deprecated 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 VkBindImagePlaneMemoryInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindImagePlaneMemoryInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindImagePlaneMemoryInfocallocStack()Deprecated.static VkBindImagePlaneMemoryInfo.BuffercallocStack(int capacity)Deprecated.static VkBindImagePlaneMemoryInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBindImagePlaneMemoryInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkBindImagePlaneMemoryInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkBindImagePlaneMemoryInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the specifiedMemoryStack.static VkBindImagePlaneMemoryInfomallocStack()Deprecated.static VkBindImagePlaneMemoryInfo.BuffermallocStack(int capacity)Deprecated.static VkBindImagePlaneMemoryInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBindImagePlaneMemoryInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()aVkImageAspectFlagBitsvalue specifying the aspect of the disjoint image plane to bind.VkBindImagePlaneMemoryInfoplaneAspect(int value)Sets the specified value to theplaneAspect()field.longpNext()NULLor a pointer to a structure extending this structure.VkBindImagePlaneMemoryInfopNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkBindImagePlaneMemoryInfosType(int value)Sets the specified value to thesType()field.VkBindImagePlaneMemoryInfosType$Default()Sets theSTRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFOvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
planeAspect
public int planeAspect()
aVkImageAspectFlagBitsvalue specifying the aspect of the disjoint image plane to bind.
-
sType
public VkBindImagePlaneMemoryInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkBindImagePlaneMemoryInfo sType$Default()
Sets theSTRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFOvalue to thesType()field.
-
pNext
public VkBindImagePlaneMemoryInfo pNext(long value)
Sets the specified value to thepNext()field.
-
planeAspect
public VkBindImagePlaneMemoryInfo planeAspect(int value)
Sets the specified value to theplaneAspect()field.
-
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
@Deprecated public static VkBindImagePlaneMemoryInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBindImagePlaneMemoryInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBindImagePlaneMemoryInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBindImagePlaneMemoryInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBindImagePlaneMemoryInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBindImagePlaneMemoryInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBindImagePlaneMemoryInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBindImagePlaneMemoryInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkBindImagePlaneMemoryInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImagePlaneMemoryInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBindImagePlaneMemoryInfo calloc(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
-
malloc
public static VkBindImagePlaneMemoryInfo.Buffer malloc(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
-
calloc
public static VkBindImagePlaneMemoryInfo.Buffer calloc(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.
-
-