Record Class VkSparseImageMemoryRequirements
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkSparseImageMemoryRequirements
- All Implemented Interfaces:
IPointer
,IVkSparseImageMemoryRequirements
@ValueBasedCandidate
@UnsafeConstructor
public record VkSparseImageMemoryRequirements(@NotNull MemorySegment segment)
extends Record
implements IVkSparseImageMemoryRequirements
Represents a pointer to a VkSparseImageMemoryRequirements
structure in native memory.
Structure
typedef struct VkSparseImageMemoryRequirements {
VkSparseImageFormatProperties
formatProperties
;
uint32_t imageMipTailFirstLod
;
VkDeviceSize imageMipTailSize
;
VkDeviceSize imageMipTailOffset
;
VkDeviceSize imageMipTailStride
;
} VkSparseImageMemoryRequirements;
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 ofVkSparseImageMemoryRequirements
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final ValueLayout.OfLong
static final ValueLayout.OfLong
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 long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkSparseImageMemoryRequirements
(@NotNull MemorySegment segment) Creates an instance of aVkSparseImageMemoryRequirements
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, VkSparseImageMemoryRequirements src) final boolean
Indicates whether some other object is "equal to" this one.@NotNull VkSparseImageFormatProperties
formatProperties
(@NotNull VkSparseImageFormatProperties value) formatProperties
(Consumer<@NotNull VkSparseImageFormatProperties> consumer) final int
hashCode()
Returns a hash code value for this object.int
imageMipTailFirstLod
(int value) long
imageMipTailOffset
(long value) long
imageMipTailSize
(long value) long
imageMipTailStride
(long value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$formatProperties
-
PATH$imageMipTailFirstLod
-
PATH$imageMipTailSize
-
PATH$imageMipTailOffset
-
PATH$imageMipTailStride
-
LAYOUT$formatProperties
-
LAYOUT$imageMipTailFirstLod
-
LAYOUT$imageMipTailSize
-
LAYOUT$imageMipTailOffset
-
LAYOUT$imageMipTailStride
-
SIZE$formatProperties
public static final long SIZE$formatProperties -
SIZE$imageMipTailFirstLod
public static final long SIZE$imageMipTailFirstLod -
SIZE$imageMipTailSize
public static final long SIZE$imageMipTailSize -
SIZE$imageMipTailOffset
public static final long SIZE$imageMipTailOffset -
SIZE$imageMipTailStride
public static final long SIZE$imageMipTailStride -
OFFSET$formatProperties
public static final long OFFSET$formatProperties -
OFFSET$imageMipTailFirstLod
public static final long OFFSET$imageMipTailFirstLod -
OFFSET$imageMipTailSize
public static final long OFFSET$imageMipTailSize -
OFFSET$imageMipTailOffset
public static final long OFFSET$imageMipTailOffset -
OFFSET$imageMipTailStride
public static final long OFFSET$imageMipTailStride
-
-
Constructor Details
-
VkSparseImageMemoryRequirements
Creates an instance of aVkSparseImageMemoryRequirements
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkSparseImageMemoryRequirements clone(Arena arena, VkSparseImageMemoryRequirements src) -
formatProperties
-
formatProperties
public VkSparseImageMemoryRequirements formatProperties(@NotNull @NotNull VkSparseImageFormatProperties value) -
formatProperties
public VkSparseImageMemoryRequirements formatProperties(Consumer<@NotNull VkSparseImageFormatProperties> consumer) -
imageMipTailFirstLod
-
imageMipTailFirstLod
-
imageMipTailSize
-
imageMipTailSize
public VkSparseImageMemoryRequirements imageMipTailSize(@NativeType("VkDeviceSize") @Unsigned long value) -
imageMipTailOffset
-
imageMipTailOffset
public VkSparseImageMemoryRequirements imageMipTailOffset(@NativeType("VkDeviceSize") @Unsigned long value) -
imageMipTailStride
-
imageMipTailStride
public VkSparseImageMemoryRequirements imageMipTailStride(@NativeType("VkDeviceSize") @Unsigned long value) -
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.
-