Class VkSwapchainCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSwapchainCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSwapchainCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created swapchain object.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofVkDeviceGroupSwapchainCreateInfoKHR
,VkImageFormatListCreateInfoKHR
,VkSurfaceFullScreenExclusiveInfoEXT
,VkSurfaceFullScreenExclusiveWin32InfoEXT
,VkSwapchainCounterCreateInfoEXT
, orVkSwapchainDisplayNativeHdrCreateInfoAMD
- Each
sType
member in thepNext
chain must be unique flags
must be a valid combination ofVkSwapchainCreateFlagBitsKHR
valuessurface
must be a validVkSurfaceKHR
handleimageFormat
must be a validVkFormat
valueimageColorSpace
must be a validVkColorSpaceKHR
valueimageUsage
must be a valid combination ofVkImageUsageFlagBits
valuesimageUsage
must not be 0imageSharingMode
must be a validVkSharingMode
valuepreTransform
must be a validVkSurfaceTransformFlagBitsKHR
valuecompositeAlpha
must be a validVkCompositeAlphaFlagBitsKHR
valuepresentMode
must be a validVkPresentModeKHR
value- If
oldSwapchain
is notNULL_HANDLE
,oldSwapchain
must be a validVkSwapchainKHR
handle - If
oldSwapchain
is a valid handle, it must have been created, allocated, or retrieved fromsurface
- Both of
oldSwapchain
, andsurface
that are valid handles must have been created, allocated, or retrieved from the sameVkInstance
See Also
VkExtent2D
,CreateSharedSwapchainsKHR
,CreateSwapchainKHR
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– a bitmask ofVkSwapchainCreateFlagBitsKHR
indicating parameters of the swapchain creation.surface
– the surface onto which the swapchain will present images. If the creation succeeds, the swapchain becomes associated withsurface
.minImageCount
– the minimum number of presentable images that the application needs. The implementation will either create the swapchain with at least that many images, or it will fail to create the swapchain.imageFormat
– aVkFormat
value specifying the format the swapchain image(s) will be created with.imageColorSpace
– aVkColorSpaceKHR
value specifying the way the swapchain interprets image data.imageExtent
– the size (in pixels) of the swapchain image(s). The behavior is platform-dependent if the image extent does not match the surface’scurrentExtent
as returned byvkGetPhysicalDeviceSurfaceCapabilitiesKHR
.Note
On some platforms, it is normal that
maxImageExtent
may become(0, 0)
, for example when the window is minimized. In such a case, it is not possible to create a swapchain due to the Valid Usage requirements.imageArrayLayers
– the number of views in a multiview/stereo surface. For non-stereoscopic-3D applications, this value is 1.imageUsage
– a bitmask ofVkImageUsageFlagBits
describing the intended usage of the (acquired) swapchain images.imageSharingMode
– the sharing mode used for the image(s) of the swapchain.queueFamilyIndexCount
– the number of queue families having access to the image(s) of the swapchain whenimageSharingMode
isSHARING_MODE_CONCURRENT
.pQueueFamilyIndices
– an array of queue family indices having access to the images(s) of the swapchain whenimageSharingMode
isSHARING_MODE_CONCURRENT
.preTransform
– aVkSurfaceTransformFlagBitsKHR
value describing the transform, relative to the presentation engine’s natural orientation, applied to the image content prior to presentation. If it does not match thecurrentTransform
value returned byvkGetPhysicalDeviceSurfaceCapabilitiesKHR
, the presentation engine will transform the image content as part of the presentation operation.compositeAlpha
– aVkCompositeAlphaFlagBitsKHR
value indicating the alpha compositing mode to use when this surface is composited together with other surfaces on certain window systems.presentMode
– the presentation mode the swapchain will use. A swapchain’s present mode determines how incoming present requests will be processed and queued internally.clipped
– specifies whether the Vulkan implementation is allowed to discard rendering operations that affect regions of the surface that are not visible.- If set to
TRUE
, the presentable images associated with the swapchain may not own all of their pixels. Pixels in the presentable images that correspond to regions of the target surface obscured by another window on the desktop, or subject to some other clipping mechanism will have undefined content when read back. Pixel shaders may not execute for these pixels, and thus any side effects they would have had will not occur.TRUE
value does not guarantee any clipping will occur, but allows more optimal presentation methods to be used on some platforms. - If set to
FALSE
, presentable images associated with the swapchain will own all of the pixels they contain.Note
Applications should set this value to
TRUE
if they do not expect to read back the content of presentable images before presenting them or after reacquiring them, and if their pixel shaders do not have any side effects that require them to run for all pixels in the presentable image.
- If set to
oldSwapchain
–NULL_HANDLE
, or the existing non-retired swapchain currently associated withsurface
. Providing a validoldSwapchain
may aid in the resource reuse, and also allows the application to still present any images that are already acquired from it.Upon calling
vkCreateSwapchainKHR
with anoldSwapchain
that is notNULL_HANDLE
,oldSwapchain
is retired -- even if creation of the new swapchain fails. The new swapchain is created in the non-retired state whether or notoldSwapchain
isNULL_HANDLE
.Upon calling
vkCreateSwapchainKHR
with anoldSwapchain
that is notNULL_HANDLE
, any images fromoldSwapchain
that are not acquired by the application may be freed by the implementation, which may occur even if creation of the new swapchain fails. The application can destroyoldSwapchain
to free all memory associated witholdSwapchain
.Note
Multiple retired swapchains can be associated with the same
VkSurfaceKHR
through multiple uses ofoldSwapchain
that outnumber calls toDestroySwapchainKHR
.After
oldSwapchain
is retired, the application can pass toQueuePresentKHR
any images it had already acquired fromoldSwapchain
. E.g., an application may present an image from the old swapchain before an image from the new swapchain is ready to be presented. As usual,QueuePresentKHR
may fail ifoldSwapchain
has entered a state that causesERROR_OUT_OF_DATE_KHR
to be returned.The application can continue to use a shared presentable image obtained from
oldSwapchain
until a presentable image is acquired from the new swapchain, as long as it has not entered a state that causes it to returnERROR_OUT_OF_DATE_KHR
.
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 Class Summary
Nested Classes Modifier and Type Class Description static class
VkSwapchainCreateInfoKHR.Buffer
An array ofVkSwapchainCreateInfoKHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CLIPPED
COMPOSITEALPHA
FLAGS
IMAGEARRAYLAYERS
IMAGECOLORSPACE
IMAGEEXTENT
IMAGEFORMAT
IMAGESHARINGMODE
IMAGEUSAGE
MINIMAGECOUNT
OLDSWAPCHAIN
PNEXT
PQUEUEFAMILYINDICES
PRESENTMODE
PRETRANSFORM
QUEUEFAMILYINDEXCOUNTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
SURFACEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkSwapchainCreateInfoKHR
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 VkSwapchainCreateInfoKHR
calloc()
Returns a newVkSwapchainCreateInfoKHR
instance allocated withmemCalloc
.static VkSwapchainCreateInfoKHR.Buffer
calloc(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated withmemCalloc
.static VkSwapchainCreateInfoKHR
callocStack()
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSwapchainCreateInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSwapchainCreateInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSwapchainCreateInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.boolean
clipped()
Returns the value of theclipped
field.VkSwapchainCreateInfoKHR
clipped(boolean value)
Sets the specified value to theclipped
field.int
compositeAlpha()
Returns the value of thecompositeAlpha
field.VkSwapchainCreateInfoKHR
compositeAlpha(int value)
Sets the specified value to thecompositeAlpha
field.static VkSwapchainCreateInfoKHR
create()
Returns a newVkSwapchainCreateInfoKHR
instance allocated withBufferUtils
.static VkSwapchainCreateInfoKHR.Buffer
create(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkSwapchainCreateInfoKHR
create(long address)
Returns a newVkSwapchainCreateInfoKHR
instance for the specified memory address.static VkSwapchainCreateInfoKHR.Buffer
create(long address, int capacity)
Create aVkSwapchainCreateInfoKHR.Buffer
instance at the specified memory.static VkSwapchainCreateInfoKHR
createSafe(long address)
static VkSwapchainCreateInfoKHR.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkSwapchainCreateInfoKHR
flags(int value)
Sets the specified value to theflags
field.int
imageArrayLayers()
Returns the value of theimageArrayLayers
field.VkSwapchainCreateInfoKHR
imageArrayLayers(int value)
Sets the specified value to theimageArrayLayers
field.int
imageColorSpace()
Returns the value of theimageColorSpace
field.VkSwapchainCreateInfoKHR
imageColorSpace(int value)
Sets the specified value to theimageColorSpace
field.VkExtent2D
imageExtent()
Returns aVkExtent2D
view of theimageExtent
field.VkSwapchainCreateInfoKHR
imageExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theimageExtent
field to the specifiedConsumer
.VkSwapchainCreateInfoKHR
imageExtent(VkExtent2D value)
Copies the specifiedVkExtent2D
to theimageExtent
field.int
imageFormat()
Returns the value of theimageFormat
field.VkSwapchainCreateInfoKHR
imageFormat(int value)
Sets the specified value to theimageFormat
field.int
imageSharingMode()
Returns the value of theimageSharingMode
field.VkSwapchainCreateInfoKHR
imageSharingMode(int value)
Sets the specified value to theimageSharingMode
field.int
imageUsage()
Returns the value of theimageUsage
field.VkSwapchainCreateInfoKHR
imageUsage(int value)
Sets the specified value to theimageUsage
field.static VkSwapchainCreateInfoKHR
malloc()
Returns a newVkSwapchainCreateInfoKHR
instance allocated withmemAlloc
.static VkSwapchainCreateInfoKHR.Buffer
malloc(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated withmemAlloc
.static VkSwapchainCreateInfoKHR
mallocStack()
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
.static VkSwapchainCreateInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkSwapchainCreateInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkSwapchainCreateInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
.int
minImageCount()
Returns the value of theminImageCount
field.VkSwapchainCreateInfoKHR
minImageCount(int value)
Sets the specified value to theminImageCount
field.static int
nclipped(long struct)
Unsafe version ofclipped()
.static void
nclipped(long struct, int value)
Unsafe version ofclipped
.static int
ncompositeAlpha(long struct)
Unsafe version ofcompositeAlpha()
.static void
ncompositeAlpha(long struct, int value)
Unsafe version ofcompositeAlpha
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static int
nimageArrayLayers(long struct)
Unsafe version ofimageArrayLayers()
.static void
nimageArrayLayers(long struct, int value)
Unsafe version ofimageArrayLayers
.static int
nimageColorSpace(long struct)
Unsafe version ofimageColorSpace()
.static void
nimageColorSpace(long struct, int value)
Unsafe version ofimageColorSpace
.static VkExtent2D
nimageExtent(long struct)
Unsafe version ofimageExtent()
.static void
nimageExtent(long struct, VkExtent2D value)
Unsafe version ofimageExtent
.static int
nimageFormat(long struct)
Unsafe version ofimageFormat()
.static void
nimageFormat(long struct, int value)
Unsafe version ofimageFormat
.static int
nimageSharingMode(long struct)
Unsafe version ofimageSharingMode()
.static void
nimageSharingMode(long struct, int value)
Unsafe version ofimageSharingMode
.static int
nimageUsage(long struct)
Unsafe version ofimageUsage()
.static void
nimageUsage(long struct, int value)
Unsafe version ofimageUsage
.static int
nminImageCount(long struct)
Unsafe version ofminImageCount()
.static void
nminImageCount(long struct, int value)
Unsafe version ofminImageCount
.static long
noldSwapchain(long struct)
Unsafe version ofoldSwapchain()
.static void
noldSwapchain(long struct, long value)
Unsafe version ofoldSwapchain
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static java.nio.IntBuffer
npQueueFamilyIndices(long struct)
Unsafe version ofpQueueFamilyIndices
.static void
npQueueFamilyIndices(long struct, java.nio.IntBuffer value)
Unsafe version ofpQueueFamilyIndices
.static int
npresentMode(long struct)
Unsafe version ofpresentMode()
.static void
npresentMode(long struct, int value)
Unsafe version ofpresentMode
.static int
npreTransform(long struct)
Unsafe version ofpreTransform()
.static void
npreTransform(long struct, int value)
Unsafe version ofpreTransform
.static int
nqueueFamilyIndexCount(long struct)
Unsafe version ofqueueFamilyIndexCount()
.static void
nqueueFamilyIndexCount(long struct, int value)
Sets the specified value to thequeueFamilyIndexCount
field of the specifiedstruct
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static long
nsurface(long struct)
Unsafe version ofsurface()
.static void
nsurface(long struct, long value)
Unsafe version ofsurface
.long
oldSwapchain()
Returns the value of theoldSwapchain
field.VkSwapchainCreateInfoKHR
oldSwapchain(long value)
Sets the specified value to theoldSwapchain
field.long
pNext()
Returns the value of thepNext
field.VkSwapchainCreateInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.java.nio.IntBuffer
pQueueFamilyIndices()
Returns aIntBuffer
view of the data pointed to by thepQueueFamilyIndices
field.VkSwapchainCreateInfoKHR
pQueueFamilyIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepQueueFamilyIndices
field.int
presentMode()
Returns the value of thepresentMode
field.VkSwapchainCreateInfoKHR
presentMode(int value)
Sets the specified value to thepresentMode
field.int
preTransform()
Returns the value of thepreTransform
field.VkSwapchainCreateInfoKHR
preTransform(int value)
Sets the specified value to thepreTransform
field.int
queueFamilyIndexCount()
Returns the value of thequeueFamilyIndexCount
field.VkSwapchainCreateInfoKHR
set(int sType, long pNext, int flags, long surface, int minImageCount, int imageFormat, int imageColorSpace, VkExtent2D imageExtent, int imageArrayLayers, int imageUsage, int imageSharingMode, java.nio.IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, boolean clipped, long oldSwapchain)
Initializes this struct with the specified values.VkSwapchainCreateInfoKHR
set(VkSwapchainCreateInfoKHR src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkSwapchainCreateInfoKHR
sType(int value)
Sets the specified value to thesType
field.long
surface()
Returns the value of thesurface
field.VkSwapchainCreateInfoKHR
surface(long value)
Sets the specified value to thesurface
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, FLAGS, SURFACE, MINIMAGECOUNT, IMAGEFORMAT, IMAGECOLORSPACE, IMAGEEXTENT, IMAGEARRAYLAYERS, IMAGEUSAGE, IMAGESHARINGMODE, QUEUEFAMILYINDEXCOUNT, PQUEUEFAMILYINDICES, PRETRANSFORM, COMPOSITEALPHA, PRESENTMODE, CLIPPED, OLDSWAPCHAIN
The struct member offsets.
-
-
Constructor Detail
-
VkSwapchainCreateInfoKHR
public VkSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkSwapchainCreateInfoKHR
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.
-
flags
public int flags()
Returns the value of theflags
field.
-
surface
public long surface()
Returns the value of thesurface
field.
-
minImageCount
public int minImageCount()
Returns the value of theminImageCount
field.
-
imageFormat
public int imageFormat()
Returns the value of theimageFormat
field.
-
imageColorSpace
public int imageColorSpace()
Returns the value of theimageColorSpace
field.
-
imageExtent
public VkExtent2D imageExtent()
Returns aVkExtent2D
view of theimageExtent
field.
-
imageArrayLayers
public int imageArrayLayers()
Returns the value of theimageArrayLayers
field.
-
imageUsage
public int imageUsage()
Returns the value of theimageUsage
field.
-
imageSharingMode
public int imageSharingMode()
Returns the value of theimageSharingMode
field.
-
queueFamilyIndexCount
public int queueFamilyIndexCount()
Returns the value of thequeueFamilyIndexCount
field.
-
pQueueFamilyIndices
@Nullable public java.nio.IntBuffer pQueueFamilyIndices()
Returns aIntBuffer
view of the data pointed to by thepQueueFamilyIndices
field.
-
preTransform
public int preTransform()
Returns the value of thepreTransform
field.
-
compositeAlpha
public int compositeAlpha()
Returns the value of thecompositeAlpha
field.
-
presentMode
public int presentMode()
Returns the value of thepresentMode
field.
-
clipped
public boolean clipped()
Returns the value of theclipped
field.
-
oldSwapchain
public long oldSwapchain()
Returns the value of theoldSwapchain
field.
-
sType
public VkSwapchainCreateInfoKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSwapchainCreateInfoKHR pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkSwapchainCreateInfoKHR flags(int value)
Sets the specified value to theflags
field.
-
surface
public VkSwapchainCreateInfoKHR surface(long value)
Sets the specified value to thesurface
field.
-
minImageCount
public VkSwapchainCreateInfoKHR minImageCount(int value)
Sets the specified value to theminImageCount
field.
-
imageFormat
public VkSwapchainCreateInfoKHR imageFormat(int value)
Sets the specified value to theimageFormat
field.
-
imageColorSpace
public VkSwapchainCreateInfoKHR imageColorSpace(int value)
Sets the specified value to theimageColorSpace
field.
-
imageExtent
public VkSwapchainCreateInfoKHR imageExtent(VkExtent2D value)
Copies the specifiedVkExtent2D
to theimageExtent
field.
-
imageExtent
public VkSwapchainCreateInfoKHR imageExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theimageExtent
field to the specifiedConsumer
.
-
imageArrayLayers
public VkSwapchainCreateInfoKHR imageArrayLayers(int value)
Sets the specified value to theimageArrayLayers
field.
-
imageUsage
public VkSwapchainCreateInfoKHR imageUsage(int value)
Sets the specified value to theimageUsage
field.
-
imageSharingMode
public VkSwapchainCreateInfoKHR imageSharingMode(int value)
Sets the specified value to theimageSharingMode
field.
-
pQueueFamilyIndices
public VkSwapchainCreateInfoKHR pQueueFamilyIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepQueueFamilyIndices
field.
-
preTransform
public VkSwapchainCreateInfoKHR preTransform(int value)
Sets the specified value to thepreTransform
field.
-
compositeAlpha
public VkSwapchainCreateInfoKHR compositeAlpha(int value)
Sets the specified value to thecompositeAlpha
field.
-
presentMode
public VkSwapchainCreateInfoKHR presentMode(int value)
Sets the specified value to thepresentMode
field.
-
clipped
public VkSwapchainCreateInfoKHR clipped(boolean value)
Sets the specified value to theclipped
field.
-
oldSwapchain
public VkSwapchainCreateInfoKHR oldSwapchain(long value)
Sets the specified value to theoldSwapchain
field.
-
set
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, @Nullable java.nio.IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, boolean clipped, long oldSwapchain)
Initializes this struct with the specified values.
-
set
public VkSwapchainCreateInfoKHR set(VkSwapchainCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSwapchainCreateInfoKHR malloc()
Returns a newVkSwapchainCreateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSwapchainCreateInfoKHR calloc()
Returns a newVkSwapchainCreateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSwapchainCreateInfoKHR create()
Returns a newVkSwapchainCreateInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkSwapchainCreateInfoKHR create(long address)
Returns a newVkSwapchainCreateInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkSwapchainCreateInfoKHR createSafe(long address)
-
malloc
public static VkSwapchainCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSwapchainCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSwapchainCreateInfoKHR.Buffer create(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSwapchainCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkSwapchainCreateInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSwapchainCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSwapchainCreateInfoKHR mallocStack()
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSwapchainCreateInfoKHR callocStack()
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSwapchainCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSwapchainCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSwapchainCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSwapchainCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSwapchainCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSwapchainCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR.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()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
nsurface
public static long nsurface(long struct)
Unsafe version ofsurface()
.
-
nminImageCount
public static int nminImageCount(long struct)
Unsafe version ofminImageCount()
.
-
nimageFormat
public static int nimageFormat(long struct)
Unsafe version ofimageFormat()
.
-
nimageColorSpace
public static int nimageColorSpace(long struct)
Unsafe version ofimageColorSpace()
.
-
nimageExtent
public static VkExtent2D nimageExtent(long struct)
Unsafe version ofimageExtent()
.
-
nimageArrayLayers
public static int nimageArrayLayers(long struct)
Unsafe version ofimageArrayLayers()
.
-
nimageUsage
public static int nimageUsage(long struct)
Unsafe version ofimageUsage()
.
-
nimageSharingMode
public static int nimageSharingMode(long struct)
Unsafe version ofimageSharingMode()
.
-
nqueueFamilyIndexCount
public static int nqueueFamilyIndexCount(long struct)
Unsafe version ofqueueFamilyIndexCount()
.
-
npQueueFamilyIndices
@Nullable public static java.nio.IntBuffer npQueueFamilyIndices(long struct)
Unsafe version ofpQueueFamilyIndices
.
-
npreTransform
public static int npreTransform(long struct)
Unsafe version ofpreTransform()
.
-
ncompositeAlpha
public static int ncompositeAlpha(long struct)
Unsafe version ofcompositeAlpha()
.
-
npresentMode
public static int npresentMode(long struct)
Unsafe version ofpresentMode()
.
-
nclipped
public static int nclipped(long struct)
Unsafe version ofclipped()
.
-
noldSwapchain
public static long noldSwapchain(long struct)
Unsafe version ofoldSwapchain()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
nsurface
public static void nsurface(long struct, long value)
Unsafe version ofsurface
.
-
nminImageCount
public static void nminImageCount(long struct, int value)
Unsafe version ofminImageCount
.
-
nimageFormat
public static void nimageFormat(long struct, int value)
Unsafe version ofimageFormat
.
-
nimageColorSpace
public static void nimageColorSpace(long struct, int value)
Unsafe version ofimageColorSpace
.
-
nimageExtent
public static void nimageExtent(long struct, VkExtent2D value)
Unsafe version ofimageExtent
.
-
nimageArrayLayers
public static void nimageArrayLayers(long struct, int value)
Unsafe version ofimageArrayLayers
.
-
nimageUsage
public static void nimageUsage(long struct, int value)
Unsafe version ofimageUsage
.
-
nimageSharingMode
public static void nimageSharingMode(long struct, int value)
Unsafe version ofimageSharingMode
.
-
nqueueFamilyIndexCount
public static void nqueueFamilyIndexCount(long struct, int value)
Sets the specified value to thequeueFamilyIndexCount
field of the specifiedstruct
.
-
npQueueFamilyIndices
public static void npQueueFamilyIndices(long struct, @Nullable java.nio.IntBuffer value)
Unsafe version ofpQueueFamilyIndices
.
-
npreTransform
public static void npreTransform(long struct, int value)
Unsafe version ofpreTransform
.
-
ncompositeAlpha
public static void ncompositeAlpha(long struct, int value)
Unsafe version ofcompositeAlpha
.
-
npresentMode
public static void npresentMode(long struct, int value)
Unsafe version ofpresentMode
.
-
nclipped
public static void nclipped(long struct, int value)
Unsafe version ofclipped
.
-
noldSwapchain
public static void noldSwapchain(long struct, long value)
Unsafe version ofoldSwapchain
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-