Record Class VulkanTransientMemory.VulkanAllocation
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.VulkanTransientMemory.VulkanAllocation
- Enclosing class:
VulkanTransientMemory
private static record VulkanTransientMemory.VulkanAllocation(long vkBuffer, long vmaAllocation, long hostPtr, long size)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thehostPtrrecord component.private final longThe field for thesizerecord component.private final longThe field for thevkBufferrecord component.private final longThe field for thevmaAllocationrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVulkanAllocation(long vkBuffer, long vmaAllocation, long hostPtr, long size) Creates an instance of aVulkanAllocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longhostPtr()Returns the value of thehostPtrrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.longvkBuffer()Returns the value of thevkBufferrecord component.longReturns the value of thevmaAllocationrecord component.
-
Field Details
-
vkBuffer
private final long vkBufferThe field for thevkBufferrecord component. -
vmaAllocation
private final long vmaAllocationThe field for thevmaAllocationrecord component. -
hostPtr
private final long hostPtrThe field for thehostPtrrecord component. -
size
private final long sizeThe field for thesizerecord component.
-
-
Constructor Details
-
VulkanAllocation
private VulkanAllocation(long vkBuffer, long vmaAllocation, long hostPtr, long size) Creates an instance of aVulkanAllocationrecord class.- Parameters:
vkBuffer- the value for thevkBufferrecord componentvmaAllocation- the value for thevmaAllocationrecord componenthostPtr- the value for thehostPtrrecord componentsize- the value for thesizerecord component
-
-
Method Details
-
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 with thecomparemethod from their corresponding wrapper classes. -
vkBuffer
public long vkBuffer()Returns the value of thevkBufferrecord component.- Returns:
- the value of the
vkBufferrecord component
-
vmaAllocation
public long vmaAllocation()Returns the value of thevmaAllocationrecord component.- Returns:
- the value of the
vmaAllocationrecord component
-
hostPtr
public long hostPtr()Returns the value of thehostPtrrecord component.- Returns:
- the value of the
hostPtrrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-