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
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.swapchain–NULL_HANDLEor a swapchain handle.imageIndex– an image index withinswapchain.
Layout
struct VkBindImageMemorySwapchainInfoKHR { VkStructureType sType; void const * pNext; VkSwapchainKHR swapchain; uint32_t imageIndex; }
-
-
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 Modifier and Type Method Description static VkBindImageMemorySwapchainInfoKHRcalloc()Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withmemCalloc.static VkBindImageMemorySwapchainInfoKHR.Buffercalloc(int capacity)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withmemCalloc.static VkBindImageMemorySwapchainInfoKHRcallocStack()Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHR.BuffercallocStack(int capacity)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of theimageIndexfield.VkBindImageMemorySwapchainInfoKHRimageIndex(int value)Sets the specified value to theimageIndexfield.static VkBindImageMemorySwapchainInfoKHRmalloc()Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated withmemAlloc.static VkBindImageMemorySwapchainInfoKHR.Buffermalloc(int capacity)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated withmemAlloc.static VkBindImageMemorySwapchainInfoKHRmallocStack()Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the thread-localMemoryStack.static VkBindImageMemorySwapchainInfoKHR.BuffermallocStack(int capacity)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkBindImageMemorySwapchainInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkBindImageMemorySwapchainInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkBindImageMemorySwapchainInfoKHRpNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkBindImageMemorySwapchainInfoKHRsType(int value)Sets the specified value to thesTypefield.longswapchain()Returns the value of theswapchainfield.VkBindImageMemorySwapchainInfoKHRswapchain(long value)Sets the specified value to theswapchainfield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
swapchain
public long swapchain()
Returns the value of theswapchainfield.
-
imageIndex
public int imageIndex()
Returns the value of theimageIndexfield.
-
sType
public VkBindImageMemorySwapchainInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkBindImageMemorySwapchainInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
swapchain
public VkBindImageMemorySwapchainInfoKHR swapchain(long value)
Sets the specified value to theswapchainfield.
-
imageIndex
public VkBindImageMemorySwapchainInfoKHR imageIndex(int value)
Sets the specified value to theimageIndexfield.
-
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
public static VkBindImageMemorySwapchainInfoKHR mallocStack()
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkBindImageMemorySwapchainInfoKHR callocStack()
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkBindImageMemorySwapchainInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkBindImageMemorySwapchainInfoKHR callocStack(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
-
mallocStack
public static VkBindImageMemorySwapchainInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkBindImageMemorySwapchainInfoKHR.Buffer callocStack(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkBindImageMemorySwapchainInfoKHR.Buffer mallocStack(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
-
callocStack
public static VkBindImageMemorySwapchainInfoKHR.Buffer callocStack(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.
-
-