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.NativeResourceStructure specifying parameters of a newly created swapchain object.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkDeviceGroupSwapchainCreateInfoKHR,VkImageFormatListCreateInfoKHR,VkSurfaceFullScreenExclusiveInfoEXT,VkSurfaceFullScreenExclusiveWin32InfoEXT,VkSwapchainCounterCreateInfoEXT, orVkSwapchainDisplayNativeHdrCreateInfoAMD - Each
sTypemember in thepNextchain must be unique flagsmust be a valid combination ofVkSwapchainCreateFlagBitsKHRvaluessurfacemust 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 - Both of
oldSwapchain, andsurfacethat are valid handles must have been created, allocated, or retrieved from the sameVkInstance
See Also
VkExtent2D,CreateSharedSwapchainsKHR,CreateSwapchainKHRMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– a bitmask ofVkSwapchainCreateFlagBitsKHRindicating 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– aVkFormatvalue specifying the format the swapchain image(s) will be created with.imageColorSpace– aVkColorSpaceKHRvalue 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’scurrentExtentas returned byvkGetPhysicalDeviceSurfaceCapabilitiesKHR.Note
On some platforms, it is normal that
maxImageExtentmay 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 ofVkImageUsageFlagBitsdescribing 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 whenimageSharingModeisSHARING_MODE_CONCURRENT.pQueueFamilyIndices– an array of queue family indices having access to the images(s) of the swapchain whenimageSharingModeisSHARING_MODE_CONCURRENT.preTransform– aVkSurfaceTransformFlagBitsKHRvalue 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 byvkGetPhysicalDeviceSurfaceCapabilitiesKHR, the presentation engine will transform the image content as part of the presentation operation.compositeAlpha– aVkCompositeAlphaFlagBitsKHRvalue 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.TRUEvalue 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
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.
- If set to
oldSwapchain–NULL_HANDLE, or the existing non-retired swapchain currently associated withsurface. Providing a validoldSwapchainmay aid in the resource reuse, and also allows the application to still present any images that are already acquired from it.Upon calling
vkCreateSwapchainKHRwith anoldSwapchainthat is notNULL_HANDLE,oldSwapchainis retired -- even if creation of the new swapchain fails. The new swapchain is created in the non-retired state whether or notoldSwapchainisNULL_HANDLE.Upon calling
vkCreateSwapchainKHRwith anoldSwapchainthat is notNULL_HANDLE, any images fromoldSwapchainthat 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 destroyoldSwapchainto free all memory associated witholdSwapchain.Note
Multiple retired swapchains can be associated with the same
VkSurfaceKHRthrough multiple uses ofoldSwapchainthat outnumber calls toDestroySwapchainKHR.After
oldSwapchainis retired, the application can pass toQueuePresentKHRany 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,QueuePresentKHRmay fail ifoldSwapchainhas entered a state that causesERROR_OUT_OF_DATE_KHRto be returned.The application can continue to use a shared presentable image obtained from
oldSwapchainuntil 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;VkExtent2DimageExtent; 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 classVkSwapchainCreateInfoKHR.BufferAn array ofVkSwapchainCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCLIPPED
COMPOSITEALPHA
FLAGS
IMAGEARRAYLAYERS
IMAGECOLORSPACE
IMAGEEXTENT
IMAGEFORMAT
IMAGESHARINGMODE
IMAGEUSAGE
MINIMAGECOUNT
OLDSWAPCHAIN
PNEXT
PQUEUEFAMILYINDICES
PRESENTMODE
PRETRANSFORM
QUEUEFAMILYINDEXCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SURFACEThe struct member offsets.
-
Constructor Summary
Constructors Constructor 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 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, org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSwapchainCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleanclipped()Returns the value of theclippedfield.VkSwapchainCreateInfoKHRclipped(boolean 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.static VkSwapchainCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkSwapchainCreateInfoKHR.Bufferinstance at the specified memory.static VkSwapchainCreateInfoKHRcreateSafe(long address)static VkSwapchainCreateInfoKHR.BuffercreateSafe(long address, int capacity)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(java.util.function.Consumer<VkExtent2D> consumer)Passes theimageExtentfield to the specifiedConsumer.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, org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSwapchainCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.intminImageCount()Returns the value of theminImageCountfield.VkSwapchainCreateInfoKHRminImageCount(int value)Sets the specified value to theminImageCountfield.static intnclipped(long struct)Unsafe version ofclipped().static voidnclipped(long struct, int value)Unsafe version ofclipped.static intncompositeAlpha(long struct)Unsafe version ofcompositeAlpha().static voidncompositeAlpha(long struct, int value)Unsafe version ofcompositeAlpha.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnimageArrayLayers(long struct)Unsafe version ofimageArrayLayers().static voidnimageArrayLayers(long struct, int value)Unsafe version ofimageArrayLayers.static intnimageColorSpace(long struct)Unsafe version ofimageColorSpace().static voidnimageColorSpace(long struct, int value)Unsafe version ofimageColorSpace.static VkExtent2DnimageExtent(long struct)Unsafe version ofimageExtent().static voidnimageExtent(long struct, VkExtent2D value)Unsafe version ofimageExtent.static intnimageFormat(long struct)Unsafe version ofimageFormat().static voidnimageFormat(long struct, int value)Unsafe version ofimageFormat.static intnimageSharingMode(long struct)Unsafe version ofimageSharingMode().static voidnimageSharingMode(long struct, int value)Unsafe version ofimageSharingMode.static intnimageUsage(long struct)Unsafe version ofimageUsage().static voidnimageUsage(long struct, int value)Unsafe version ofimageUsage.static intnminImageCount(long struct)Unsafe version ofminImageCount().static voidnminImageCount(long struct, int value)Unsafe version ofminImageCount.static longnoldSwapchain(long struct)Unsafe version ofoldSwapchain().static voidnoldSwapchain(long struct, long value)Unsafe version ofoldSwapchain.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.IntBuffernpQueueFamilyIndices(long struct)Unsafe version ofpQueueFamilyIndices.static voidnpQueueFamilyIndices(long struct, java.nio.IntBuffer value)Unsafe version ofpQueueFamilyIndices.static intnpresentMode(long struct)Unsafe version ofpresentMode().static voidnpresentMode(long struct, int value)Unsafe version ofpresentMode.static intnpreTransform(long struct)Unsafe version ofpreTransform().static voidnpreTransform(long struct, int value)Unsafe version ofpreTransform.static intnqueueFamilyIndexCount(long struct)Unsafe version ofqueueFamilyIndexCount().static voidnqueueFamilyIndexCount(long struct, int value)Sets the specified value to thequeueFamilyIndexCountfield of the specifiedstruct.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static longnsurface(long struct)Unsafe version ofsurface().static voidnsurface(long struct, long value)Unsafe version ofsurface.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, boolean clipped, long oldSwapchain)Initializes this struct with the specified values.VkSwapchainCreateInfoKHRset(VkSwapchainCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()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)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 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
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
@Nullable 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 boolean 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.
-
imageExtent
public VkSwapchainCreateInfoKHR imageExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes theimageExtentfield to the specifiedConsumer.
-
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(@Nullable 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(boolean 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, @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 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.
-
createSafe
@Nullable public static VkSwapchainCreateInfoKHR createSafe(long address)
-
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
-
createSafe
@Nullable public static VkSwapchainCreateInfoKHR.Buffer createSafe(long address, int 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(org.lwjgl.system.MemoryStack stack)
Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSwapchainCreateInfoKHR callocStack(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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
-
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 thequeueFamilyIndexCountfield 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
-
-