- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanPipelineCacheCreateInfo
-
- All Implemented Interfaces:
VulkanPipelineCacheCreateInfoType
public final class VulkanPipelineCacheCreateInfo extends java.lang.Object implements VulkanPipelineCacheCreateInfoType
The type of pipeline cache creation information.- See Also:
- "VkPipelineCacheCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanPipelineCacheCreateInfo.Builder
Builds instances of typeVulkanPipelineCacheCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanPipelineCacheCreateInfo.Builder
builder()
Creates a builder forVulkanPipelineCacheCreateInfo
.static VulkanPipelineCacheCreateInfo
copyOf(VulkanPipelineCacheCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineCacheCreateInfoType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineCacheCreateInfo
that have equal attribute values.java.util.Set<VulkanPipelineCacheCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,initialData
.java.nio.ByteBuffer
initialData()
static VulkanPipelineCacheCreateInfo
of(java.lang.Iterable<VulkanPipelineCacheCreateFlag> flags, java.nio.ByteBuffer initialData)
Construct a new immutableVulkanPipelineCacheCreateInfo
instance.static VulkanPipelineCacheCreateInfo
of(java.util.Set<VulkanPipelineCacheCreateFlag> flags, java.nio.ByteBuffer initialData)
Construct a new immutableVulkanPipelineCacheCreateInfo
instance.java.lang.String
toString()
Prints the immutable valueVulkanPipelineCacheCreateInfo
with attribute values.VulkanPipelineCacheCreateInfo
withFlags(VulkanPipelineCacheCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineCacheCreateInfo
withFlags(java.lang.Iterable<VulkanPipelineCacheCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanPipelineCacheCreateInfo
withInitialData(java.nio.ByteBuffer value)
Copy the current immutable object by setting a value for theinitialData
attribute.
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanPipelineCacheCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanPipelineCacheCreateInfoType
- Returns:
- The creation flags
-
initialData
public java.nio.ByteBuffer initialData()
- Specified by:
initialData
in 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
public final VulkanPipelineCacheCreateInfo withFlags(VulkanPipelineCacheCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withFlags
public final VulkanPipelineCacheCreateInfo withFlags(java.lang.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 of
this
object
-
withInitialData
public final VulkanPipelineCacheCreateInfo withInitialData(java.nio.ByteBuffer value)
Copy the current immutable object by setting a value for theinitialData
attribute. 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 of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanPipelineCacheCreateInfo
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:flags
,initialData
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanPipelineCacheCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanPipelineCacheCreateInfo of(java.util.Set<VulkanPipelineCacheCreateFlag> flags, java.nio.ByteBuffer initialData)
Construct a new immutableVulkanPipelineCacheCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeinitialData
- The value for theinitialData
attribute- Returns:
- An immutable VulkanPipelineCacheCreateInfo instance
-
of
public static VulkanPipelineCacheCreateInfo of(java.lang.Iterable<VulkanPipelineCacheCreateFlag> flags, java.nio.ByteBuffer initialData)
Construct a new immutableVulkanPipelineCacheCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributeinitialData
- The value for theinitialData
attribute- Returns:
- An immutable VulkanPipelineCacheCreateInfo instance
-
copyOf
public static VulkanPipelineCacheCreateInfo copyOf(VulkanPipelineCacheCreateInfoType instance)
Creates an immutable copy of aVulkanPipelineCacheCreateInfoType
value. 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
public static VulkanPipelineCacheCreateInfo.Builder builder()
Creates a builder forVulkanPipelineCacheCreateInfo
.- Returns:
- A new VulkanPipelineCacheCreateInfo builder
-
-