Interface IActiveUniform
Interface for handling uniforms that are determined "active" after the shader is compiled.
Namespace: Fusee.Engine.Common
Assembly: Fusee.Engine.Common.dll
Syntax
public interface IActiveUniform
Properties
Handle
The Handle to be used when setting or getting the parameter value from the shader.
Declaration
IUniformHandle Handle { get; set; }
Property Value
Type | Description |
---|---|
IUniformHandle |
Hash
The hash code of this ShaderParamInfo.
Declaration
int Hash { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
HasValueChanged
If the value has changed the shader uniform must be changed too.
Declaration
bool HasValueChanged { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsGlobal
Determines if this is a global uniform.
Declaration
bool IsGlobal { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Contains the name of the shader parameter.
Declaration
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
int Size { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
UniformValueGetter
Method that nows how to get this uniforms value.
Declaration
GetUniformValue UniformValueGetter { get; set; }
Property Value
Type | Description |
---|---|
GetUniformValue |