public class VkSwapchainCreateInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHRpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkDeviceGroupSwapchainCreateInfoKHR, VkImageFormatListCreateInfoKHR, VkSurfaceFullScreenExclusiveInfoEXT, VkSurfaceFullScreenExclusiveWin32InfoEXT, VkSwapchainCounterCreateInfoEXT, or VkSwapchainDisplayNativeHdrCreateInfoAMDsType member in the pNext chain must be uniqueflags must be a valid combination of VkSwapchainCreateFlagBitsKHR valuessurface must be a valid VkSurfaceKHR handleimageFormat must be a valid VkFormat valueimageColorSpace must be a valid VkColorSpaceKHR valueimageUsage must be a valid combination of VkImageUsageFlagBits valuesimageUsage must not be 0imageSharingMode must be a valid VkSharingMode valuepreTransform must be a valid VkSurfaceTransformFlagBitsKHR valuecompositeAlpha must be a valid VkCompositeAlphaFlagBitsKHR valuepresentMode must be a valid VkPresentModeKHR valueoldSwapchain is not NULL_HANDLE, oldSwapchain must be a valid VkSwapchainKHR handleoldSwapchain is a valid handle, it must have been created, allocated, or retrieved from surfaceoldSwapchain, and surface that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkInstanceVkExtent2D, CreateSharedSwapchainsKHR, CreateSwapchainKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkSwapchainCreateFlagBitsKHR indicating parameters of the swapchain creation.surface – the surface onto which the swapchain will present images. If the creation succeeds, the swapchain becomes associated with surface.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 – a VkFormat value specifying the format the swapchain image(s) will be created with.imageColorSpace – a VkColorSpaceKHR 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’s currentExtent as returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR.
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 of VkImageUsageFlagBits 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 when imageSharingMode is SHARING_MODE_CONCURRENT.pQueueFamilyIndices – a pointer to an array of queue family indices having access to the images(s) of the swapchain when imageSharingMode is SHARING_MODE_CONCURRENT.preTransform – a VkSurfaceTransformFlagBitsKHR 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 the currentTransform value returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR, the presentation engine will transform the image content as part of the presentation operation.compositeAlpha – a VkCompositeAlphaFlagBitsKHR 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.
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. Fragment 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.FALSE, presentable images associated with the swapchain will own all of the pixels they contain.
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 fragment shaders do not have any side effects that require them to run for all pixels in the presentable image.
oldSwapchain – NULL_HANDLE, or the existing non-retired swapchain currently associated with surface. Providing a valid oldSwapchain 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 an oldSwapchain that is not NULL_HANDLE, oldSwapchain is retired -- even if creation of the new swapchain fails. The new swapchain is created in the non-retired state whether or not oldSwapchain is NULL_HANDLE.
Upon calling vkCreateSwapchainKHR with an oldSwapchain that is not NULL_HANDLE, any images from oldSwapchain 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 destroy oldSwapchain to free all memory associated with oldSwapchain.
Multiple retired swapchains can be associated with the same VkSurfaceKHR through multiple uses of oldSwapchain that outnumber calls to DestroySwapchainKHR.
After oldSwapchain is retired, the application can pass to QueuePresentKHR any images it had already acquired from oldSwapchain. 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 if oldSwapchain has entered a state that causes ERROR_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 return ERROR_OUT_OF_DATE_KHR.
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSwapchainCreateInfoKHR.Buffer
An array of
VkSwapchainCreateInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLIPPED
The struct member offsets.
|
static int |
COMPOSITEALPHA
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
IMAGEARRAYLAYERS
The struct member offsets.
|
static int |
IMAGECOLORSPACE
The struct member offsets.
|
static int |
IMAGEEXTENT
The struct member offsets.
|
static int |
IMAGEFORMAT
The struct member offsets.
|
static int |
IMAGESHARINGMODE
The struct member offsets.
|
static int |
IMAGEUSAGE
The struct member offsets.
|
static int |
MINIMAGECOUNT
The struct member offsets.
|
static int |
OLDSWAPCHAIN
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PQUEUEFAMILYINDICES
The struct member offsets.
|
static int |
PRESENTMODE
The struct member offsets.
|
static int |
PRETRANSFORM
The struct member offsets.
|
static int |
QUEUEFAMILYINDEXCOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SURFACE
The struct member offsets.
|
| Constructor and Description |
|---|
VkSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
Creates a
VkSwapchainCreateInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkSwapchainCreateInfoKHR |
calloc()
Returns a new
VkSwapchainCreateInfoKHR instance allocated with memCalloc. |
static VkSwapchainCreateInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkSwapchainCreateInfoKHR.Buffer instance allocated with memCalloc. |
static VkSwapchainCreateInfoKHR |
callocStack()
Returns a new
VkSwapchainCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSwapchainCreateInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkSwapchainCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSwapchainCreateInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSwapchainCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSwapchainCreateInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSwapchainCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
boolean |
clipped()
Returns the value of the
clipped field. |
VkSwapchainCreateInfoKHR |
clipped(boolean value)
Sets the specified value to the
clipped field. |
int |
compositeAlpha()
Returns the value of the
compositeAlpha field. |
VkSwapchainCreateInfoKHR |
compositeAlpha(int value)
Sets the specified value to the
compositeAlpha field. |
static VkSwapchainCreateInfoKHR |
create()
Returns a new
VkSwapchainCreateInfoKHR instance allocated with BufferUtils. |
static VkSwapchainCreateInfoKHR.Buffer |
create(int capacity)
Returns a new
VkSwapchainCreateInfoKHR.Buffer instance allocated with BufferUtils. |
static VkSwapchainCreateInfoKHR |
create(long address)
Returns a new
VkSwapchainCreateInfoKHR instance for the specified memory address. |
static VkSwapchainCreateInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkSwapchainCreateInfoKHR.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 the
flags field. |
VkSwapchainCreateInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
int |
imageArrayLayers()
Returns the value of the
imageArrayLayers field. |
VkSwapchainCreateInfoKHR |
imageArrayLayers(int value)
Sets the specified value to the
imageArrayLayers field. |
int |
imageColorSpace()
Returns the value of the
imageColorSpace field. |
VkSwapchainCreateInfoKHR |
imageColorSpace(int value)
Sets the specified value to the
imageColorSpace field. |
VkExtent2D |
imageExtent()
Returns a
VkExtent2D view of the imageExtent field. |
VkSwapchainCreateInfoKHR |
imageExtent(java.util.function.Consumer<VkExtent2D> consumer)
Passes the
imageExtent field to the specified Consumer. |
VkSwapchainCreateInfoKHR |
imageExtent(VkExtent2D value)
Copies the specified
VkExtent2D to the imageExtent field. |
int |
imageFormat()
Returns the value of the
imageFormat field. |
VkSwapchainCreateInfoKHR |
imageFormat(int value)
Sets the specified value to the
imageFormat field. |
int |
imageSharingMode()
Returns the value of the
imageSharingMode field. |
VkSwapchainCreateInfoKHR |
imageSharingMode(int value)
Sets the specified value to the
imageSharingMode field. |
int |
imageUsage()
Returns the value of the
imageUsage field. |
VkSwapchainCreateInfoKHR |
imageUsage(int value)
Sets the specified value to the
imageUsage field. |
static VkSwapchainCreateInfoKHR |
malloc()
Returns a new
VkSwapchainCreateInfoKHR instance allocated with memAlloc. |
static VkSwapchainCreateInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkSwapchainCreateInfoKHR.Buffer instance allocated with memAlloc. |
static VkSwapchainCreateInfoKHR |
mallocStack()
Returns a new
VkSwapchainCreateInfoKHR instance allocated on the thread-local MemoryStack. |
static VkSwapchainCreateInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkSwapchainCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkSwapchainCreateInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSwapchainCreateInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkSwapchainCreateInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSwapchainCreateInfoKHR instance allocated on the specified MemoryStack. |
int |
minImageCount()
Returns the value of the
minImageCount field. |
VkSwapchainCreateInfoKHR |
minImageCount(int value)
Sets the specified value to the
minImageCount field. |
static int |
nclipped(long struct)
Unsafe version of
clipped(). |
static void |
nclipped(long struct,
int value)
Unsafe version of
clipped. |
static int |
ncompositeAlpha(long struct)
Unsafe version of
compositeAlpha(). |
static void |
ncompositeAlpha(long struct,
int value)
Unsafe version of
compositeAlpha. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nimageArrayLayers(long struct)
Unsafe version of
imageArrayLayers(). |
static void |
nimageArrayLayers(long struct,
int value)
Unsafe version of
imageArrayLayers. |
static int |
nimageColorSpace(long struct)
Unsafe version of
imageColorSpace(). |
static void |
nimageColorSpace(long struct,
int value)
Unsafe version of
imageColorSpace. |
static VkExtent2D |
nimageExtent(long struct)
Unsafe version of
imageExtent(). |
static void |
nimageExtent(long struct,
VkExtent2D value)
Unsafe version of
imageExtent. |
static int |
nimageFormat(long struct)
Unsafe version of
imageFormat(). |
static void |
nimageFormat(long struct,
int value)
Unsafe version of
imageFormat. |
static int |
nimageSharingMode(long struct)
Unsafe version of
imageSharingMode(). |
static void |
nimageSharingMode(long struct,
int value)
Unsafe version of
imageSharingMode. |
static int |
nimageUsage(long struct)
Unsafe version of
imageUsage(). |
static void |
nimageUsage(long struct,
int value)
Unsafe version of
imageUsage. |
static int |
nminImageCount(long struct)
Unsafe version of
minImageCount(). |
static void |
nminImageCount(long struct,
int value)
Unsafe version of
minImageCount. |
static long |
noldSwapchain(long struct)
Unsafe version of
oldSwapchain(). |
static void |
noldSwapchain(long struct,
long value)
Unsafe version of
oldSwapchain. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.IntBuffer |
npQueueFamilyIndices(long struct)
Unsafe version of
pQueueFamilyIndices. |
static void |
npQueueFamilyIndices(long struct,
java.nio.IntBuffer value)
Unsafe version of
pQueueFamilyIndices. |
static int |
npresentMode(long struct)
Unsafe version of
presentMode(). |
static void |
npresentMode(long struct,
int value)
Unsafe version of
presentMode. |
static int |
npreTransform(long struct)
Unsafe version of
preTransform(). |
static void |
npreTransform(long struct,
int value)
Unsafe version of
preTransform. |
static int |
nqueueFamilyIndexCount(long struct)
Unsafe version of
queueFamilyIndexCount(). |
static void |
nqueueFamilyIndexCount(long struct,
int value)
Sets the specified value to the
queueFamilyIndexCount field of the specified struct. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static long |
nsurface(long struct)
Unsafe version of
surface(). |
static void |
nsurface(long struct,
long value)
Unsafe version of
surface. |
long |
oldSwapchain()
Returns the value of the
oldSwapchain field. |
VkSwapchainCreateInfoKHR |
oldSwapchain(long value)
Sets the specified value to the
oldSwapchain field. |
long |
pNext()
Returns the value of the
pNext field. |
VkSwapchainCreateInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.IntBuffer |
pQueueFamilyIndices()
Returns a
IntBuffer view of the data pointed to by the pQueueFamilyIndices field. |
VkSwapchainCreateInfoKHR |
pQueueFamilyIndices(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pQueueFamilyIndices field. |
int |
presentMode()
Returns the value of the
presentMode field. |
VkSwapchainCreateInfoKHR |
presentMode(int value)
Sets the specified value to the
presentMode field. |
int |
preTransform()
Returns the value of the
preTransform field. |
VkSwapchainCreateInfoKHR |
preTransform(int value)
Sets the specified value to the
preTransform field. |
int |
queueFamilyIndexCount()
Returns the value of the
queueFamilyIndexCount 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 the
sType field. |
VkSwapchainCreateInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
long |
surface()
Returns the value of the
surface field. |
VkSwapchainCreateInfoKHR |
surface(long value)
Sets the specified value to the
surface field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int SURFACE
public static final int MINIMAGECOUNT
public static final int IMAGEFORMAT
public static final int IMAGECOLORSPACE
public static final int IMAGEEXTENT
public static final int IMAGEARRAYLAYERS
public static final int IMAGEUSAGE
public static final int IMAGESHARINGMODE
public static final int QUEUEFAMILYINDEXCOUNT
public static final int PQUEUEFAMILYINDICES
public static final int PRETRANSFORM
public static final int COMPOSITEALPHA
public static final int PRESENTMODE
public static final int CLIPPED
public static final int OLDSWAPCHAIN
public VkSwapchainCreateInfoKHR(java.nio.ByteBuffer container)
VkSwapchainCreateInfoKHR instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public long surface()
surface field.public int minImageCount()
minImageCount field.public int imageFormat()
imageFormat field.public int imageColorSpace()
imageColorSpace field.public VkExtent2D imageExtent()
VkExtent2D view of the imageExtent field.public int imageArrayLayers()
imageArrayLayers field.public int imageUsage()
imageUsage field.public int imageSharingMode()
imageSharingMode field.public int queueFamilyIndexCount()
queueFamilyIndexCount field.@Nullable public java.nio.IntBuffer pQueueFamilyIndices()
IntBuffer view of the data pointed to by the pQueueFamilyIndices field.public int preTransform()
preTransform field.public int compositeAlpha()
compositeAlpha field.public int presentMode()
presentMode field.public boolean clipped()
clipped field.public long oldSwapchain()
oldSwapchain field.public VkSwapchainCreateInfoKHR sType(int value)
sType field.public VkSwapchainCreateInfoKHR pNext(long value)
pNext field.public VkSwapchainCreateInfoKHR flags(int value)
flags field.public VkSwapchainCreateInfoKHR surface(long value)
surface field.public VkSwapchainCreateInfoKHR minImageCount(int value)
minImageCount field.public VkSwapchainCreateInfoKHR imageFormat(int value)
imageFormat field.public VkSwapchainCreateInfoKHR imageColorSpace(int value)
imageColorSpace field.public VkSwapchainCreateInfoKHR imageExtent(VkExtent2D value)
VkExtent2D to the imageExtent field.public VkSwapchainCreateInfoKHR imageExtent(java.util.function.Consumer<VkExtent2D> consumer)
imageExtent field to the specified Consumer.public VkSwapchainCreateInfoKHR imageArrayLayers(int value)
imageArrayLayers field.public VkSwapchainCreateInfoKHR imageUsage(int value)
imageUsage field.public VkSwapchainCreateInfoKHR imageSharingMode(int value)
imageSharingMode field.public VkSwapchainCreateInfoKHR pQueueFamilyIndices(@Nullable java.nio.IntBuffer value)
IntBuffer to the pQueueFamilyIndices field.public VkSwapchainCreateInfoKHR preTransform(int value)
preTransform field.public VkSwapchainCreateInfoKHR compositeAlpha(int value)
compositeAlpha field.public VkSwapchainCreateInfoKHR presentMode(int value)
presentMode field.public VkSwapchainCreateInfoKHR clipped(boolean value)
clipped field.public VkSwapchainCreateInfoKHR oldSwapchain(long value)
oldSwapchain field.public VkSwapchainCreateInfoKHR set(int sType, long pNext, int flags, long surface, int minImageCount, int imageFormat, int imageColorSpace, VkExtent2D imageExtent, int imageArrayLayers, int imageUsage, int imageSharingMode, @Nullable java.nio.IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, boolean clipped, long oldSwapchain)
public VkSwapchainCreateInfoKHR set(VkSwapchainCreateInfoKHR src)
src - the source structpublic static VkSwapchainCreateInfoKHR malloc()
VkSwapchainCreateInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkSwapchainCreateInfoKHR calloc()
VkSwapchainCreateInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkSwapchainCreateInfoKHR create()
VkSwapchainCreateInfoKHR instance allocated with BufferUtils.public static VkSwapchainCreateInfoKHR create(long address)
VkSwapchainCreateInfoKHR instance for the specified memory address.@Nullable public static VkSwapchainCreateInfoKHR createSafe(long address)
public static VkSwapchainCreateInfoKHR.Buffer malloc(int capacity)
VkSwapchainCreateInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSwapchainCreateInfoKHR.Buffer calloc(int capacity)
VkSwapchainCreateInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSwapchainCreateInfoKHR.Buffer create(int capacity)
VkSwapchainCreateInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSwapchainCreateInfoKHR.Buffer create(long address, int capacity)
VkSwapchainCreateInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSwapchainCreateInfoKHR.Buffer createSafe(long address, int capacity)
public static VkSwapchainCreateInfoKHR mallocStack()
VkSwapchainCreateInfoKHR instance allocated on the thread-local MemoryStack.public static VkSwapchainCreateInfoKHR callocStack()
VkSwapchainCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSwapchainCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkSwapchainCreateInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSwapchainCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkSwapchainCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSwapchainCreateInfoKHR.Buffer mallocStack(int capacity)
VkSwapchainCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSwapchainCreateInfoKHR.Buffer callocStack(int capacity)
VkSwapchainCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSwapchainCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSwapchainCreateInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSwapchainCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSwapchainCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static long nsurface(long struct)
surface().public static int nminImageCount(long struct)
minImageCount().public static int nimageFormat(long struct)
imageFormat().public static int nimageColorSpace(long struct)
imageColorSpace().public static VkExtent2D nimageExtent(long struct)
imageExtent().public static int nimageArrayLayers(long struct)
imageArrayLayers().public static int nimageUsage(long struct)
imageUsage().public static int nimageSharingMode(long struct)
imageSharingMode().public static int nqueueFamilyIndexCount(long struct)
queueFamilyIndexCount().@Nullable public static java.nio.IntBuffer npQueueFamilyIndices(long struct)
pQueueFamilyIndices.public static int npreTransform(long struct)
preTransform().public static int ncompositeAlpha(long struct)
compositeAlpha().public static int npresentMode(long struct)
presentMode().public static int nclipped(long struct)
clipped().public static long noldSwapchain(long struct)
oldSwapchain().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nsurface(long struct,
long value)
surface.public static void nminImageCount(long struct,
int value)
minImageCount.public static void nimageFormat(long struct,
int value)
imageFormat.public static void nimageColorSpace(long struct,
int value)
imageColorSpace.public static void nimageExtent(long struct,
VkExtent2D value)
imageExtent.public static void nimageArrayLayers(long struct,
int value)
imageArrayLayers.public static void nimageUsage(long struct,
int value)
imageUsage.public static void nimageSharingMode(long struct,
int value)
imageSharingMode.public static void nqueueFamilyIndexCount(long struct,
int value)
queueFamilyIndexCount field of the specified struct.public static void npQueueFamilyIndices(long struct,
@Nullable
java.nio.IntBuffer value)
pQueueFamilyIndices.public static void npreTransform(long struct,
int value)
preTransform.public static void ncompositeAlpha(long struct,
int value)
compositeAlpha.public static void npresentMode(long struct,
int value)
presentMode.public static void nclipped(long struct,
int value)
clipped.public static void noldSwapchain(long struct,
long value)
oldSwapchain.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.