Package org.lwjgl.vulkan
Class VkImageMemoryRequirementsInfo2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageMemoryRequirementsInfo2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkImageMemoryRequirementsInfo2KHR
public class VkImageMemoryRequirementsInfo2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource(None).Valid Usage
- If
imagewas created with a multi-planar format and theIMAGE_CREATE_DISJOINT_BITflag, there must be aVkImagePlaneMemoryRequirementsInfoincluded in thepNextchain of theVkImageMemoryRequirementsInfo2structure - If
imagewas created withIMAGE_CREATE_DISJOINT_BITand withIMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then there must be aVkImagePlaneMemoryRequirementsInfoincluded in thepNextchain of theVkImageMemoryRequirementsInfo2structure - If
imagewas not created with theIMAGE_CREATE_DISJOINT_BITflag, there must not be aVkImagePlaneMemoryRequirementsInfoincluded in thepNextchain of theVkImageMemoryRequirementsInfo2structure - If
imagewas created with a single-plane format and with anytilingother thanIMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then there must not be aVkImagePlaneMemoryRequirementsInfoincluded in thepNextchain of theVkImageMemoryRequirementsInfo2structure
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2pNextmust beNULLor a pointer to a valid instance ofVkImagePlaneMemoryRequirementsInfo- The
sTypevalue of each struct in thepNextchain must be unique imagemust be a validVkImagehandle
See Also
GetImageMemoryRequirements2,GetImageMemoryRequirements2KHRLayout
struct VkImageMemoryRequirementsInfo2 { VkStructureTypesType(); void const *pNext(); VkImageimage(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageMemoryRequirementsInfo2.BufferAn array ofVkImageMemoryRequirementsInfo2structs.
-
Constructor Summary
Constructors Constructor Description VkImageMemoryRequirementsInfo2(java.nio.ByteBuffer container)Creates aVkImageMemoryRequirementsInfo2instance 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 VkImageMemoryRequirementsInfo2calloc()Returns a newVkImageMemoryRequirementsInfo2instance allocated withmemCalloc.static VkImageMemoryRequirementsInfo2.Buffercalloc(int capacity)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withmemCalloc.static VkImageMemoryRequirementsInfo2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryRequirementsInfo2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryRequirementsInfo2callocStack()Deprecated.static VkImageMemoryRequirementsInfo2.BuffercallocStack(int capacity)Deprecated.static VkImageMemoryRequirementsInfo2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageMemoryRequirementsInfo2callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageMemoryRequirementsInfo2create()Returns a newVkImageMemoryRequirementsInfo2instance allocated withBufferUtils.static VkImageMemoryRequirementsInfo2.Buffercreate(int capacity)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withBufferUtils.static VkImageMemoryRequirementsInfo2create(long address)Returns a newVkImageMemoryRequirementsInfo2instance for the specified memory address.static VkImageMemoryRequirementsInfo2.Buffercreate(long address, int capacity)Create aVkImageMemoryRequirementsInfo2.Bufferinstance at the specified memory.static VkImageMemoryRequirementsInfo2createSafe(long address)static VkImageMemoryRequirementsInfo2.BuffercreateSafe(long address, int capacity)longimage()the image to query.VkImageMemoryRequirementsInfo2image(long value)Sets the specified value to theimage()field.static VkImageMemoryRequirementsInfo2malloc()Returns a newVkImageMemoryRequirementsInfo2instance allocated withmemAlloc.static VkImageMemoryRequirementsInfo2.Buffermalloc(int capacity)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withmemAlloc.static VkImageMemoryRequirementsInfo2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the specifiedMemoryStack.static VkImageMemoryRequirementsInfo2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2instance allocated on the specifiedMemoryStack.static VkImageMemoryRequirementsInfo2mallocStack()Deprecated.static VkImageMemoryRequirementsInfo2.BuffermallocStack(int capacity)Deprecated.static VkImageMemoryRequirementsInfo2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageMemoryRequirementsInfo2mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnimage(long struct)Unsafe version ofimage().static voidnimage(long struct, long value)Unsafe version ofimage.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.longpNext()NULLor a pointer to a structure extending this structure.VkImageMemoryRequirementsInfo2pNext(long value)Sets the specified value to thepNext()field.VkImageMemoryRequirementsInfo2pNext(VkImagePlaneMemoryRequirementsInfo value)Prepends the specifiedVkImagePlaneMemoryRequirementsInfovalue to thepNextchain.VkImageMemoryRequirementsInfo2pNext(VkImagePlaneMemoryRequirementsInfoKHR value)Prepends the specifiedVkImagePlaneMemoryRequirementsInfoKHRvalue to thepNextchain.VkImageMemoryRequirementsInfo2set(int sType, long pNext, long image)Initializes this struct with the specified values.VkImageMemoryRequirementsInfo2set(VkImageMemoryRequirementsInfo2 src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkImageMemoryRequirementsInfo2sType(int value)Sets the specified value to thesType()field.VkImageMemoryRequirementsInfo2sType$Default()Sets theSTRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2value to thesType()field.
-
-
-
Constructor Detail
-
VkImageMemoryRequirementsInfo2
public VkImageMemoryRequirementsInfo2(java.nio.ByteBuffer container)
Creates aVkImageMemoryRequirementsInfo2instance 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.
-
image
public long image()
the image to query.
-
sType
public VkImageMemoryRequirementsInfo2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImageMemoryRequirementsInfo2 sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2value to thesType()field.
-
pNext
public VkImageMemoryRequirementsInfo2 pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkImageMemoryRequirementsInfo2 pNext(VkImagePlaneMemoryRequirementsInfo value)
Prepends the specifiedVkImagePlaneMemoryRequirementsInfovalue to thepNextchain.
-
pNext
public VkImageMemoryRequirementsInfo2 pNext(VkImagePlaneMemoryRequirementsInfoKHR value)
Prepends the specifiedVkImagePlaneMemoryRequirementsInfoKHRvalue to thepNextchain.
-
image
public VkImageMemoryRequirementsInfo2 image(long value)
Sets the specified value to theimage()field.
-
set
public VkImageMemoryRequirementsInfo2 set(int sType, long pNext, long image)
Initializes this struct with the specified values.
-
set
public VkImageMemoryRequirementsInfo2 set(VkImageMemoryRequirementsInfo2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageMemoryRequirementsInfo2 malloc()
Returns a newVkImageMemoryRequirementsInfo2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageMemoryRequirementsInfo2 calloc()
Returns a newVkImageMemoryRequirementsInfo2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageMemoryRequirementsInfo2 create()
Returns a newVkImageMemoryRequirementsInfo2instance allocated withBufferUtils.
-
create
public static VkImageMemoryRequirementsInfo2 create(long address)
Returns a newVkImageMemoryRequirementsInfo2instance for the specified memory address.
-
createSafe
@Nullable public static VkImageMemoryRequirementsInfo2 createSafe(long address)
-
malloc
public static VkImageMemoryRequirementsInfo2.Buffer malloc(int capacity)
Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageMemoryRequirementsInfo2.Buffer calloc(int capacity)
Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageMemoryRequirementsInfo2.Buffer create(int capacity)
Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageMemoryRequirementsInfo2.Buffer create(long address, int capacity)
Create aVkImageMemoryRequirementsInfo2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageMemoryRequirementsInfo2.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImageMemoryRequirementsInfo2 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageMemoryRequirementsInfo2 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageMemoryRequirementsInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageMemoryRequirementsInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageMemoryRequirementsInfo2.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageMemoryRequirementsInfo2.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageMemoryRequirementsInfo2.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 VkImageMemoryRequirementsInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageMemoryRequirementsInfo2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryRequirementsInfo2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageMemoryRequirementsInfo2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryRequirementsInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageMemoryRequirementsInfo2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageMemoryRequirementsInfo2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryRequirementsInfo2.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().
-
nimage
public static long nimage(long struct)
Unsafe version ofimage().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nimage
public static void nimage(long struct, long value)Unsafe version ofimage.
-
-