Class VulkanPipelineCacheCreateInfo
java.lang.Object
com.io7m.jcoronado.api.VulkanPipelineCacheCreateInfo
- All Implemented Interfaces:
VulkanPipelineCacheCreateInfoType
public final class VulkanPipelineCacheCreateInfo
extends Object
implements VulkanPipelineCacheCreateInfoType
The type of pipeline cache creation information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPipelineCacheCreateInfo. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPipelineCacheCreateInfo.copyOf(VulkanPipelineCacheCreateInfoType instance) Creates an immutable copy of aVulkanPipelineCacheCreateInfoTypevalue.booleanThis instance is equal to all instances ofVulkanPipelineCacheCreateInfothat have equal attribute values.flags()inthashCode()Computes a hash code from attributes:flags,initialData.toString()Prints the immutable valueVulkanPipelineCacheCreateInfowith attribute values.withFlags(VulkanPipelineCacheCreateFlag... elements) Copy the current immutable object with elements that replace the content offlags.withFlags(Iterable<VulkanPipelineCacheCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags.withInitialData(ByteBuffer value) Copy the current immutable object by setting a value for theinitialDataattribute.
-
Method Details
-
flags
- Specified by:
flagsin interfaceVulkanPipelineCacheCreateInfoType- Returns:
- The creation flags
-
initialData
- Specified by:
initialDatain interfaceVulkanPipelineCacheCreateInfoType- Returns:
- A pointer to previously retrieved pipeline cache data. If the pipeline cache data is incompatible with the device, the pipeline cache will be initially empty.
-
withFlags
Copy the current immutable object with elements that replace the content offlags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFlags
public final VulkanPipelineCacheCreateInfo withFlags(Iterable<VulkanPipelineCacheCreateFlag> elements) Copy the current immutable object with elements that replace the content offlags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of flags elements to set- Returns:
- A modified copy or
thisif not changed
-
withInitialData
Copy the current immutable object by setting a value for theinitialDataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for initialData- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanPipelineCacheCreateInfoTypevalue. 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 VulkanPipelineCacheCreateInfo instance
-
builder
Creates a builder forVulkanPipelineCacheCreateInfo.VulkanPipelineCacheCreateInfo.builder() .addFlags|addAllFlags(com.io7m.jcoronado.api.VulkanPipelineCacheCreateFlag) //
flagselements .setInitialData(java.nio.ByteBuffer) // requiredinitialData.build();- Returns:
- A new VulkanPipelineCacheCreateInfo builder
-