6 using SiliconStudio.Paradox.Effects;
8 namespace SiliconStudio.
Paradox.Graphics
24 if (effect == null)
throw new ArgumentNullException(
"effect");
27 if (parameters != null)
29 effect.Apply(device, parameters,
false);
33 effect.Apply(device,
false);
40 effect.UnbindResources(device);
Extensions for the GraphicsDevice
Performs primitive-based rendering, creates resources, handles system-level variables, adjusts gamma ramp levels, and creates shaders. See The+GraphicsDevice+class to learn more about the class.
static void DrawQuad(this GraphicsDevice device, Effect effect, ParameterCollection parameters=null)
Draws a fullscreen quad with the specified effect and parameters.
A container to handle a hierarchical collection of effect variables.