Record Class VkSubresourceLayout
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkSubresourceLayout
- All Implemented Interfaces:
IPointer
,IVkSubresourceLayout
@ValueBasedCandidate
@UnsafeConstructor
public record VkSubresourceLayout(@NotNull MemorySegment segment)
extends Record
implements IVkSubresourceLayout
Represents a pointer to a VkSubresourceLayout
structure in native memory.
Structure
typedef struct VkSubresourceLayout {
VkDeviceSize offset
;
VkDeviceSize size
;
VkDeviceSize rowPitch
;
VkDeviceSize arrayPitch
;
VkDeviceSize depthPitch
;
} VkSubresourceLayout;
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 ofVkSubresourceLayout
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfLong
static final ValueLayout.OfLong
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
ConstructorsConstructorDescriptionVkSubresourceLayout
(@NotNull MemorySegment segment) Creates an instance of aVkSubresourceLayout
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSubresourceLayout
static VkSubresourceLayout.Ptr
long
arrayPitch
(long value) static VkSubresourceLayout
clone
(Arena arena, VkSubresourceLayout src) long
depthPitch
(long value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
offset()
offset
(long value) long
rowPitch()
rowPitch
(long value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.long
size()
size
(long value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$offset
-
PATH$size
-
PATH$rowPitch
-
PATH$arrayPitch
-
PATH$depthPitch
-
LAYOUT$offset
-
LAYOUT$size
-
LAYOUT$rowPitch
-
LAYOUT$arrayPitch
-
LAYOUT$depthPitch
-
SIZE$offset
public static final long SIZE$offset -
SIZE$size
public static final long SIZE$size -
SIZE$rowPitch
public static final long SIZE$rowPitch -
SIZE$arrayPitch
public static final long SIZE$arrayPitch -
SIZE$depthPitch
public static final long SIZE$depthPitch -
OFFSET$offset
public static final long OFFSET$offset -
OFFSET$size
public static final long OFFSET$size -
OFFSET$rowPitch
public static final long OFFSET$rowPitch -
OFFSET$arrayPitch
public static final long OFFSET$arrayPitch -
OFFSET$depthPitch
public static final long OFFSET$depthPitch
-
-
Constructor Details
-
VkSubresourceLayout
Creates an instance of aVkSubresourceLayout
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
offset
-
offset
-
size
-
size
-
rowPitch
-
rowPitch
-
arrayPitch
-
arrayPitch
-
depthPitch
-
depthPitch
-
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.
-