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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfLongstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVmaVirtualBlockCreateInfo(@NotNull MemorySegment segment) Creates an instance of aVmaVirtualBlockCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaVirtualBlockCreateInfostatic VmaVirtualBlockCreateInfoclone(Arena arena, VmaVirtualBlockCreateInfo src) 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.@Nullable VkAllocationCallbackspAllocationCallbacks(int assumedCount) pAllocationCallbacks(@Nullable IVkAllocationCallbacks value) @NotNull MemorySegmentvoidpAllocationCallbacksRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.longsize()size(long value) final StringtoString()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 aVmaVirtualBlockCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
size
-
size
-
flags
-
flags
-
pAllocationCallbacks
public VmaVirtualBlockCreateInfo pAllocationCallbacks(@Nullable @Nullable IVkAllocationCallbacks value) -
pAllocationCallbacks
-
pAllocationCallbacks
-
pAllocationCallbacksRaw
@Pointer(target=VkAllocationCallbacks.class) @NotNull public @NotNull MemorySegment pAllocationCallbacksRaw() -
pAllocationCallbacksRaw
public void pAllocationCallbacksRaw(@Pointer(target=VkAllocationCallbacks.class) @NotNull @NotNull 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 thesegmentrecord component.
-