- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- LAYOUT
- BYTES
- PATH$sType
- PATH$pNext
- PATH$flags
- PATH$surface
- PATH$minImageCount
- PATH$imageFormat
- PATH$imageColorSpace
- PATH$imageExtent
- PATH$imageArrayLayers
- PATH$imageUsage
- PATH$imageSharingMode
- PATH$queueFamilyIndexCount
- PATH$pQueueFamilyIndices
- PATH$preTransform
- PATH$compositeAlpha
- PATH$presentMode
- PATH$clipped
- PATH$oldSwapchain
- LAYOUT$sType
- LAYOUT$pNext
- LAYOUT$flags
- LAYOUT$surface
- LAYOUT$minImageCount
- LAYOUT$imageFormat
- LAYOUT$imageColorSpace
- LAYOUT$imageExtent
- LAYOUT$imageArrayLayers
- LAYOUT$imageUsage
- LAYOUT$imageSharingMode
- LAYOUT$queueFamilyIndexCount
- LAYOUT$pQueueFamilyIndices
- LAYOUT$preTransform
- LAYOUT$compositeAlpha
- LAYOUT$presentMode
- LAYOUT$clipped
- LAYOUT$oldSwapchain
- SIZE$sType
- SIZE$pNext
- SIZE$flags
- SIZE$surface
- SIZE$minImageCount
- SIZE$imageFormat
- SIZE$imageColorSpace
- SIZE$imageExtent
- SIZE$imageArrayLayers
- SIZE$imageUsage
- SIZE$imageSharingMode
- SIZE$queueFamilyIndexCount
- SIZE$pQueueFamilyIndices
- SIZE$preTransform
- SIZE$compositeAlpha
- SIZE$presentMode
- SIZE$clipped
- SIZE$oldSwapchain
- OFFSET$sType
- OFFSET$pNext
- OFFSET$flags
- OFFSET$surface
- OFFSET$minImageCount
- OFFSET$imageFormat
- OFFSET$imageColorSpace
- OFFSET$imageExtent
- OFFSET$imageArrayLayers
- OFFSET$imageUsage
- OFFSET$imageSharingMode
- OFFSET$queueFamilyIndexCount
- OFFSET$pQueueFamilyIndices
- OFFSET$preTransform
- OFFSET$compositeAlpha
- OFFSET$presentMode
- OFFSET$clipped
- OFFSET$oldSwapchain
- Constructor Details
- Method Details
- allocate(Arena)
- allocate(Arena, long)
- clone(Arena, VkSwapchainCreateInfoKHR)
- autoInit()
- sType()
- sType(int)
- pNext()
- pNext(MemorySegment)
- pNext(IPointer)
- flags()
- flags(int)
- surface()
- surface(VkSurfaceKHR)
- minImageCount()
- minImageCount(int)
- imageFormat()
- imageFormat(int)
- imageColorSpace()
- imageColorSpace(int)
- imageExtent()
- imageExtent(VkExtent2D)
- imageExtent(Consumer)
- imageArrayLayers()
- imageArrayLayers(int)
- imageUsage()
- imageUsage(int)
- imageSharingMode()
- imageSharingMode(int)
- queueFamilyIndexCount()
- queueFamilyIndexCount(int)
- pQueueFamilyIndices()
- pQueueFamilyIndices(IntPtr)
- pQueueFamilyIndicesRaw()
- pQueueFamilyIndicesRaw(MemorySegment)
- preTransform()
- preTransform(int)
- compositeAlpha()
- compositeAlpha(int)
- presentMode()
- presentMode(int)
- clipped()
- clipped(int)
- oldSwapchain()
- oldSwapchain(VkSwapchainKHR)
- toString()
- hashCode()
- equals(Object)
- segment()
Record Class VkSwapchainCreateInfoKHR
- All Implemented Interfaces:
IPointer
,IVkSwapchainCreateInfoKHR
Represents a pointer to a VkSwapchainCreateInfoKHR
structure in native memory.
Structure 
typedef struct VkSwapchainCreateInfoKHR {
VkStructureType
sType
;
void const* pNext
; // optional
VkSwapchainCreateFlagsKHR
flags
; // optional
VkSurfaceKHR
surface
;
uint32_t minImageCount
;
VkFormat
imageFormat
;
VkColorSpaceKHR
imageColorSpace
;
VkExtent2D
imageExtent
;
uint32_t imageArrayLayers
;
VkImageUsageFlags
imageUsage
;
VkSharingMode
imageSharingMode
;
uint32_t queueFamilyIndexCount
; // optional
uint32_t const* pQueueFamilyIndices
; // optional
VkSurfaceTransformFlagsKHR
preTransform
;
VkCompositeAlphaFlagsKHR
compositeAlpha
;
VkPresentModeKHR
presentMode
;
VkBool32 clipped
;
VkSwapchainKHR
oldSwapchain
; // optional
} VkSwapchainCreateInfoKHR;
Auto initialization 
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
Contracts 
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkSwapchainCreateInfoKHR
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkSwapchainCreateInfoKHR
(@NotNull MemorySegment segment) Creates an instance of aVkSwapchainCreateInfoKHR
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSwapchainCreateInfoKHR
static VkSwapchainCreateInfoKHR.Ptr
void
autoInit()
int
clipped()
clipped
(int value) static VkSwapchainCreateInfoKHR
clone
(Arena arena, VkSwapchainCreateInfoKHR src) int
compositeAlpha
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) final int
hashCode()
Returns a hash code value for this object.int
imageArrayLayers
(int value) int
imageColorSpace
(int value) @NotNull VkExtent2D
imageExtent
(@NotNull VkExtent2D value) imageExtent
(Consumer<@NotNull VkExtent2D> consumer) int
imageFormat
(int value) int
imageSharingMode
(int value) int
imageUsage
(int value) int
minImageCount
(int value) @Nullable VkSwapchainKHR
oldSwapchain
(@Nullable VkSwapchainKHR value) @NotNull MemorySegment
pNext()
pNext
(@NotNull MemorySegment value) @Nullable IntPtr
Note: the returnedIntPtr
does not have correctIntPtr.size()
property.pQueueFamilyIndices
(@Nullable IntPtr value) @NotNull MemorySegment
void
pQueueFamilyIndicesRaw
(@NotNull MemorySegment value) int
presentMode
(int value) int
preTransform
(int value) int
queueFamilyIndexCount
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) @Nullable VkSurfaceKHR
surface()
surface
(@Nullable VkSurfaceKHR value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$flags
-
PATH$surface
-
PATH$minImageCount
-
PATH$imageFormat
-
PATH$imageColorSpace
-
PATH$imageExtent
-
PATH$imageArrayLayers
-
PATH$imageUsage
-
PATH$imageSharingMode
-
PATH$queueFamilyIndexCount
-
PATH$pQueueFamilyIndices
-
PATH$preTransform
-
PATH$compositeAlpha
-
PATH$presentMode
-
PATH$clipped
-
PATH$oldSwapchain
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$flags
-
LAYOUT$surface
-
LAYOUT$minImageCount
-
LAYOUT$imageFormat
-
LAYOUT$imageColorSpace
-
LAYOUT$imageExtent
-
LAYOUT$imageArrayLayers
-
LAYOUT$imageUsage
-
LAYOUT$imageSharingMode
-
LAYOUT$queueFamilyIndexCount
-
LAYOUT$pQueueFamilyIndices
-
LAYOUT$preTransform
-
LAYOUT$compositeAlpha
-
LAYOUT$presentMode
-
LAYOUT$clipped
-
LAYOUT$oldSwapchain
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$flags
public static final long SIZE$flags -
SIZE$surface
public static final long SIZE$surface -
SIZE$minImageCount
public static final long SIZE$minImageCount -
SIZE$imageFormat
public static final long SIZE$imageFormat -
SIZE$imageColorSpace
public static final long SIZE$imageColorSpace -
SIZE$imageExtent
public static final long SIZE$imageExtent -
SIZE$imageArrayLayers
public static final long SIZE$imageArrayLayers -
SIZE$imageUsage
public static final long SIZE$imageUsage -
SIZE$imageSharingMode
public static final long SIZE$imageSharingMode -
SIZE$queueFamilyIndexCount
public static final long SIZE$queueFamilyIndexCount -
SIZE$pQueueFamilyIndices
public static final long SIZE$pQueueFamilyIndices -
SIZE$preTransform
public static final long SIZE$preTransform -
SIZE$compositeAlpha
public static final long SIZE$compositeAlpha -
SIZE$presentMode
public static final long SIZE$presentMode -
SIZE$clipped
public static final long SIZE$clipped -
SIZE$oldSwapchain
public static final long SIZE$oldSwapchain -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$surface
public static final long OFFSET$surface -
OFFSET$minImageCount
public static final long OFFSET$minImageCount -
OFFSET$imageFormat
public static final long OFFSET$imageFormat -
OFFSET$imageColorSpace
public static final long OFFSET$imageColorSpace -
OFFSET$imageExtent
public static final long OFFSET$imageExtent -
OFFSET$imageArrayLayers
public static final long OFFSET$imageArrayLayers -
OFFSET$imageUsage
public static final long OFFSET$imageUsage -
OFFSET$imageSharingMode
public static final long OFFSET$imageSharingMode -
OFFSET$queueFamilyIndexCount
public static final long OFFSET$queueFamilyIndexCount -
OFFSET$pQueueFamilyIndices
public static final long OFFSET$pQueueFamilyIndices -
OFFSET$preTransform
public static final long OFFSET$preTransform -
OFFSET$compositeAlpha
public static final long OFFSET$compositeAlpha -
OFFSET$presentMode
public static final long OFFSET$presentMode -
OFFSET$clipped
public static final long OFFSET$clipped -
OFFSET$oldSwapchain
public static final long OFFSET$oldSwapchain
-
-
Constructor Details
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkSwapchainCreateInfoKHR pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
flags
-
flags
-
surface
-
surface
-
minImageCount
-
minImageCount
-
imageFormat
-
imageFormat
-
imageColorSpace
-
imageColorSpace
-
imageExtent
-
imageExtent
-
imageExtent
-
imageArrayLayers
-
imageArrayLayers
-
imageUsage
-
imageUsage
-
imageSharingMode
-
imageSharingMode
-
queueFamilyIndexCount
-
queueFamilyIndexCount
-
pQueueFamilyIndices
Note: the returnedIntPtr
does not have correctIntPtr.size()
property. It's up to user to track the size of the buffer, and useIntPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
pQueueFamilyIndices
-
pQueueFamilyIndicesRaw
-
pQueueFamilyIndicesRaw
public void pQueueFamilyIndicesRaw(@Pointer(comment="uint32_t*") @NotNull @NotNull MemorySegment value) -
preTransform
-
preTransform
-
compositeAlpha
-
compositeAlpha
-
presentMode
-
presentMode
-
clipped
-
clipped
-
oldSwapchain
-
oldSwapchain
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-