Class VulkanMemoryAllocateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanMemoryAllocateInfo
- All Implemented Interfaces:
VulkanMemoryAllocateInfoType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanMemoryAllocateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanMemoryAllocateInfo.static VulkanMemoryAllocateInfocopyOf(VulkanMemoryAllocateInfoType instance) Creates an immutable copy of aVulkanMemoryAllocateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanMemoryAllocateInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:size,memoryTypeIndex.longsize()toString()Prints the immutable valueVulkanMemoryAllocateInfowith attribute values.final VulkanMemoryAllocateInfoCopy the current immutable object by setting a value for thememoryTypeIndexattribute.final VulkanMemoryAllocateInfowithSize(long value) Copy the current immutable object by setting a value for thesizeattribute.
-
Method Details
-
size
public long size()- Specified by:
sizein interfaceVulkanMemoryAllocateInfoType- Returns:
- The size of the allocation in bytes
-
memoryTypeIndex
- Specified by:
memoryTypeIndexin interfaceVulkanMemoryAllocateInfoType- Returns:
- An index identifying a memory type from the memoryTypes array of the VkPhysicalDeviceMemoryProperties structure
-
withSize
Copy the current immutable object by setting a value for thesizeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for size- Returns:
- A modified copy or the
thisobject
-
withMemoryTypeIndex
Copy the current immutable object by setting a value for thememoryTypeIndexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for memoryTypeIndex- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanMemoryAllocateInfoTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanMemoryAllocateInfo instance
-
builder
Creates a builder forVulkanMemoryAllocateInfo.VulkanMemoryAllocateInfo.builder() .setSize(long) // optional
size.setMemoryTypeIndex(com.io7m.jcoronado.api.VulkanMemoryTypeIndex) // requiredmemoryTypeIndex.build();- Returns:
- A new VulkanMemoryAllocateInfo builder
-