Class VkSwapchainCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSwapchainCreateInfoKHR
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkSwapchainCreateInfoKHR extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how a swapchain should be created.
Valid Usage
sType
must beSTRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR
pNext
must beNULL
flags
must be 0surface
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
- Each of
surface
andoldSwapchain
that are valid handles must have been created, allocated or retrieved from the sameVkInstance
surface
must be a surface that is supported by the device as determined usingGetPhysicalDeviceSurfaceSupportKHR
- The native window referred to by
surface
must not already be associated with a swapchain other thanoldSwapchain
, or with a non-Vulkan graphics API surface minImageCount
must be greater than or equal to the value returned in theminImageCount
member of theVkSurfaceCapabilitiesKHR
structure returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
for the surfaceminImageCount
must be less than or equal to the value returned in themaxImageCount
member of theVkSurfaceCapabilitiesKHR
structure returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
for the surface if the returnedmaxImageCount
is not zeroimageFormat
andimageColorspace
must match theformat
andcolorSpace
members, respectively, of one of theVkSurfaceFormatKHR
structures returned byGetPhysicalDeviceSurfaceFormatsKHR
for the surfaceimageExtent
must be betweenminImageExtent
andmaxImageExtent
, inclusive, whereminImageExtent
andmaxImageExtent
are members of theVkSurfaceCapabilitiesKHR
structure returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
for the surfaceimageArrayLayers
must be greater than 0 and less than or equal to themaxImageArrayLayers
member of theVkSurfaceCapabilitiesKHR
structure returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
for the surfaceimageUsage
must be a subset of the supported usage flags present in thesupportedUsageFlags
member of theVkSurfaceCapabilitiesKHR
structure returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
for the surface- If
imageSharingMode
isSHARING_MODE_CONCURRENT
,pQueueFamilyIndices
must be a pointer to an array ofqueueFamilyIndexCount
uint32_t
values - If
imageSharingMode
isSHARING_MODE_CONCURRENT
,queueFamilyIndexCount
must be greater than 1 preTransform
must be one of the bits present in thesupportedTransforms
member of theVkSurfaceCapabilitiesKHR
structure returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
for the surfacecompositeAlpha
must be one of the bits present in thesupportedCompositeAlpha
member of theVkSurfaceCapabilitiesKHR
structure returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
for the surfacepresentMode
must be one of the ename:VkPresentModeKHR values returned byGetPhysicalDeviceSurfacePresentModesKHR
for the surface
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR
pNext
– reserved for use by extensionsflags
– reserved for future use, and must be zerosurface
– the surface that the swapchain will present images tominImageCount
– the minimum number of presentable images that the application needs. The platform will either create the swapchain with at least that many images, or will fail to create the swapchain.imageFormat
– aVkFormat
that is valid for swapchains on the specified surfaceimageColorSpace
– aVkColorSpaceKHR
that is valid for swapchains on the specified surface. Must be:COLOR_SPACE_SRGB_NONLINEAR_KHR
imageExtent
– the size (in pixels) of the swapchain. Behavior is platform-dependent when the image extent does not match the surface’scurrentExtent
as returned byGetPhysicalDeviceSurfaceCapabilitiesKHR
.imageArrayLayers
– the number of views in a multiview/stereo surface. For non-stereoscopic-3D applications, this value is 1imageUsage
– a bitfield ofVkImageUsageFlagBits
, indicating how the application will use the swapchain’s presentable images. One or more of:imageSharingMode
– the sharing mode used for the images of the swapchain. One of:SHARING_MODE_CONCURRENT
SHARING_MODE_EXCLUSIVE
queueFamilyIndexCount
– the number of queue families having access to the images of the swapchain in caseimageSharingMode
isSHARING_MODE_CONCURRENT
pQueueFamilyIndices
– an array of queue family indices having access to the images of the swapchain in caseimageSharingMode
isSHARING_MODE_CONCURRENT
preTransform
– a bitfield ofVkSurfaceTransformFlagBitsKHR
, 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 byGetPhysicalDeviceSurfaceCapabilitiesKHR
, the presentation engine will transform the image content as part of the presentation operation. One of:compositeAlpha
– a bitfield ofVkCompositeAlphaFlagBitsKHR
, indicating the alpha compositing mode to use when this surface is composited together with other surfaces on certain window systems. One of:COMPOSITE_ALPHA_INHERIT_BIT_KHR
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR
COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR
presentMode
– the presentation mode the swapchain will use. A swapchain’s present mode determines how incoming present requests will be processed and queued internally. One of:PRESENT_MODE_FIFO_KHR
PRESENT_MODE_FIFO_RELAXED_KHR
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_MAILBOX_KHR
clipped
– indicates whether the Vulkan implementation is allowed to discard rendering operations that affect regions of the surface which aren’t 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 affects they would have had will not occur.If set to
FALSE
, presentable images associated with the swapchain will own all the pixels they contain.Setting this value to
TRUE
does not guarantee any clipping will occur, but allows more optimal presentation methods to be used on some platforms.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.oldSwapchain
– if non-NULL
, specifies the swapchain that will be replaced by the new swapchain being created. Upon callingCreateSwapchainKHR
with a non-NULL
oldSwapchain
, any images not acquired by the application may be freed by the implementation, which may occur even if creation of the new swapchain fails. The application must destroy the old swapchain to free all memory associated with the old swapchain. The application must wait for the completion of any outstanding rendering to images it currently has acquired at the time the swapchain is destroyed. The application can continue to present any images it acquired and has not yet presented using the old swapchain, as long as it has not entered a state that causes it to returnERROR_OUT_OF_DATE_KHR
. However, the application cannot acquire any more images from the old swapchain regardless of whether or not creation of the new swapchain succeeds.
Layout
struct VkSwapchainCreateInfoKHR { VkStructureType sType; const void * pNext; VkSwapchainCreateFlagsKHR flags; VkSurfaceKHR surface; uint32_t minImageCount; VkFormat imageFormat; VkColorSpaceKHR imageColorSpace;
VkExtent2D
imageExtent; uint32_t imageArrayLayers; VkImageUsageFlags imageUsage; VkSharingMode imageSharingMode; uint32_t queueFamilyIndexCount; const uint32_t * pQueueFamilyIndices; VkSurfaceTransformFlagBitsKHR preTransform; VkCompositeAlphaFlagBitsKHR compositeAlpha; VkPresentModeKHR presentMode; VkBool32 clipped; VkSwapchainKHR oldSwapchain; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkSwapchainCreateInfoKHR.Buffer
An array ofVkSwapchainCreateInfoKHR
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSwapchainCreateInfoKHR
callocStack(MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
clipped()
Returns the value of theclipped
field.VkSwapchainCreateInfoKHR
clipped(int 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 ornull
if the address isNULL
.static VkSwapchainCreateInfoKHR.Buffer
create(long address, int capacity)
Create aVkSwapchainCreateInfoKHR.Buffer
instance at the specified memory.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(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, MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkSwapchainCreateInfoKHR
mallocStack(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.VkSwapchainCreateInfoKHR
nset(long struct)
Unsafe version ofset
.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, int clipped, long oldSwapchain)
Initializes this struct with the specified values.VkSwapchainCreateInfoKHR
set(VkSwapchainCreateInfoKHR src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.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)
CallsVkSwapchainCreateInfoKHR.validate(long)
for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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
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 int 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.
-
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(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(int 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, java.nio.IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, int clipped, long oldSwapchain)
Initializes this struct with the specified values.
-
nset
public VkSwapchainCreateInfoKHR nset(long struct)
Unsafe version ofset
.
-
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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSwapchainCreateInfoKHR callocStack(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, 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, 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
-
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)
CallsVkSwapchainCreateInfoKHR.validate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-