Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkSwapchainCreateInfoKHR

extends Struct<VkSwapchainCreateInfoKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of a newly created swapchain object.
Valid Usage
Valid Usage (Implicit)
See Also

VkExtent2D, CreateSharedSwapchainsKHR, CreateSwapchainKHR

Layout


struct VkSwapchainCreateInfoKHR {
    VkStructureType sType;
    void const * pNext;
    VkSwapchainCreateFlagsKHR flags;
    VkSurfaceKHR surface;
    uint32_t minImageCount;
    VkFormat imageFormat;
    VkColorSpaceKHR imageColorSpace;
    VkExtent2D imageExtent;
    uint32_t imageArrayLayers;
    VkImageUsageFlags imageUsage;
    VkSharingMode imageSharingMode;
    uint32_t queueFamilyIndexCount;
    uint32_t const * pQueueFamilyIndices;
    VkSurfaceTransformFlagBitsKHR preTransform;
    VkCompositeAlphaFlagBitsKHR compositeAlpha;
    VkPresentModeKHR presentMode;
    VkBool32 clipped;
    VkSwapchainKHR oldSwapchain;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CLIPPED

The struct member offsets.

public static final int
COMPOSITEALPHA

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
IMAGEARRAYLAYERS

The struct member offsets.

public static final int
IMAGECOLORSPACE

The struct member offsets.

public static final int
IMAGEEXTENT

The struct member offsets.

public static final int
IMAGEFORMAT

The struct member offsets.

public static final int
IMAGESHARINGMODE

The struct member offsets.

public static final int
IMAGEUSAGE

The struct member offsets.

public static final int
MINIMAGECOUNT

The struct member offsets.

public static final int
OLDSWAPCHAIN

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PQUEUEFAMILYINDICES

The struct member offsets.

public static final int
PRESENTMODE

The struct member offsets.

public static final int
PRETRANSFORM

The struct member offsets.

public static final int
QUEUEFAMILYINDEXCOUNT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
SURFACE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkSwapchainCreateInfoKHR(long address, ByteBuffer container)

public
VkSwapchainCreateInfoKHR(ByteBuffer container)

Creates a VkSwapchainCreateInfoKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkSwapchainCreateInfoKHR
calloc()

Returns a new VkSwapchainCreateInfoKHR instance allocated with memCalloc.

public static VkSwapchainCreateInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkSwapchainCreateInfoKHR.Buffer instance allocated with memCalloc.

public static VkSwapchainCreateInfoKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSwapchainCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkSwapchainCreateInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSwapchainCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkSwapchainCreateInfoKHR
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkSwapchainCreateInfoKHR
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkSwapchainCreateInfoKHR.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkSwapchainCreateInfoKHR.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public boolean
clipped()

specifies whether the Vulkan implementation is allowed to discard rendering operations that affect regions of the surface that are not visible.

public VkSwapchainCreateInfoKHR
clipped(boolean value)

Sets the specified value to the clipped field.

public int
compositeAlpha()

a VkCompositeAlphaFlagBitsKHR value indicating the alpha compositing mode to use when this surface is composited together with other surfaces on certain window systems.

public VkSwapchainCreateInfoKHR
compositeAlpha(int value)

Sets the specified value to the compositeAlpha field.

protected VkSwapchainCreateInfoKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkSwapchainCreateInfoKHR
create()

Returns a new VkSwapchainCreateInfoKHR instance allocated with BufferUtils.

public static VkSwapchainCreateInfoKHR
create(long address)

Returns a new VkSwapchainCreateInfoKHR instance for the specified memory address.

public static VkSwapchainCreateInfoKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkSwapchainCreateInfoKHR.Buffer instance allocated with BufferUtils.

public static VkSwapchainCreateInfoKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkSwapchainCreateInfoKHR.Buffer instance at the specified memory.

public static VkSwapchainCreateInfoKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkSwapchainCreateInfoKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

a bitmask of VkSwapchainCreateFlagBitsKHR indicating parameters of the swapchain creation.

public VkSwapchainCreateInfoKHR
flags(int value)

Sets the specified value to the flags field.

public int
imageArrayLayers()

the number of views in a multiview/stereo surface.

public VkSwapchainCreateInfoKHR
imageArrayLayers(int value)

Sets the specified value to the imageArrayLayers field.

public int
imageColorSpace()

a VkColorSpaceKHR value specifying the way the swapchain interprets image data.

public VkSwapchainCreateInfoKHR
imageColorSpace(int value)

Sets the specified value to the imageColorSpace field.

public VkExtent2D
imageExtent()

the size (in pixels) of the swapchain image(s).

public VkSwapchainCreateInfoKHR
imageExtent(VkExtent2D value)

Copies the specified VkExtent2D to the imageExtent field.

public VkSwapchainCreateInfoKHR
imageExtent(Consumer<VkExtent2D> consumer)

Passes the imageExtent field to the specified Consumer.

public int
imageFormat()

a VkFormat value specifying the format the swapchain image(s) will be created with.

public VkSwapchainCreateInfoKHR
imageFormat(int value)

Sets the specified value to the imageFormat field.

public int
imageSharingMode()

the sharing mode used for the image(s) of the swapchain.

public VkSwapchainCreateInfoKHR
imageSharingMode(int value)

Sets the specified value to the imageSharingMode field.

public int
imageUsage()

a bitmask of VkImageUsageFlagBits describing the intended usage of the (acquired) swapchain images.

public VkSwapchainCreateInfoKHR
imageUsage(int value)

Sets the specified value to the imageUsage field.

public static VkSwapchainCreateInfoKHR
malloc()

Returns a new VkSwapchainCreateInfoKHR instance allocated with memAlloc.

public static VkSwapchainCreateInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkSwapchainCreateInfoKHR.Buffer instance allocated with memAlloc.

public static VkSwapchainCreateInfoKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSwapchainCreateInfoKHR instance allocated on the specified MemoryStack.

public static VkSwapchainCreateInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkSwapchainCreateInfoKHR.Buffer instance allocated on the specified MemoryStack.

public static VkSwapchainCreateInfoKHR
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkSwapchainCreateInfoKHR
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkSwapchainCreateInfoKHR.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkSwapchainCreateInfoKHR.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
minImageCount()

the minimum number of presentable images that the application needs.

public VkSwapchainCreateInfoKHR
minImageCount(int value)

Sets the specified value to the minImageCount field.

public static int
nclipped(long struct)

Unsafe version of clipped.

public static void
nclipped(long struct, int value)

Unsafe version of clipped.

public static int
ncompositeAlpha(long struct)

Unsafe version of compositeAlpha.

public static void
ncompositeAlpha(long struct, int value)

Unsafe version of compositeAlpha.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
nimageArrayLayers(long struct)

Unsafe version of imageArrayLayers.

public static void
nimageArrayLayers(long struct, int value)

Unsafe version of imageArrayLayers.

public static int
nimageColorSpace(long struct)

Unsafe version of imageColorSpace.

public static void
nimageColorSpace(long struct, int value)

Unsafe version of imageColorSpace.

public static VkExtent2D
nimageExtent(long struct)

Unsafe version of imageExtent.

public static void
nimageExtent(long struct, VkExtent2D value)

Unsafe version of imageExtent.

public static int
nimageFormat(long struct)

Unsafe version of imageFormat.

public static void
nimageFormat(long struct, int value)

Unsafe version of imageFormat.

public static int
nimageSharingMode(long struct)

Unsafe version of imageSharingMode.

public static void
nimageSharingMode(long struct, int value)

Unsafe version of imageSharingMode.

public static int
nimageUsage(long struct)

Unsafe version of imageUsage.

public static void
nimageUsage(long struct, int value)

Unsafe version of imageUsage.

public static int
nminImageCount(long struct)

Unsafe version of minImageCount.

public static void
nminImageCount(long struct, int value)

Unsafe version of minImageCount.

public static long
noldSwapchain(long struct)

Unsafe version of oldSwapchain.

public static void
noldSwapchain(long struct, long value)

Unsafe version of oldSwapchain.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static IntBuffer
npQueueFamilyIndices(long struct)

Unsafe version of pQueueFamilyIndices.

public static void
npQueueFamilyIndices(long struct, IntBuffer value)

Unsafe version of pQueueFamilyIndices.

public static int
npresentMode(long struct)

Unsafe version of presentMode.

public static void
npresentMode(long struct, int value)

Unsafe version of presentMode.

public static int
npreTransform(long struct)

Unsafe version of preTransform.

public static void
npreTransform(long struct, int value)

Unsafe version of preTransform.

public static int
nqueueFamilyIndexCount(long struct)

Unsafe version of queueFamilyIndexCount.

public static void
nqueueFamilyIndexCount(long struct, int value)

Sets the specified value to the queueFamilyIndexCount field of the specified struct.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static long
nsurface(long struct)

Unsafe version of surface.

public static void
nsurface(long struct, long value)

Unsafe version of surface.

public long
oldSwapchain()

NULL_HANDLE, or the existing non-retired swapchain currently associated with surface.

public VkSwapchainCreateInfoKHR
oldSwapchain(long value)

Sets the specified value to the oldSwapchain field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkSwapchainCreateInfoKHR
pNext(long value)

Sets the specified value to the pNext field.

public VkSwapchainCreateInfoKHR
pNext(VkDeviceGroupSwapchainCreateInfoKHR value)

Prepends the specified VkDeviceGroupSwapchainCreateInfoKHR value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkImageCompressionControlEXT value)

Prepends the specified VkImageCompressionControlEXT value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkImageFormatListCreateInfo value)

Prepends the specified VkImageFormatListCreateInfo value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkImageFormatListCreateInfoKHR value)

Prepends the specified VkImageFormatListCreateInfoKHR value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkSurfaceFullScreenExclusiveInfoEXT value)

Prepends the specified VkSurfaceFullScreenExclusiveInfoEXT value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkSurfaceFullScreenExclusiveWin32InfoEXT value)

Prepends the specified VkSurfaceFullScreenExclusiveWin32InfoEXT value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkSwapchainCounterCreateInfoEXT value)

Prepends the specified VkSwapchainCounterCreateInfoEXT value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkSwapchainDisplayNativeHdrCreateInfoAMD value)

Prepends the specified VkSwapchainDisplayNativeHdrCreateInfoAMD value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkSwapchainPresentBarrierCreateInfoNV value)

Prepends the specified VkSwapchainPresentBarrierCreateInfoNV value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkSwapchainPresentModesCreateInfoEXT value)

Prepends the specified VkSwapchainPresentModesCreateInfoEXT value to the pNext chain.

public VkSwapchainCreateInfoKHR
pNext(VkSwapchainPresentScalingCreateInfoEXT value)

Prepends the specified VkSwapchainPresentScalingCreateInfoEXT value to the pNext chain.

public IntBuffer
pQueueFamilyIndices()

a pointer to an array of queue family indices having access to the images(s) of the swapchain when imageSharingMode is SHARING_MODE_CONCURRENT.

public VkSwapchainCreateInfoKHR
pQueueFamilyIndices(IntBuffer value)

Sets the address of the specified IntBuffer to the pQueueFamilyIndices field.

public int
presentMode()

the presentation mode the swapchain will use.

public VkSwapchainCreateInfoKHR
presentMode(int value)

Sets the specified value to the presentMode field.

public int
preTransform()

a VkSurfaceTransformFlagBitsKHR value describing the transform, relative to the presentation engine’s natural orientation, applied to the image content prior to presentation.

public VkSwapchainCreateInfoKHR
preTransform(int value)

Sets the specified value to the preTransform field.

public int
queueFamilyIndexCount()

the number of queue families having access to the image(s) of the swapchain when imageSharingMode is SHARING_MODE_CONCURRENT.

public VkSwapchainCreateInfoKHR
queueFamilyIndexCount(int value)

Sets the specified value to the queueFamilyIndexCount field.

public VkSwapchainCreateInfoKHR
set(int sType, long pNext, int flags, long surface, int minImageCount, int imageFormat, int imageColorSpace, VkExtent2D imageExtent, int imageArrayLayers, int imageUsage, int imageSharingMode, int queueFamilyIndexCount, IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, boolean clipped, long oldSwapchain)

Initializes this struct with the specified values.

public VkSwapchainCreateInfoKHR

Returns:

this struct
set
(VkSwapchainCreateInfoKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkSwapchainCreateInfoKHR
sType(int value)

Sets the specified value to the sType field.

public VkSwapchainCreateInfoKHR
public long
surface()

the surface onto which the swapchain will present images.

public VkSwapchainCreateInfoKHR
surface(long value)

Sets the specified value to the surface field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate