Record Class VulkanTransientMemory.TransferPair
java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.vulkan.VulkanTransientMemory.TransferPair
- All Implemented Interfaces:
TransientBlockAllocator.Allocator.Block
- Enclosing class:
VulkanTransientMemory
private static record VulkanTransientMemory.TransferPair(VulkanTransientMemory.VulkanAllocation cpu, VulkanTransientMemory.VulkanAllocation gpu)
extends Record
implements TransientBlockAllocator.Allocator.Block
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VulkanTransientMemory.VulkanAllocationThe field for thecpurecord component.private final VulkanTransientMemory.VulkanAllocationThe field for thegpurecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTransferPair(VulkanTransientMemory.VulkanAllocation cpu, VulkanTransientMemory.VulkanAllocation gpu) Creates an instance of aTransferPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncpu()Returns the value of thecpurecord component.final booleanIndicates whether some other object is "equal to" this one.gpu()Returns the value of thegpurecord component.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
cpu
The field for thecpurecord component. -
gpu
The field for thegpurecord component.
-
-
Constructor Details
-
TransferPair
private TransferPair(VulkanTransientMemory.VulkanAllocation cpu, VulkanTransientMemory.VulkanAllocation gpu) Creates an instance of aTransferPairrecord class.- Parameters:
cpu- the value for thecpurecord componentgpu- the value for thegpurecord component
-
-
Method Details
-
suboptimal
public boolean suboptimal()- Specified by:
suboptimalin interfaceTransientBlockAllocator.Allocator.Block
-
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). -
cpu
Returns the value of thecpurecord component.- Returns:
- the value of the
cpurecord component
-
gpu
Returns the value of thegpurecord component.- Returns:
- the value of the
gpurecord component
-