Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkBindImageMemoryInfo

extends Struct<VkBindImageMemoryInfo>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Known Direct Subclasses
org.lwjgl.vulkan.VkBindImageMemoryInfoKHR
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying how to bind an image to memory.
Valid Usage
Valid Usage (Implicit)
See Also

BindImageMemory2, BindImageMemory2KHR

Layout


struct VkBindImageMemoryInfo {
    VkStructureType sType;
    void const * pNext;
    VkImage image;
    VkDeviceMemory memory;
    VkDeviceSize memoryOffset;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
IMAGE

The struct member offsets.

public static final int
MEMORY

The struct member offsets.

public static final int
MEMORYOFFSET

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkBindImageMemoryInfo(long address, ByteBuffer container)

public
VkBindImageMemoryInfo(ByteBuffer container)

Creates a VkBindImageMemoryInfo instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkBindImageMemoryInfo
calloc()

Returns a new VkBindImageMemoryInfo instance allocated with memCalloc.

public static VkBindImageMemoryInfo.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkBindImageMemoryInfo.Buffer instance allocated with memCalloc.

public static VkBindImageMemoryInfo
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindImageMemoryInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkBindImageMemoryInfo.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindImageMemoryInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkBindImageMemoryInfo
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkBindImageMemoryInfo
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkBindImageMemoryInfo.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkBindImageMemoryInfo.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected VkBindImageMemoryInfo
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkBindImageMemoryInfo
create()

Returns a new VkBindImageMemoryInfo instance allocated with BufferUtils.

public static VkBindImageMemoryInfo
create(long address)

Returns a new VkBindImageMemoryInfo instance for the specified memory address.

public static VkBindImageMemoryInfo.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkBindImageMemoryInfo.Buffer instance allocated with BufferUtils.

public static VkBindImageMemoryInfo.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkBindImageMemoryInfo.Buffer instance at the specified memory.

public static VkBindImageMemoryInfo
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkBindImageMemoryInfo.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
image()

the image to be attached to memory.

public VkBindImageMemoryInfo
image(long value)

Sets the specified value to the image field.

public static VkBindImageMemoryInfo
malloc()

Returns a new VkBindImageMemoryInfo instance allocated with memAlloc.

public static VkBindImageMemoryInfo.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkBindImageMemoryInfo.Buffer instance allocated with memAlloc.

public static VkBindImageMemoryInfo
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindImageMemoryInfo instance allocated on the specified MemoryStack.

public static VkBindImageMemoryInfo.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkBindImageMemoryInfo.Buffer instance allocated on the specified MemoryStack.

public static VkBindImageMemoryInfo
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkBindImageMemoryInfo
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkBindImageMemoryInfo.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkBindImageMemoryInfo.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public long
memory()

a VkDeviceMemory object describing the device memory to attach.

public VkBindImageMemoryInfo
memory(long value)

Sets the specified value to the memory field.

public long
memoryOffset()

the start offset of the region of memory which is to be bound to the image.

public VkBindImageMemoryInfo
memoryOffset(long value)

Sets the specified value to the memoryOffset field.

public static long
nimage(long struct)

Unsafe version of image.

public static void
nimage(long struct, long value)

Unsafe version of image.

public static long
nmemory(long struct)

Unsafe version of memory.

public static void
nmemory(long struct, long value)

Unsafe version of memory.

public static long
nmemoryOffset(long struct)

Unsafe version of memoryOffset.

public static void
nmemoryOffset(long struct, long value)

Unsafe version of memoryOffset.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkBindImageMemoryInfo
pNext(long value)

Sets the specified value to the pNext field.

public VkBindImageMemoryInfo
pNext(VkBindImageMemoryDeviceGroupInfo value)

Prepends the specified VkBindImageMemoryDeviceGroupInfo value to the pNext chain.

public VkBindImageMemoryInfo
pNext(VkBindImageMemoryDeviceGroupInfoKHR value)

Prepends the specified VkBindImageMemoryDeviceGroupInfoKHR value to the pNext chain.

public VkBindImageMemoryInfo
pNext(VkBindImageMemorySwapchainInfoKHR value)

Prepends the specified VkBindImageMemorySwapchainInfoKHR value to the pNext chain.

public VkBindImageMemoryInfo
pNext(VkBindImagePlaneMemoryInfo value)

Prepends the specified VkBindImagePlaneMemoryInfo value to the pNext chain.

public VkBindImageMemoryInfo
pNext(VkBindImagePlaneMemoryInfoKHR value)

Prepends the specified VkBindImagePlaneMemoryInfoKHR value to the pNext chain.

public VkBindImageMemoryInfo
set(int sType, long pNext, long image, long memory, long memoryOffset)

Initializes this struct with the specified values.

public VkBindImageMemoryInfo

Returns:

this struct
set
(VkBindImageMemoryInfo
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkBindImageMemoryInfo
sType(int value)

Sets the specified value to the sType field.

public VkBindImageMemoryInfo
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate