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
sTypemust beSTRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHRpNextmust beNULLflagsmust be 0surfacemust be a validVkSurfaceKHRhandleimageFormatmust be a validVkFormatvalueimageColorSpacemust be a validVkColorSpaceKHRvalueimageUsagemust be a valid combination ofVkImageUsageFlagBitsvaluesimageUsagemust not be 0imageSharingModemust be a validVkSharingModevaluepreTransformmust be a validVkSurfaceTransformFlagBitsKHRvaluecompositeAlphamust be a validVkCompositeAlphaFlagBitsKHRvaluepresentModemust be a validVkPresentModeKHRvalue- If
oldSwapchainis notNULL_HANDLE,oldSwapchainmust be a validVkSwapchainKHRhandle - If
oldSwapchainis a valid handle, it must have been created, allocated or retrieved fromsurface - Each of
surfaceandoldSwapchainthat are valid handles must have been created, allocated or retrieved from the sameVkInstance surfacemust be a surface that is supported by the device as determined usingGetPhysicalDeviceSurfaceSupportKHR- The native window referred to by
surfacemust not already be associated with a swapchain other thanoldSwapchain, or with a non-Vulkan graphics API surface minImageCountmust be greater than or equal to the value returned in theminImageCountmember of theVkSurfaceCapabilitiesKHRstructure returned byGetPhysicalDeviceSurfaceCapabilitiesKHRfor the surfaceminImageCountmust be less than or equal to the value returned in themaxImageCountmember of theVkSurfaceCapabilitiesKHRstructure returned byGetPhysicalDeviceSurfaceCapabilitiesKHRfor the surface if the returnedmaxImageCountis not zeroimageFormatandimageColorspacemust match theformatandcolorSpacemembers, respectively, of one of theVkSurfaceFormatKHRstructures returned byGetPhysicalDeviceSurfaceFormatsKHRfor the surfaceimageExtentmust be betweenminImageExtentandmaxImageExtent, inclusive, whereminImageExtentandmaxImageExtentare members of theVkSurfaceCapabilitiesKHRstructure returned byGetPhysicalDeviceSurfaceCapabilitiesKHRfor the surfaceimageArrayLayersmust be greater than 0 and less than or equal to themaxImageArrayLayersmember of theVkSurfaceCapabilitiesKHRstructure returned byGetPhysicalDeviceSurfaceCapabilitiesKHRfor the surfaceimageUsagemust be a subset of the supported usage flags present in thesupportedUsageFlagsmember of theVkSurfaceCapabilitiesKHRstructure returned byGetPhysicalDeviceSurfaceCapabilitiesKHRfor the surface- If
imageSharingModeisSHARING_MODE_CONCURRENT,pQueueFamilyIndicesmust be a pointer to an array ofqueueFamilyIndexCountuint32_tvalues - If
imageSharingModeisSHARING_MODE_CONCURRENT,queueFamilyIndexCountmust be greater than 1 preTransformmust be one of the bits present in thesupportedTransformsmember of theVkSurfaceCapabilitiesKHRstructure returned byGetPhysicalDeviceSurfaceCapabilitiesKHRfor the surfacecompositeAlphamust be one of the bits present in thesupportedCompositeAlphamember of theVkSurfaceCapabilitiesKHRstructure returned byGetPhysicalDeviceSurfaceCapabilitiesKHRfor the surfacepresentModemust be one of the ename:VkPresentModeKHR values returned byGetPhysicalDeviceSurfacePresentModesKHRfor the surface
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHRpNext– 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– aVkFormatthat is valid for swapchains on the specified surfaceimageColorSpace– aVkColorSpaceKHRthat is valid for swapchains on the specified surface. Must be:COLOR_SPACE_SRGB_NONLINEAR_KHRimageExtent– the size (in pixels) of the swapchain. Behavior is platform-dependent when the image extent does not match the surface’scurrentExtentas 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_CONCURRENTSHARING_MODE_EXCLUSIVEqueueFamilyIndexCount– the number of queue families having access to the images of the swapchain in caseimageSharingModeisSHARING_MODE_CONCURRENTpQueueFamilyIndices– an array of queue family indices having access to the images of the swapchain in caseimageSharingModeisSHARING_MODE_CONCURRENTpreTransform– 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 thecurrentTransformvalue 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_KHRCOMPOSITE_ALPHA_OPAQUE_BIT_KHRCOMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHRCOMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHRpresentMode– 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_KHRPRESENT_MODE_FIFO_RELAXED_KHRPRESENT_MODE_IMMEDIATE_KHRPRESENT_MODE_MAILBOX_KHRclipped– 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
TRUEdoes 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
TRUEif 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 callingCreateSwapchainKHRwith a non-NULLoldSwapchain, 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;VkExtent2DimageExtent; 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 classVkSwapchainCreateInfoKHR.BufferAn array ofVkSwapchainCreateInfoKHRstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aVkSwapchainCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkSwapchainCreateInfoKHRcalloc()Returns a newVkSwapchainCreateInfoKHRinstance allocated withmemCalloc.static VkSwapchainCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkSwapchainCreateInfoKHRcallocStack()Returns a newVkSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSwapchainCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSwapchainCreateInfoKHR.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSwapchainCreateInfoKHRcallocStack(MemoryStack stack)Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intclipped()Returns the value of theclippedfield.VkSwapchainCreateInfoKHRclipped(int value)Sets the specified value to theclippedfield.intcompositeAlpha()Returns the value of thecompositeAlphafield.VkSwapchainCreateInfoKHRcompositeAlpha(int value)Sets the specified value to thecompositeAlphafield.static VkSwapchainCreateInfoKHRcreate()Returns a newVkSwapchainCreateInfoKHRinstance allocated withBufferUtils.static VkSwapchainCreateInfoKHR.Buffercreate(int capacity)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkSwapchainCreateInfoKHRcreate(long address)Returns a newVkSwapchainCreateInfoKHRinstance for the specified memory address ornullif the address isNULL.static VkSwapchainCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkSwapchainCreateInfoKHR.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkSwapchainCreateInfoKHRflags(int value)Sets the specified value to theflagsfield.intimageArrayLayers()Returns the value of theimageArrayLayersfield.VkSwapchainCreateInfoKHRimageArrayLayers(int value)Sets the specified value to theimageArrayLayersfield.intimageColorSpace()Returns the value of theimageColorSpacefield.VkSwapchainCreateInfoKHRimageColorSpace(int value)Sets the specified value to theimageColorSpacefield.VkExtent2DimageExtent()Returns aVkExtent2Dview of theimageExtentfield.VkSwapchainCreateInfoKHRimageExtent(VkExtent2D value)Copies the specifiedVkExtent2Dto theimageExtentfield.intimageFormat()Returns the value of theimageFormatfield.VkSwapchainCreateInfoKHRimageFormat(int value)Sets the specified value to theimageFormatfield.intimageSharingMode()Returns the value of theimageSharingModefield.VkSwapchainCreateInfoKHRimageSharingMode(int value)Sets the specified value to theimageSharingModefield.intimageUsage()Returns the value of theimageUsagefield.VkSwapchainCreateInfoKHRimageUsage(int value)Sets the specified value to theimageUsagefield.static VkSwapchainCreateInfoKHRmalloc()Returns a newVkSwapchainCreateInfoKHRinstance allocated withmemAlloc.static VkSwapchainCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkSwapchainCreateInfoKHRmallocStack()Returns a newVkSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkSwapchainCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkSwapchainCreateInfoKHR.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSwapchainCreateInfoKHRmallocStack(MemoryStack stack)Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.intminImageCount()Returns the value of theminImageCountfield.VkSwapchainCreateInfoKHRminImageCount(int value)Sets the specified value to theminImageCountfield.VkSwapchainCreateInfoKHRnset(long struct)Unsafe version ofset.longoldSwapchain()Returns the value of theoldSwapchainfield.VkSwapchainCreateInfoKHRoldSwapchain(long value)Sets the specified value to theoldSwapchainfield.longpNext()Returns the value of thepNextfield.VkSwapchainCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.java.nio.IntBufferpQueueFamilyIndices()Returns aIntBufferview of the data pointed to by thepQueueFamilyIndicesfield.VkSwapchainCreateInfoKHRpQueueFamilyIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepQueueFamilyIndicesfield.intpresentMode()Returns the value of thepresentModefield.VkSwapchainCreateInfoKHRpresentMode(int value)Sets the specified value to thepresentModefield.intpreTransform()Returns the value of thepreTransformfield.VkSwapchainCreateInfoKHRpreTransform(int value)Sets the specified value to thepreTransformfield.intqueueFamilyIndexCount()Returns the value of thequeueFamilyIndexCountfield.VkSwapchainCreateInfoKHRset(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.VkSwapchainCreateInfoKHRset(VkSwapchainCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkSwapchainCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.longsurface()Returns the value of thesurfacefield.VkSwapchainCreateInfoKHRsurface(long value)Sets the specified value to thesurfacefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(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 aVkSwapchainCreateInfoKHRinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
surface
public long surface()
Returns the value of thesurfacefield.
-
minImageCount
public int minImageCount()
Returns the value of theminImageCountfield.
-
imageFormat
public int imageFormat()
Returns the value of theimageFormatfield.
-
imageColorSpace
public int imageColorSpace()
Returns the value of theimageColorSpacefield.
-
imageExtent
public VkExtent2D imageExtent()
Returns aVkExtent2Dview of theimageExtentfield.
-
imageArrayLayers
public int imageArrayLayers()
Returns the value of theimageArrayLayersfield.
-
imageUsage
public int imageUsage()
Returns the value of theimageUsagefield.
-
imageSharingMode
public int imageSharingMode()
Returns the value of theimageSharingModefield.
-
queueFamilyIndexCount
public int queueFamilyIndexCount()
Returns the value of thequeueFamilyIndexCountfield.
-
pQueueFamilyIndices
public java.nio.IntBuffer pQueueFamilyIndices()
Returns aIntBufferview of the data pointed to by thepQueueFamilyIndicesfield.
-
preTransform
public int preTransform()
Returns the value of thepreTransformfield.
-
compositeAlpha
public int compositeAlpha()
Returns the value of thecompositeAlphafield.
-
presentMode
public int presentMode()
Returns the value of thepresentModefield.
-
clipped
public int clipped()
Returns the value of theclippedfield.
-
oldSwapchain
public long oldSwapchain()
Returns the value of theoldSwapchainfield.
-
sType
public VkSwapchainCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkSwapchainCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkSwapchainCreateInfoKHR flags(int value)
Sets the specified value to theflagsfield.
-
surface
public VkSwapchainCreateInfoKHR surface(long value)
Sets the specified value to thesurfacefield.
-
minImageCount
public VkSwapchainCreateInfoKHR minImageCount(int value)
Sets the specified value to theminImageCountfield.
-
imageFormat
public VkSwapchainCreateInfoKHR imageFormat(int value)
Sets the specified value to theimageFormatfield.
-
imageColorSpace
public VkSwapchainCreateInfoKHR imageColorSpace(int value)
Sets the specified value to theimageColorSpacefield.
-
imageExtent
public VkSwapchainCreateInfoKHR imageExtent(VkExtent2D value)
Copies the specifiedVkExtent2Dto theimageExtentfield.
-
imageArrayLayers
public VkSwapchainCreateInfoKHR imageArrayLayers(int value)
Sets the specified value to theimageArrayLayersfield.
-
imageUsage
public VkSwapchainCreateInfoKHR imageUsage(int value)
Sets the specified value to theimageUsagefield.
-
imageSharingMode
public VkSwapchainCreateInfoKHR imageSharingMode(int value)
Sets the specified value to theimageSharingModefield.
-
pQueueFamilyIndices
public VkSwapchainCreateInfoKHR pQueueFamilyIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepQueueFamilyIndicesfield.
-
preTransform
public VkSwapchainCreateInfoKHR preTransform(int value)
Sets the specified value to thepreTransformfield.
-
compositeAlpha
public VkSwapchainCreateInfoKHR compositeAlpha(int value)
Sets the specified value to thecompositeAlphafield.
-
presentMode
public VkSwapchainCreateInfoKHR presentMode(int value)
Sets the specified value to thepresentModefield.
-
clipped
public VkSwapchainCreateInfoKHR clipped(int value)
Sets the specified value to theclippedfield.
-
oldSwapchain
public VkSwapchainCreateInfoKHR oldSwapchain(long value)
Sets the specified value to theoldSwapchainfield.
-
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 newVkSwapchainCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSwapchainCreateInfoKHR calloc()
Returns a newVkSwapchainCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSwapchainCreateInfoKHR create()
Returns a newVkSwapchainCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkSwapchainCreateInfoKHR create(long address)
Returns a newVkSwapchainCreateInfoKHRinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkSwapchainCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSwapchainCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSwapchainCreateInfoKHR.Buffer create(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSwapchainCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkSwapchainCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkSwapchainCreateInfoKHR mallocStack()
Returns a newVkSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSwapchainCreateInfoKHR callocStack()
Returns a newVkSwapchainCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSwapchainCreateInfoKHR mallocStack(MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSwapchainCreateInfoKHR callocStack(MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSwapchainCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSwapchainCreateInfoKHR.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-