Record Class VkImageBlit
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkImageBlit
- All Implemented Interfaces:
IPointer,IVkImageBlit
@ValueBasedCandidate
@UnsafeConstructor
public record VkImageBlit(@NotNull MemorySegment segment)
extends Record
implements IVkImageBlit
Represents a pointer to a VkImageBlit structure in native memory.
Structure
typedef struct VkImageBlit {
VkImageSubresourceLayers srcSubresource;
VkOffset3D[2] srcOffsets;
VkImageSubresourceLayers dstSubresource;
VkOffset3D[2] dstOffsets;
} VkImageBlit;
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 ofVkImageBlitstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final SequenceLayoutstatic final StructLayoutstatic final SequenceLayoutstatic final StructLayoutstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkImageBlit(@NotNull MemorySegment segment) Creates an instance of aVkImageBlitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageBlitstatic VkImageBlit.Ptrstatic VkImageBlitclone(Arena arena, VkImageBlit src) dstOffsets(VkOffset3D.Ptr value) dstOffsets(@NotNull Consumer<VkOffset3D.Ptr> consumer) dstOffsetsAt(int index) voiddstOffsetsAt(int index, VkOffset3D value) @NotNull MemorySegment@NotNull VkImageSubresourceLayersdstSubresource(@NotNull VkImageSubresourceLayers value) dstSubresource(Consumer<@NotNull VkImageSubresourceLayers> consumer) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.srcOffsets(VkOffset3D.Ptr value) srcOffsets(@NotNull Consumer<VkOffset3D.Ptr> consumer) srcOffsetsAt(int index) voidsrcOffsetsAt(int index, VkOffset3D value) @NotNull MemorySegment@NotNull VkImageSubresourceLayerssrcSubresource(@NotNull VkImageSubresourceLayers value) srcSubresource(Consumer<@NotNull VkImageSubresourceLayers> consumer) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$srcSubresource
-
PATH$srcOffsets
-
PATH$dstSubresource
-
PATH$dstOffsets
-
LAYOUT$srcSubresource
-
LAYOUT$srcOffsets
-
LAYOUT$dstSubresource
-
LAYOUT$dstOffsets
-
SIZE$srcSubresource
public static final long SIZE$srcSubresource -
SIZE$srcOffsets
public static final long SIZE$srcOffsets -
SIZE$dstSubresource
public static final long SIZE$dstSubresource -
SIZE$dstOffsets
public static final long SIZE$dstOffsets -
OFFSET$srcSubresource
public static final long OFFSET$srcSubresource -
OFFSET$srcOffsets
public static final long OFFSET$srcOffsets -
OFFSET$dstSubresource
public static final long OFFSET$dstSubresource -
OFFSET$dstOffsets
public static final long OFFSET$dstOffsets
-
-
Constructor Details
-
VkImageBlit
Creates an instance of aVkImageBlitrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
srcSubresource
-
srcSubresource
-
srcSubresource
-
srcOffsets
-
srcOffsets
-
srcOffsets
-
srcOffsetsAt
-
srcOffsetsAt
-
srcOffsetsRaw
-
dstSubresource
-
dstSubresource
-
dstSubresource
-
dstOffsets
-
dstOffsets
-
dstOffsets
-
dstOffsetsAt
-
dstOffsetsAt
-
dstOffsetsRaw
-
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.
-