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 aVkImagePlaneMemoryRequirementsInfoin thepNextchain of theVkImageMemoryRequirementsInfo2structure - If
imagewas created withIMAGE_CREATE_DISJOINT_BITand withIMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then there must be aVkImagePlaneMemoryRequirementsInfoin thepNextchain of theVkImageMemoryRequirementsInfo2structure - If
imagewas not created with theIMAGE_CREATE_DISJOINT_BITflag, there must not be aVkImagePlaneMemoryRequirementsInfoin 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 aVkImagePlaneMemoryRequirementsInfoin thepNextchain of theVkImageMemoryRequirementsInfo2structure
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2pNextmust beNULLor a pointer to a valid instance ofVkImagePlaneMemoryRequirementsInfoimagemust be a validVkImagehandle
See Also
GetImageMemoryRequirements2,GetImageMemoryRequirements2KHRMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.image– the image to query.
Layout
struct VkImageMemoryRequirementsInfo2 { VkStructureType sType; void const * pNext; VkImage image; }
-
-
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 Modifier and Type Method Description static VkImageMemoryRequirementsInfo2calloc()Returns a newVkImageMemoryRequirementsInfo2instance allocated withmemCalloc.static VkImageMemoryRequirementsInfo2.Buffercalloc(int capacity)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withmemCalloc.static VkImageMemoryRequirementsInfo2callocStack()Returns a newVkImageMemoryRequirementsInfo2instance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageMemoryRequirementsInfo2.BuffercallocStack(int capacity)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageMemoryRequirementsInfo2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryRequirementsInfo2callocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of theimagefield.VkImageMemoryRequirementsInfo2image(long value)Sets the specified value to theimagefield.static VkImageMemoryRequirementsInfo2malloc()Returns a newVkImageMemoryRequirementsInfo2instance allocated withmemAlloc.static VkImageMemoryRequirementsInfo2.Buffermalloc(int capacity)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated withmemAlloc.static VkImageMemoryRequirementsInfo2mallocStack()Returns a newVkImageMemoryRequirementsInfo2instance allocated on the thread-localMemoryStack.static VkImageMemoryRequirementsInfo2.BuffermallocStack(int capacity)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the thread-localMemoryStack.static VkImageMemoryRequirementsInfo2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the specifiedMemoryStack.static VkImageMemoryRequirementsInfo2mallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryRequirementsInfo2instance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkImageMemoryRequirementsInfo2pNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkImageMemoryRequirementsInfo2sType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
image
public long image()
Returns the value of theimagefield.
-
sType
public VkImageMemoryRequirementsInfo2 sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageMemoryRequirementsInfo2 pNext(long value)
Sets the specified value to thepNextfield.
-
image
public VkImageMemoryRequirementsInfo2 image(long value)
Sets the specified value to theimagefield.
-
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
public static VkImageMemoryRequirementsInfo2 mallocStack()
Returns a newVkImageMemoryRequirementsInfo2instance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageMemoryRequirementsInfo2 callocStack()
Returns a newVkImageMemoryRequirementsInfo2instance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageMemoryRequirementsInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryRequirementsInfo2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageMemoryRequirementsInfo2 callocStack(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
-
mallocStack
public static VkImageMemoryRequirementsInfo2.Buffer mallocStack(int capacity)
Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageMemoryRequirementsInfo2.Buffer callocStack(int capacity)
Returns a newVkImageMemoryRequirementsInfo2.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageMemoryRequirementsInfo2.Buffer mallocStack(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
-
callocStack
public static VkImageMemoryRequirementsInfo2.Buffer callocStack(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.
-
-