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.NativeResource
Structure specifying swapchain image memory to bind to.Description
If
swapchain
is notNULL
, theswapchain
andimageIndex
are used to determine the memory that the image is bound to, instead ofmemory
andmemoryOffset
.Memory can be bound to a swapchain and use the
pDeviceIndices
orpSplitInstanceBindRegions
members ofVkBindImageMemoryDeviceGroupInfo
.Valid Usage
imageIndex
must be less than the number of images inswapchain
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR
swapchain
must be a validVkSwapchainKHR
handle
Host Synchronization
- Host access to
swapchain
must be externally synchronized
Member documentation
sType
– 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 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 class
VkBindImageMemorySwapchainInfoKHR.Buffer
An array ofVkBindImageMemorySwapchainInfoKHR
structs.
-
Constructor Summary
Constructors Constructor Description VkBindImageMemorySwapchainInfoKHR(java.nio.ByteBuffer container)
Creates aVkBindImageMemorySwapchainInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkBindImageMemorySwapchainInfoKHR
calloc()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated withmemCalloc
.static VkBindImageMemorySwapchainInfoKHR.Buffer
calloc(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated withmemCalloc
.static VkBindImageMemorySwapchainInfoKHR
callocStack()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBindImageMemorySwapchainInfoKHR
create()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated withBufferUtils
.static VkBindImageMemorySwapchainInfoKHR.Buffer
create(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated withBufferUtils
.static VkBindImageMemorySwapchainInfoKHR
create(long address)
Returns a newVkBindImageMemorySwapchainInfoKHR
instance for the specified memory address.static VkBindImageMemorySwapchainInfoKHR.Buffer
create(long address, int capacity)
Create aVkBindImageMemorySwapchainInfoKHR.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 theimageIndex
field.VkBindImageMemorySwapchainInfoKHR
imageIndex(int value)
Sets the specified value to theimageIndex
field.static VkBindImageMemorySwapchainInfoKHR
malloc()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated withmemAlloc
.static VkBindImageMemorySwapchainInfoKHR.Buffer
malloc(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated withmemAlloc
.static VkBindImageMemorySwapchainInfoKHR
mallocStack()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated on the thread-localMemoryStack
.static VkBindImageMemorySwapchainInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkBindImageMemorySwapchainInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkBindImageMemorySwapchainInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated on the specifiedMemoryStack
.static int
nimageIndex(long struct)
Unsafe version ofimageIndex()
.static void
nimageIndex(long struct, int value)
Unsafe version ofimageIndex
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static long
nswapchain(long struct)
Unsafe version ofswapchain()
.static void
nswapchain(long struct, long value)
Unsafe version ofswapchain
.long
pNext()
Returns the value of thepNext
field.VkBindImageMemorySwapchainInfoKHR
pNext(long value)
Sets the specified value to thepNext
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 thesType
field.VkBindImageMemorySwapchainInfoKHR
sType(int value)
Sets the specified value to thesType
field.long
swapchain()
Returns the value of theswapchain
field.VkBindImageMemorySwapchainInfoKHR
swapchain(long value)
Sets the specified value to theswapchain
field.
-
-
-
Constructor Detail
-
VkBindImageMemorySwapchainInfoKHR
public VkBindImageMemorySwapchainInfoKHR(java.nio.ByteBuffer container)
Creates aVkBindImageMemorySwapchainInfoKHR
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
swapchain
public long swapchain()
Returns the value of theswapchain
field.
-
imageIndex
public int imageIndex()
Returns the value of theimageIndex
field.
-
sType
public VkBindImageMemorySwapchainInfoKHR sType(int value)
Sets the specified value 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 newVkBindImageMemorySwapchainInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkBindImageMemorySwapchainInfoKHR calloc()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkBindImageMemorySwapchainInfoKHR create()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkBindImageMemorySwapchainInfoKHR create(long address)
Returns a newVkBindImageMemorySwapchainInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkBindImageMemorySwapchainInfoKHR createSafe(long address)
-
malloc
public static VkBindImageMemorySwapchainInfoKHR.Buffer malloc(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkBindImageMemorySwapchainInfoKHR.Buffer calloc(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBindImageMemorySwapchainInfoKHR.Buffer create(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkBindImageMemorySwapchainInfoKHR.Buffer create(long address, int capacity)
Create aVkBindImageMemorySwapchainInfoKHR.Buffer
instance 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 newVkBindImageMemorySwapchainInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkBindImageMemorySwapchainInfoKHR callocStack()
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkBindImageMemorySwapchainInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkBindImageMemorySwapchainInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindImageMemorySwapchainInfoKHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkBindImageMemorySwapchainInfoKHR.Buffer callocStack(int capacity)
Returns a newVkBindImageMemorySwapchainInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-