Package org.lwjgl.vulkan
Class VkImageSwapchainCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageSwapchainCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkImageSwapchainCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Specify that an image will be bound to swapchain memory.Valid Usage
- If
swapchain
is notNULL_HANDLE
, the fields ofVkImageCreateInfo
must match the implied image creation parameters of the swapchain
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHR
- If
swapchain
is notNULL_HANDLE
,swapchain
must be a validVkSwapchainKHR
handle
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.swapchain
–NULL_HANDLE
or a handle of a swapchain that the image will be bound to.
Layout
struct VkImageSwapchainCreateInfoKHR { VkStructureType sType; void const * pNext; VkSwapchainKHR swapchain; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkImageSwapchainCreateInfoKHR.Buffer
An array ofVkImageSwapchainCreateInfoKHR
structs.
-
Constructor Summary
Constructors Constructor Description VkImageSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkImageSwapchainCreateInfoKHR
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 VkImageSwapchainCreateInfoKHR
calloc()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated withmemCalloc
.static VkImageSwapchainCreateInfoKHR.Buffer
calloc(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated withmemCalloc
.static VkImageSwapchainCreateInfoKHR
callocStack()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageSwapchainCreateInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageSwapchainCreateInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageSwapchainCreateInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageSwapchainCreateInfoKHR
create()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated withBufferUtils
.static VkImageSwapchainCreateInfoKHR.Buffer
create(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkImageSwapchainCreateInfoKHR
create(long address)
Returns a newVkImageSwapchainCreateInfoKHR
instance for the specified memory address.static VkImageSwapchainCreateInfoKHR.Buffer
create(long address, int capacity)
Create aVkImageSwapchainCreateInfoKHR.Buffer
instance at the specified memory.static VkImageSwapchainCreateInfoKHR
createSafe(long address)
static VkImageSwapchainCreateInfoKHR.Buffer
createSafe(long address, int capacity)
static VkImageSwapchainCreateInfoKHR
malloc()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated withmemAlloc
.static VkImageSwapchainCreateInfoKHR.Buffer
malloc(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated withmemAlloc
.static VkImageSwapchainCreateInfoKHR
mallocStack()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
.static VkImageSwapchainCreateInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkImageSwapchainCreateInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageSwapchainCreateInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
.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.VkImageSwapchainCreateInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkImageSwapchainCreateInfoKHR
set(int sType, long pNext, long swapchain)
Initializes this struct with the specified values.VkImageSwapchainCreateInfoKHR
set(VkImageSwapchainCreateInfoKHR src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkImageSwapchainCreateInfoKHR
sType(int value)
Sets the specified value to thesType
field.long
swapchain()
Returns the value of theswapchain
field.VkImageSwapchainCreateInfoKHR
swapchain(long value)
Sets the specified value to theswapchain
field.
-
-
-
Constructor Detail
-
VkImageSwapchainCreateInfoKHR
public VkImageSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkImageSwapchainCreateInfoKHR
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.
-
sType
public VkImageSwapchainCreateInfoKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkImageSwapchainCreateInfoKHR pNext(long value)
Sets the specified value to thepNext
field.
-
swapchain
public VkImageSwapchainCreateInfoKHR swapchain(long value)
Sets the specified value to theswapchain
field.
-
set
public VkImageSwapchainCreateInfoKHR set(int sType, long pNext, long swapchain)
Initializes this struct with the specified values.
-
set
public VkImageSwapchainCreateInfoKHR set(VkImageSwapchainCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkImageSwapchainCreateInfoKHR malloc()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkImageSwapchainCreateInfoKHR calloc()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkImageSwapchainCreateInfoKHR create()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkImageSwapchainCreateInfoKHR create(long address)
Returns a newVkImageSwapchainCreateInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkImageSwapchainCreateInfoKHR createSafe(long address)
-
malloc
public static VkImageSwapchainCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkImageSwapchainCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageSwapchainCreateInfoKHR.Buffer create(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageSwapchainCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkImageSwapchainCreateInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkImageSwapchainCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageSwapchainCreateInfoKHR mallocStack()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkImageSwapchainCreateInfoKHR callocStack()
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkImageSwapchainCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkImageSwapchainCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkImageSwapchainCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkImageSwapchainCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkImageSwapchainCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkImageSwapchainCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHR.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()
.
-
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
.
-
-