Class TextureParameter
A VolumeParameter that holds a Texture
value.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class TextureParameter : VolumeParameter<Texture>, ICloneable, IEquatable<VolumeParameter<Texture>>
Constructors
TextureParameter(Texture, bool)
Creates a new TextureParameter instance.
Declaration
public TextureParameter(Texture value, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Texture | value | The initial value to store in the parameter. |
bool | overrideState | The initial override state for the parameter. |
TextureParameter(Texture, TextureDimension, bool)
Creates a new TextureParameter instance.
Declaration
public TextureParameter(Texture value, TextureDimension dimension, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Texture | value | The initial value to store in the parameter. |
TextureDimension | dimension | The accepted dimension of textures. |
bool | overrideState | The initial override state for the parameter. |
Fields
dimension
The accepted dimension of textures.
Declaration
public TextureDimension dimension
Field Value
Type | Description |
---|---|
TextureDimension |
Methods
GetHashCode()
Returns a hash code for the current object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |