Struct ActiveUniform
Internally used shader parameters.
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fusee.Engine.Imp.SharedAll
Assembly: Fusee.Engine.Imp.Graphics.Desktop.dll
Syntax
public struct ActiveUniform : IActiveUniform
Properties
Handle
The Handle to be used when setting or getting the parameter value from the shader.
Declaration
public IUniformHandle Handle { readonly get; set; }
Property Value
Type | Description |
---|---|
IUniformHandle |
Hash
The hash code of this ShaderParamInfo.
Declaration
public int Hash { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
HasValueChanged
If the value has changed the shader uniform must be changed too.
Declaration
public bool HasValueChanged { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsGlobal
Determines whether this uniform is global or limited to one shader.
Declaration
public bool IsGlobal { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Contains the name of the shader parameter.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Size
Contains the number of items stored under this parameter name. Only differs from 1 if the parameter is a uniform array. If Size > 1 this value represents the number of array entries.
Declaration
public int Size { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
UniformValueGetter
The method that returns the uniform value.
Declaration
public GetUniformValue UniformValueGetter { readonly get; set; }
Property Value
Type | Description |
---|---|
GetUniformValue |