Package org.lwjgl.vulkan
Class VkSwapchainCreateInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkSwapchainCreateInfoKHR
extends Struct<VkSwapchainCreateInfoKHR>
implements NativeResource
struct VkSwapchainCreateInfoKHR {
VkStructureType sType;
void const * pNext;
VkSwapchainCreateFlagsKHR flags;
VkSurfaceKHR surface;
uint32_t minImageCount;
VkFormat imageFormat;
VkColorSpaceKHR imageColorSpace;
{@link VkExtent2D VkExtent2D} imageExtent;
uint32_t imageArrayLayers;
VkImageUsageFlags imageUsage;
VkSharingMode imageSharingMode;
uint32_t queueFamilyIndexCount;
uint32_t const * pQueueFamilyIndices;
VkSurfaceTransformFlagBitsKHR preTransform;
VkCompositeAlphaFlagBitsKHR compositeAlpha;
VkPresentModeKHR presentMode;
VkBool32 clipped;
VkSwapchainKHR oldSwapchain;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkSwapchainCreateInfoKHR(ByteBuffer container) Creates aVkSwapchainCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSwapchainCreateInfoKHRcalloc()Returns a newVkSwapchainCreateInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSwapchainCreateInfoKHRcalloc(MemoryStack stack) Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSwapchainCreateInfoKHRDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VkSwapchainCreateInfoKHRcallocStack(MemoryStack stack) Deprecated.booleanclipped()clipped(boolean value) Sets the specified value to theclippedfield.intcompositeAlpha(int value) Sets the specified value to thecompositeAlphafield.static VkSwapchainCreateInfoKHRcreate()Returns a newVkSwapchainCreateInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkSwapchainCreateInfoKHRcreate(long address) Returns a newVkSwapchainCreateInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkSwapchainCreateInfoKHR.Bufferinstance at the specified memory.static @Nullable VkSwapchainCreateInfoKHRcreateSafe(long address) static @Nullable VkSwapchainCreateInfoKHR.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intimageArrayLayers(int value) Sets the specified value to theimageArrayLayersfield.intimageColorSpace(int value) Sets the specified value to theimageColorSpacefield.imageExtent(Consumer<VkExtent2D> consumer) Passes theimageExtentfield to the specifiedConsumer.imageExtent(VkExtent2D value) Copies the specifiedVkExtent2Dto theimageExtentfield.intimageFormat(int value) Sets the specified value to theimageFormatfield.intimageSharingMode(int value) Sets the specified value to theimageSharingModefield.intimageUsage(int value) Sets the specified value to theimageUsagefield.static VkSwapchainCreateInfoKHRmalloc()Returns a newVkSwapchainCreateInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSwapchainCreateInfoKHRmalloc(MemoryStack stack) Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.static VkSwapchainCreateInfoKHRDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VkSwapchainCreateInfoKHRmallocStack(MemoryStack stack) Deprecated.intminImageCount(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 @Nullable IntBuffernpQueueFamilyIndices(long struct) Unsafe version ofpQueueFamilyIndices.static voidnpQueueFamilyIndices(long struct, @Nullable 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(long value) Sets the specified value to theoldSwapchainfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkDeviceGroupSwapchainCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkImageCompressionControlEXTvalue to thepNextchain.pNext(VkImageFormatListCreateInfo value) Prepends the specifiedVkImageFormatListCreateInfovalue to thepNextchain.Prepends the specifiedVkImageFormatListCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkSurfaceFullScreenExclusiveInfoEXTvalue to thepNextchain.Prepends the specifiedVkSurfaceFullScreenExclusiveWin32InfoEXTvalue to thepNextchain.Prepends the specifiedVkSwapchainCounterCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkSwapchainDisplayNativeHdrCreateInfoAMDvalue to thepNextchain.Prepends the specifiedVkSwapchainLatencyCreateInfoNVvalue to thepNextchain.Prepends the specifiedVkSwapchainPresentBarrierCreateInfoNVvalue to thepNextchain.Prepends the specifiedVkSwapchainPresentModesCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkSwapchainPresentScalingCreateInfoEXTvalue to thepNextchain.@Nullable IntBufferpQueueFamilyIndices(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepQueueFamilyIndicesfield.intpresentMode(int value) Sets the specified value to thepresentModefield.intpreTransform(int value) Sets the specified value to thepreTransformfield.intqueueFamilyIndexCount(int value) Sets the specified value to thequeueFamilyIndexCountfield.set(int sType, long pNext, int flags, long surface, int minImageCount, int imageFormat, int imageColorSpace, VkExtent2D imageExtent, int imageArrayLayers, int imageUsage, int imageSharingMode, int queueFamilyIndexCount, @Nullable IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, boolean clipped, long oldSwapchain) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHRvalue to thesTypefield.longsurface()surface(long value) Sets the specified value to thesurfacefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SURFACE
public static final int SURFACEThe struct member offsets. -
MINIMAGECOUNT
public static final int MINIMAGECOUNTThe struct member offsets. -
IMAGEFORMAT
public static final int IMAGEFORMATThe struct member offsets. -
IMAGECOLORSPACE
public static final int IMAGECOLORSPACEThe struct member offsets. -
IMAGEEXTENT
public static final int IMAGEEXTENTThe struct member offsets. -
IMAGEARRAYLAYERS
public static final int IMAGEARRAYLAYERSThe struct member offsets. -
IMAGEUSAGE
public static final int IMAGEUSAGEThe struct member offsets. -
IMAGESHARINGMODE
public static final int IMAGESHARINGMODEThe struct member offsets. -
QUEUEFAMILYINDEXCOUNT
public static final int QUEUEFAMILYINDEXCOUNTThe struct member offsets. -
PQUEUEFAMILYINDICES
public static final int PQUEUEFAMILYINDICESThe struct member offsets. -
PRETRANSFORM
public static final int PRETRANSFORMThe struct member offsets. -
COMPOSITEALPHA
public static final int COMPOSITEALPHAThe struct member offsets. -
PRESENTMODE
public static final int PRESENTMODEThe struct member offsets. -
CLIPPED
public static final int CLIPPEDThe struct member offsets. -
OLDSWAPCHAIN
public static final int OLDSWAPCHAINThe struct member offsets.
-
-
Constructor Details
-
VkSwapchainCreateInfoKHR
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkSwapchainCreateInfoKHR>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
surface
public long surface()- Returns:
- the value of the
surfacefield.
-
minImageCount
public int minImageCount()- Returns:
- the value of the
minImageCountfield.
-
imageFormat
public int imageFormat()- Returns:
- the value of the
imageFormatfield.
-
imageColorSpace
public int imageColorSpace()- Returns:
- the value of the
imageColorSpacefield.
-
imageExtent
- Returns:
- a
VkExtent2Dview of theimageExtentfield.
-
imageArrayLayers
public int imageArrayLayers()- Returns:
- the value of the
imageArrayLayersfield.
-
imageUsage
public int imageUsage()- Returns:
- the value of the
imageUsagefield.
-
imageSharingMode
public int imageSharingMode()- Returns:
- the value of the
imageSharingModefield.
-
queueFamilyIndexCount
public int queueFamilyIndexCount()- Returns:
- the value of the
queueFamilyIndexCountfield.
-
pQueueFamilyIndices
- Returns:
- a
IntBufferview of the data pointed to by thepQueueFamilyIndicesfield.
-
preTransform
public int preTransform()- Returns:
- the value of the
preTransformfield.
-
compositeAlpha
public int compositeAlpha()- Returns:
- the value of the
compositeAlphafield.
-
presentMode
public int presentMode()- Returns:
- the value of the
presentModefield.
-
clipped
public boolean clipped()- Returns:
- the value of the
clippedfield.
-
oldSwapchain
public long oldSwapchain()- Returns:
- the value of the
oldSwapchainfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHRvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkDeviceGroupSwapchainCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkImageCompressionControlEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkImageFormatListCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkImageFormatListCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkSurfaceFullScreenExclusiveInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSurfaceFullScreenExclusiveWin32InfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSwapchainCounterCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSwapchainDisplayNativeHdrCreateInfoAMDvalue to thepNextchain. -
pNext
Prepends the specifiedVkSwapchainLatencyCreateInfoNVvalue to thepNextchain. -
pNext
Prepends the specifiedVkSwapchainPresentBarrierCreateInfoNVvalue to thepNextchain. -
pNext
Prepends the specifiedVkSwapchainPresentModesCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkSwapchainPresentScalingCreateInfoEXTvalue to thepNextchain. -
flags
Sets the specified value to theflagsfield. -
surface
Sets the specified value to thesurfacefield. -
minImageCount
Sets the specified value to theminImageCountfield. -
imageFormat
Sets the specified value to theimageFormatfield. -
imageColorSpace
Sets the specified value to theimageColorSpacefield. -
imageExtent
Copies the specifiedVkExtent2Dto theimageExtentfield. -
imageExtent
Passes theimageExtentfield to the specifiedConsumer. -
imageArrayLayers
Sets the specified value to theimageArrayLayersfield. -
imageUsage
Sets the specified value to theimageUsagefield. -
imageSharingMode
Sets the specified value to theimageSharingModefield. -
queueFamilyIndexCount
Sets the specified value to thequeueFamilyIndexCountfield. -
pQueueFamilyIndices
Sets the address of the specifiedIntBufferto thepQueueFamilyIndicesfield. -
preTransform
Sets the specified value to thepreTransformfield. -
compositeAlpha
Sets the specified value to thecompositeAlphafield. -
presentMode
Sets the specified value to thepresentModefield. -
clipped
Sets the specified value to theclippedfield. -
oldSwapchain
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, int queueFamilyIndexCount, @Nullable IntBuffer pQueueFamilyIndices, int preTransform, int compositeAlpha, int presentMode, boolean clipped, long oldSwapchain) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSwapchainCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSwapchainCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSwapchainCreateInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkSwapchainCreateInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSwapchainCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkSwapchainCreateInfoKHR.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkSwapchainCreateInfoKHR.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSwapchainCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSwapchainCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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
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
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
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
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.
-