Creates a new Effect from the specified compiled shader byte code.
Declaration Syntax
C# |
public Effect( IRenderSystemProvider renderSystem, byte[] shaderByteCode )
Parameters
- renderSystem (IRenderSystemProvider)
- Render system used to create the underlying implementation.
- shaderByteCode (array<Byte>[]()[][])
- Compiled byte code
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the render system is null. |
TeslaException | Thrown if creating the underlying state implementation fails. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)