Record Class VmaVirtualBlockCreateInfo
- All Implemented Interfaces:
IPointer
,IVmaVirtualBlockCreateInfo
Parameters of created VmaVirtualBlock
object to be passed to vmaCreateVirtualBlock().
Structure
typedef struct VmaVirtualBlockCreateInfo {
VkDeviceSize size
;
VmaVirtualBlockCreateFlags
flags
;
VkAllocationCallbacks
const* pAllocationCallbacks
; // optional
} VmaVirtualBlockCreateInfo;
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.
Member documentation
size()
Total size of the virtual block.Sizes can be expressed in bytes or any units you want as long as you are consistent in using them. For example, if you allocate from some array of structures, 1 can mean single instance of entire structure.
flags()
Use combination ofVmaVirtualBlockCreateFlagBits
.pAllocationCallbacks(club.doki7.vulkan.datatype.IVkAllocationCallbacks)
Custom CPU memory allocation callbacks. Optional.Optional, can be null. When specified, they will be used for all CPU-side memory allocations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfLong
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVmaVirtualBlockCreateInfo
(@NotNull MemorySegment segment) Creates an instance of aVmaVirtualBlockCreateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaVirtualBlockCreateInfo
static VmaVirtualBlockCreateInfo
clone
(Arena arena, VmaVirtualBlockCreateInfo src) 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.@Nullable VkAllocationCallbacks
pAllocationCallbacks
(int assumedCount) pAllocationCallbacks
(@Nullable IVkAllocationCallbacks value) void
@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$size
-
PATH$flags
-
PATH$pAllocationCallbacks
-
LAYOUT$size
-
LAYOUT$flags
-
LAYOUT$pAllocationCallbacks
-
SIZE$size
public static final long SIZE$size -
SIZE$flags
public static final long SIZE$flags -
SIZE$pAllocationCallbacks
public static final long SIZE$pAllocationCallbacks -
OFFSET$size
public static final long OFFSET$size -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$pAllocationCallbacks
public static final long OFFSET$pAllocationCallbacks
-
-
Constructor Details
-
VmaVirtualBlockCreateInfo
Creates an instance of aVmaVirtualBlockCreateInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
size
-
size
-
flags
-
flags
-
pAllocationCallbacks
public VmaVirtualBlockCreateInfo pAllocationCallbacks(@Nullable @Nullable IVkAllocationCallbacks value) -
pAllocationCallbacks
-
pAllocationCallbacks
-
pAllocationCallbacksRaw
-
pAllocationCallbacksRaw
public void pAllocationCallbacksRaw(@Pointer(target=VkAllocationCallbacks.class) MemorySegment 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.
-