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 recordRepresents a pointer to / an array ofVkSwapchainCreateInfoKHRstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkSwapchainCreateInfoKHR(@NotNull MemorySegment segment) Creates an instance of aVkSwapchainCreateInfoKHRrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSwapchainCreateInfoKHRstatic VkSwapchainCreateInfoKHR.PtrvoidautoInit()intclipped()clipped(int value) static VkSwapchainCreateInfoKHRclone(Arena arena, VkSwapchainCreateInfoKHR src) intcompositeAlpha(int value) final booleanIndicates whether some other object is "equal to" this one.intflags()flags(int value) final inthashCode()Returns a hash code value for this object.intimageArrayLayers(int value) intimageColorSpace(int value) @NotNull VkExtent2DimageExtent(@NotNull VkExtent2D value) imageExtent(Consumer<@NotNull VkExtent2D> consumer) intimageFormat(int value) intimageSharingMode(int value) intimageUsage(int value) intminImageCount(int value) @Nullable VkSwapchainKHRoldSwapchain(@Nullable VkSwapchainKHR value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @Nullable IntPtrNote: the returnedIntPtrdoes not have correctIntPtr.size()property.pQueueFamilyIndices(@Nullable IntPtr value) @NotNull MemorySegmentvoidpQueueFamilyIndicesRaw(@NotNull MemorySegment value) intpresentMode(int value) intpreTransform(int value) intqueueFamilyIndexCount(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) @Nullable VkSurfaceKHRsurface()surface(@Nullable VkSurfaceKHR value) final StringtoString()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
-
VkSwapchainCreateInfoKHR
Creates an instance of aVkSwapchainCreateInfoKHRrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
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 returnedIntPtrdoes 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 thesegmentrecord component.
-