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.NativeResourceSpecify that an image will be bound to swapchain memory.Valid Usage
- If
swapchainis notNULL_HANDLE, the fields ofVkImageCreateInfomust match the implied image creation parameters of the swapchain
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHR- If
swapchainis notNULL_HANDLE,swapchainmust be a validVkSwapchainKHRhandle
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.swapchain–NULL_HANDLEor 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 classVkImageSwapchainCreateInfoKHR.BufferAn array ofVkImageSwapchainCreateInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkImageSwapchainCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkImageSwapchainCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageSwapchainCreateInfoKHRcalloc()Returns a newVkImageSwapchainCreateInfoKHRinstance allocated withmemCalloc.static VkImageSwapchainCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkImageSwapchainCreateInfoKHRcallocStack()Returns a newVkImageSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageSwapchainCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageSwapchainCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageSwapchainCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageSwapchainCreateInfoKHRcreate()Returns a newVkImageSwapchainCreateInfoKHRinstance allocated withBufferUtils.static VkImageSwapchainCreateInfoKHR.Buffercreate(int capacity)Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkImageSwapchainCreateInfoKHRcreate(long address)Returns a newVkImageSwapchainCreateInfoKHRinstance for the specified memory address.static VkImageSwapchainCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkImageSwapchainCreateInfoKHR.Bufferinstance at the specified memory.static VkImageSwapchainCreateInfoKHRcreateSafe(long address)static VkImageSwapchainCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkImageSwapchainCreateInfoKHRmalloc()Returns a newVkImageSwapchainCreateInfoKHRinstance allocated withmemAlloc.static VkImageSwapchainCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkImageSwapchainCreateInfoKHRmallocStack()Returns a newVkImageSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkImageSwapchainCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkImageSwapchainCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImageSwapchainCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.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.VkImageSwapchainCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkImageSwapchainCreateInfoKHRset(int sType, long pNext, long swapchain)Initializes this struct with the specified values.VkImageSwapchainCreateInfoKHRset(VkImageSwapchainCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkImageSwapchainCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.longswapchain()Returns the value of theswapchainfield.VkImageSwapchainCreateInfoKHRswapchain(long value)Sets the specified value to theswapchainfield.
-
-
-
Constructor Detail
-
VkImageSwapchainCreateInfoKHR
public VkImageSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkImageSwapchainCreateInfoKHRinstance 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.
-
sType
public VkImageSwapchainCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageSwapchainCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
swapchain
public VkImageSwapchainCreateInfoKHR swapchain(long value)
Sets the specified value to theswapchainfield.
-
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 newVkImageSwapchainCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageSwapchainCreateInfoKHR calloc()
Returns a newVkImageSwapchainCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageSwapchainCreateInfoKHR create()
Returns a newVkImageSwapchainCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkImageSwapchainCreateInfoKHR create(long address)
Returns a newVkImageSwapchainCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageSwapchainCreateInfoKHR createSafe(long address)
-
malloc
public static VkImageSwapchainCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageSwapchainCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageSwapchainCreateInfoKHR.Buffer create(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageSwapchainCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkImageSwapchainCreateInfoKHR.Bufferinstance 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 newVkImageSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageSwapchainCreateInfoKHR callocStack()
Returns a newVkImageSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageSwapchainCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageSwapchainCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageSwapchainCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkImageSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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.
-
-