Effect Constructor (GraphicsDevice, Byte )
Creates an instance of this object.
Syntax
'Declaration
Public Sub New ( _
graphicsDevice As GraphicsDevice, _
effectCode As Byte() _
)
public Effect (
GraphicsDevice graphicsDevice,
byte[] effectCode
)
public:
Effect(
GraphicsDevice graphicsDevice,
unsigned char effectCode[]
)
Parameters
- graphicsDevice
Type: GraphicsDevice
The device. - effectCode
Type: Byte
The effect code.
Exceptions
Exception type | Condition |
---|---|
OutOfMemoryException | There is not enough memory to create this resource. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
Effect Class
Effect Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone