@Generated(value={"Immutables.generator","R2DepthAttachmentShareType"}) public final class R2DepthAttachmentShare extends Object implements R2DepthAttachmentShareType
Modifier and Type | Class and Description |
---|---|
static class |
R2DepthAttachmentShare.Builder
Builds instances of type
R2DepthAttachmentShare . |
Modifier and Type | Method and Description |
---|---|
static R2DepthAttachmentShare.Builder |
builder()
Creates a builder for
R2DepthAttachmentShare . |
static R2DepthAttachmentShare |
copyOf(R2DepthAttachmentShareType instance)
Creates an immutable copy of a
R2DepthAttachmentShareType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2DepthAttachmentShare that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
texture . |
static R2DepthAttachmentShare |
of(R2Texture2DUsableType texture)
Construct a new immutable
R2DepthAttachmentShare instance. |
R2Texture2DUsableType |
texture()
The depth texture that will be used as a depth attachment.
|
String |
toString()
Prints the immutable value
R2DepthAttachmentShare with attribute values. |
R2DepthAttachmentShare |
withTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
texture attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
matchDepthAttachment
public R2Texture2DUsableType texture()
texture
in interface R2DepthAttachmentShareType
public final R2DepthAttachmentShare withTexture(R2Texture2DUsableType value)
texture
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for texturethis
objectpublic boolean equals(Object another)
R2DepthAttachmentShare
that have equal attribute values.public int hashCode()
texture
.public String toString()
R2DepthAttachmentShare
with attribute values.public static R2DepthAttachmentShare of(R2Texture2DUsableType texture)
R2DepthAttachmentShare
instance.texture
- The value for the texture
attributepublic static R2DepthAttachmentShare copyOf(R2DepthAttachmentShareType instance)
R2DepthAttachmentShareType
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static R2DepthAttachmentShare.Builder builder()
R2DepthAttachmentShare
.Copyright © 2017 <code@io7m.com> http://io7m.com