Package org.lwjgl.vulkan
Class VkBindImageMemorySwapchainInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindImageMemorySwapchainInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBindImageMemorySwapchainInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying swapchain image memory to bind to.Description
If
swapchainis notNULL, theswapchainandimageIndexare used to determine the memory that the image is bound to, instead ofmemoryandmemoryOffset.Memory can be bound to a swapchain and use the
pDeviceIndicesorpSplitInstanceBindRegionsmembers ofVkBindImageMemoryDeviceGroupInfo.Valid Usage
imageIndexmust be less than the number of images inswapchain
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHRswapchainmust be a validVkSwapchainKHRhandle
Host Synchronization
- Host access to
swapchainmust be externally synchronized
Layout
struct VkBindImageMemorySwapchainInfoKHR { VkStructureTypesType(); void const *pNext(); VkSwapchainKHRswapchain(); uint32_timageIndex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBindImageMemorySwapchainInfoKHR.BufferAn array ofVkBindImageMemorySwapchainInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkBindImageMemorySwapchainInfoKHR(java.nio.ByteBuffer container)Creates aVkBindImageMemorySwapchainInfoKHRinstance 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 VkBindImageMemorySwapchainInfoKHRcalloc()Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withmemCalloc.static VkBindImageMemorySwapchainInfoKHR.Buffercalloc(int capacity)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withmemCalloc.static VkBindImageMemorySwapchainInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHRcallocStack()Deprecated.static VkBindImageMemorySwapchainInfoKHR.BuffercallocStack(int capacity)Deprecated.static VkBindImageMemorySwapchainInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBindImageMemorySwapchainInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkBindImageMemorySwapchainInfoKHRcreate()Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withBufferUtils.static VkBindImageMemorySwapchainInfoKHR.Buffercreate(int capacity)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withBufferUtils.static VkBindImageMemorySwapchainInfoKHRcreate(long address)Returns a newVkBindImageMemorySwapchainInfoKHRinstance for the specified memory address.static VkBindImageMemorySwapchainInfoKHR.Buffercreate(long address, int capacity)Create aVkBindImageMemorySwapchainInfoKHR.Bufferinstance at the specified memory.static VkBindImageMemorySwapchainInfoKHRcreateSafe(long address)static VkBindImageMemorySwapchainInfoKHR.BuffercreateSafe(long address, int capacity)intimageIndex()an image index withinswapchain.VkBindImageMemorySwapchainInfoKHRimageIndex(int value)Sets the specified value to theimageIndex()field.static VkBindImageMemorySwapchainInfoKHRmalloc()Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withmemAlloc.static VkBindImageMemorySwapchainInfoKHR.Buffermalloc(int capacity)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withmemAlloc.static VkBindImageMemorySwapchainInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkBindImageMemorySwapchainInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the specifiedMemoryStack.static VkBindImageMemorySwapchainInfoKHRmallocStack()Deprecated.static VkBindImageMemorySwapchainInfoKHR.BuffermallocStack(int capacity)Deprecated.static VkBindImageMemorySwapchainInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBindImageMemorySwapchainInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnimageIndex(long struct)Unsafe version ofimageIndex().static voidnimageIndex(long struct, int value)Unsafe version ofimageIndex.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.static longnswapchain(long struct)Unsafe version ofswapchain().static voidnswapchain(long struct, long value)Unsafe version ofswapchain.longpNext()NULLor a pointer to a structure extending this structure.VkBindImageMemorySwapchainInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkBindImageMemorySwapchainInfoKHRset(int sType, long pNext, long swapchain, int imageIndex)Initializes this struct with the specified values.VkBindImageMemorySwapchainInfoKHRset(VkBindImageMemorySwapchainInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkBindImageMemorySwapchainInfoKHRsType(int value)Sets the specified value to thesType()field.VkBindImageMemorySwapchainInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHRvalue to thesType()field.longswapchain()NULL_HANDLEor a swapchain handle.VkBindImageMemorySwapchainInfoKHRswapchain(long value)Sets the specified value to theswapchain()field.
-
-
-
Constructor Detail
-
VkBindImageMemorySwapchainInfoKHR
public VkBindImageMemorySwapchainInfoKHR(java.nio.ByteBuffer container)
Creates aVkBindImageMemorySwapchainInfoKHRinstance 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.
-
swapchain
public long swapchain()
NULL_HANDLEor a swapchain handle.
-
imageIndex
public int imageIndex()
an image index withinswapchain.
-
sType
public VkBindImageMemorySwapchainInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkBindImageMemorySwapchainInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHRvalue to thesType()field.
-
pNext
public VkBindImageMemorySwapchainInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
swapchain
public VkBindImageMemorySwapchainInfoKHR swapchain(long value)
Sets the specified value to theswapchain()field.
-
imageIndex
public VkBindImageMemorySwapchainInfoKHR imageIndex(int value)
Sets the specified value to theimageIndex()field.
-
set
public VkBindImageMemorySwapchainInfoKHR set(int sType, long pNext, long swapchain, int imageIndex)
Initializes this struct with the specified values.
-
set
public VkBindImageMemorySwapchainInfoKHR set(VkBindImageMemorySwapchainInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBindImageMemorySwapchainInfoKHR malloc()
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBindImageMemorySwapchainInfoKHR calloc()
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBindImageMemorySwapchainInfoKHR create()
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withBufferUtils.
-
create
public static VkBindImageMemorySwapchainInfoKHR create(long address)
Returns a newVkBindImageMemorySwapchainInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkBindImageMemorySwapchainInfoKHR createSafe(long address)
-
malloc
public static VkBindImageMemorySwapchainInfoKHR.Buffer malloc(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBindImageMemorySwapchainInfoKHR.Buffer calloc(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindImageMemorySwapchainInfoKHR.Buffer create(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindImageMemorySwapchainInfoKHR.Buffer create(long address, int capacity)
Create aVkBindImageMemorySwapchainInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBindImageMemorySwapchainInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkBindImageMemorySwapchainInfoKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBindImageMemorySwapchainInfoKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBindImageMemorySwapchainInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBindImageMemorySwapchainInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBindImageMemorySwapchainInfoKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBindImageMemorySwapchainInfoKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBindImageMemorySwapchainInfoKHR.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 VkBindImageMemorySwapchainInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkBindImageMemorySwapchainInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBindImageMemorySwapchainInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBindImageMemorySwapchainInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBindImageMemorySwapchainInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR.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().
-
nswapchain
public static long nswapchain(long struct)
Unsafe version ofswapchain().
-
nimageIndex
public static int nimageIndex(long struct)
Unsafe version ofimageIndex().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nswapchain
public static void nswapchain(long struct, long value)Unsafe version ofswapchain.
-
nimageIndex
public static void nimageIndex(long struct, int value)Unsafe version ofimageIndex.
-
-