public class VkBindImageMemorySwapchainInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If swapchain is not NULL, the swapchain and imageIndex are used to determine the memory that the image is bound to, instead of memory and memoryOffset.
Memory can be bound to a swapchain and use the pDeviceIndices or pSplitInstanceBindRegions members of VkBindImageMemoryDeviceGroupInfo.
imageIndex must be less than the number of images in swapchainsType must be STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHRswapchain must be a valid VkSwapchainKHR handleswapchain must be externally synchronizedsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.swapchain – NULL_HANDLE or a swapchain handle.imageIndex – an image index within swapchain.
struct VkBindImageMemorySwapchainInfoKHR {
VkStructureType sType;
void const * pNext;
VkSwapchainKHR swapchain;
uint32_t imageIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBindImageMemorySwapchainInfoKHR.Buffer
An array of
VkBindImageMemorySwapchainInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
IMAGEINDEX
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SWAPCHAIN
The struct member offsets.
|
| Constructor and Description |
|---|
VkBindImageMemorySwapchainInfoKHR(java.nio.ByteBuffer container)
Creates a
VkBindImageMemorySwapchainInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBindImageMemorySwapchainInfoKHR |
calloc()
Returns a new
VkBindImageMemorySwapchainInfoKHR instance allocated with memCalloc. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated with memCalloc. |
static VkBindImageMemorySwapchainInfoKHR |
callocStack()
Returns a new
VkBindImageMemorySwapchainInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindImageMemorySwapchainInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImageMemorySwapchainInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindImageMemorySwapchainInfoKHR |
create()
Returns a new
VkBindImageMemorySwapchainInfoKHR instance allocated with BufferUtils. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
create(int capacity)
Returns a new
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated with BufferUtils. |
static VkBindImageMemorySwapchainInfoKHR |
create(long address)
Returns a new
VkBindImageMemorySwapchainInfoKHR instance for the specified memory address. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkBindImageMemorySwapchainInfoKHR.Buffer instance at the specified memory. |
static VkBindImageMemorySwapchainInfoKHR |
createSafe(long address)
|
static VkBindImageMemorySwapchainInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
imageIndex()
Returns the value of the
imageIndex field. |
VkBindImageMemorySwapchainInfoKHR |
imageIndex(int value)
Sets the specified value to the
imageIndex field. |
static VkBindImageMemorySwapchainInfoKHR |
malloc()
Returns a new
VkBindImageMemorySwapchainInfoKHR instance allocated with memAlloc. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated with memAlloc. |
static VkBindImageMemorySwapchainInfoKHR |
mallocStack()
Returns a new
VkBindImageMemorySwapchainInfoKHR instance allocated on the thread-local MemoryStack. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkBindImageMemorySwapchainInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkBindImageMemorySwapchainInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindImageMemorySwapchainInfoKHR instance allocated on the specified MemoryStack. |
static int |
nimageIndex(long struct)
Unsafe version of
imageIndex(). |
static void |
nimageIndex(long struct,
int value)
Unsafe version of
imageIndex. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static long |
nswapchain(long struct)
Unsafe version of
swapchain(). |
static void |
nswapchain(long struct,
long value)
Unsafe version of
swapchain. |
long |
pNext()
Returns the value of the
pNext field. |
VkBindImageMemorySwapchainInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkBindImageMemorySwapchainInfoKHR |
set(int sType,
long pNext,
long swapchain,
int imageIndex)
Initializes this struct with the specified values.
|
VkBindImageMemorySwapchainInfoKHR |
set(VkBindImageMemorySwapchainInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBindImageMemorySwapchainInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
long |
swapchain()
Returns the value of the
swapchain field. |
VkBindImageMemorySwapchainInfoKHR |
swapchain(long value)
Sets the specified value to the
swapchain field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SWAPCHAIN
public static final int IMAGEINDEX
public VkBindImageMemorySwapchainInfoKHR(java.nio.ByteBuffer container)
VkBindImageMemorySwapchainInfoKHR instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long swapchain()
swapchain field.public int imageIndex()
imageIndex field.public VkBindImageMemorySwapchainInfoKHR sType(int value)
sType field.public VkBindImageMemorySwapchainInfoKHR pNext(long value)
pNext field.public VkBindImageMemorySwapchainInfoKHR swapchain(long value)
swapchain field.public VkBindImageMemorySwapchainInfoKHR imageIndex(int value)
imageIndex field.public VkBindImageMemorySwapchainInfoKHR set(int sType, long pNext, long swapchain, int imageIndex)
public VkBindImageMemorySwapchainInfoKHR set(VkBindImageMemorySwapchainInfoKHR src)
src - the source structpublic static VkBindImageMemorySwapchainInfoKHR malloc()
VkBindImageMemorySwapchainInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkBindImageMemorySwapchainInfoKHR calloc()
VkBindImageMemorySwapchainInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkBindImageMemorySwapchainInfoKHR create()
VkBindImageMemorySwapchainInfoKHR instance allocated with BufferUtils.public static VkBindImageMemorySwapchainInfoKHR create(long address)
VkBindImageMemorySwapchainInfoKHR instance for the specified memory address.@Nullable public static VkBindImageMemorySwapchainInfoKHR createSafe(long address)
public static VkBindImageMemorySwapchainInfoKHR.Buffer malloc(int capacity)
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindImageMemorySwapchainInfoKHR.Buffer calloc(int capacity)
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindImageMemorySwapchainInfoKHR.Buffer create(int capacity)
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBindImageMemorySwapchainInfoKHR.Buffer create(long address, int capacity)
VkBindImageMemorySwapchainInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBindImageMemorySwapchainInfoKHR.Buffer createSafe(long address, int capacity)
public static VkBindImageMemorySwapchainInfoKHR mallocStack()
VkBindImageMemorySwapchainInfoKHR instance allocated on the thread-local MemoryStack.public static VkBindImageMemorySwapchainInfoKHR callocStack()
VkBindImageMemorySwapchainInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBindImageMemorySwapchainInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkBindImageMemorySwapchainInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBindImageMemorySwapchainInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkBindImageMemorySwapchainInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBindImageMemorySwapchainInfoKHR.Buffer mallocStack(int capacity)
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBindImageMemorySwapchainInfoKHR.Buffer callocStack(int capacity)
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBindImageMemorySwapchainInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBindImageMemorySwapchainInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindImageMemorySwapchainInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long nswapchain(long struct)
swapchain().public static int nimageIndex(long struct)
imageIndex().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nswapchain(long struct,
long value)
swapchain.public static void nimageIndex(long struct,
int value)
imageIndex.Copyright LWJGL. All Rights Reserved. License terms.