- java.lang.Object
-
- com.io7m.jcoronado.api.VulkanShaderModuleCreateInfo
-
- All Implemented Interfaces:
VulkanShaderModuleCreateInfoType
public final class VulkanShaderModuleCreateInfo extends java.lang.Object implements VulkanShaderModuleCreateInfoType
The type of Vulkan image view creation information.- See Also:
- "VkShaderModuleCreateInfo"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulkanShaderModuleCreateInfo.Builder
Builds instances of typeVulkanShaderModuleCreateInfo
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VulkanShaderModuleCreateInfo.Builder
builder()
Creates a builder forVulkanShaderModuleCreateInfo
.static VulkanShaderModuleCreateInfo
copyOf(VulkanShaderModuleCreateInfoType instance)
Creates an immutable copy of aVulkanShaderModuleCreateInfoType
value.java.nio.ByteBuffer
data()
boolean
equals(java.lang.Object another)
This instance is equal to all instances ofVulkanShaderModuleCreateInfo
that have equal attribute values.java.util.Set<VulkanShaderModuleCreateFlag>
flags()
int
hashCode()
Computes a hash code from attributes:flags
,data
,size
.static VulkanShaderModuleCreateInfo
of(java.lang.Iterable<VulkanShaderModuleCreateFlag> flags, java.nio.ByteBuffer data, long size)
Construct a new immutableVulkanShaderModuleCreateInfo
instance.static VulkanShaderModuleCreateInfo
of(java.util.Set<VulkanShaderModuleCreateFlag> flags, java.nio.ByteBuffer data, long size)
Construct a new immutableVulkanShaderModuleCreateInfo
instance.long
size()
java.lang.String
toString()
Prints the immutable valueVulkanShaderModuleCreateInfo
with attribute values.VulkanShaderModuleCreateInfo
withData(java.nio.ByteBuffer value)
Copy the current immutable object by setting a value for thedata
attribute.VulkanShaderModuleCreateInfo
withFlags(VulkanShaderModuleCreateFlag... elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanShaderModuleCreateInfo
withFlags(java.lang.Iterable<VulkanShaderModuleCreateFlag> elements)
Copy the current immutable object with elements that replace the content offlags
.VulkanShaderModuleCreateInfo
withSize(long value)
Copy the current immutable object by setting a value for thesize
attribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.jcoronado.api.VulkanShaderModuleCreateInfoType
checkPreconditions
-
-
-
-
Method Detail
-
flags
public java.util.Set<VulkanShaderModuleCreateFlag> flags()
- Specified by:
flags
in interfaceVulkanShaderModuleCreateInfoType
- Returns:
- The module creation flags
-
data
public java.nio.ByteBuffer data()
- Specified by:
data
in interfaceVulkanShaderModuleCreateInfoType
- Returns:
- The shader module bytecode
-
size
public long size()
- Specified by:
size
in interfaceVulkanShaderModuleCreateInfoType
- Returns:
- The shader code size
-
withFlags
public final VulkanShaderModuleCreateInfo withFlags(VulkanShaderModuleCreateFlag... 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 VulkanShaderModuleCreateInfo withFlags(java.lang.Iterable<VulkanShaderModuleCreateFlag> 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
-
withData
public final VulkanShaderModuleCreateInfo withData(java.nio.ByteBuffer value)
Copy the current immutable object by setting a value for thedata
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for data- Returns:
- A modified copy of the
this
object
-
withSize
public final VulkanShaderModuleCreateInfo withSize(long value)
Copy the current immutable object by setting a value for thesize
attribute. 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 of the
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofVulkanShaderModuleCreateInfo
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
,data
,size
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueVulkanShaderModuleCreateInfo
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static VulkanShaderModuleCreateInfo of(java.util.Set<VulkanShaderModuleCreateFlag> flags, java.nio.ByteBuffer data, long size)
Construct a new immutableVulkanShaderModuleCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributedata
- The value for thedata
attributesize
- The value for thesize
attribute- Returns:
- An immutable VulkanShaderModuleCreateInfo instance
-
of
public static VulkanShaderModuleCreateInfo of(java.lang.Iterable<VulkanShaderModuleCreateFlag> flags, java.nio.ByteBuffer data, long size)
Construct a new immutableVulkanShaderModuleCreateInfo
instance.- Parameters:
flags
- The value for theflags
attributedata
- The value for thedata
attributesize
- The value for thesize
attribute- Returns:
- An immutable VulkanShaderModuleCreateInfo instance
-
copyOf
public static VulkanShaderModuleCreateInfo copyOf(VulkanShaderModuleCreateInfoType instance)
Creates an immutable copy of aVulkanShaderModuleCreateInfoType
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 VulkanShaderModuleCreateInfo instance
-
builder
public static VulkanShaderModuleCreateInfo.Builder builder()
Creates a builder forVulkanShaderModuleCreateInfo
.- Returns:
- A new VulkanShaderModuleCreateInfo builder
-
-