Creates a new Effect from the specified compiled shader byte code.
| C# |
public Effect( IRenderSystemProvider renderSystem, byte[] shaderByteCode )
- renderSystem (IRenderSystemProvider)
- Render system used to create the underlying implementation.
- shaderByteCode (array<Byte>[]()[][])
- Compiled byte code
| 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)