Class ComputeEffect
Class that contains information on how to build a compute shader program.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core.Effects
Assembly: Fusee.Engine.Core.dll
Syntax
public class ComputeEffect : Effect, IComponent, IDisposable
Constructors
ComputeEffect(String, IEnumerable<IFxParamDeclaration>)
Creates a new instance.
Declaration
public ComputeEffect(string shaderCode, IEnumerable<IFxParamDeclaration> effectParameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | shaderCode | The compute shader code. |
System.Collections.Generic.IEnumerable<IFxParamDeclaration> | effectParameters | The uniform parameters as collections of IFxParamDeclaration. |
Properties
ComputeShaderSrc
The Compute Shader code.
Declaration
public string ComputeShaderSrc { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
System.IDisposable