/// <summary> /// Creates a PixelShader by loading the bytecode. /// </summary> static ToonShaderEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ToonShaderEffect)); // Just saying hardware only for now since our drop of sw doesn't have sin/cos in // it, and thus we can't validate against that. #if !SILVERLIGHT // TODO: pixelShader.ShaderRenderMode = ShaderRenderMode.HardwareOnly; #endif }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static PinchEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(PinchEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static LightStreakEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(LightStreakEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static ColorKeyAlphaEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ColorKeyAlphaEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static SwirlEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(SwirlEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static MagnifyEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(MagnifyEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static EmbossedEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(EmbossedEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static ContrastAdjustEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ContrastAdjustEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static SharpenEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(SharpenEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static ToneMappingEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ToneMappingEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static BrightExtractEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(BrightExtractEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static RippleEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(RippleEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static ZoomBlurEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ZoomBlurEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static ColorToneEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ColorToneEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static InvertColorEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(InvertColorEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static DirectionalBlurEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(DirectionalBlurEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static MonochromeEffect() { pixelShader = new PixelShader(); pixelShader.UriSource = EffectUriHelper.GetUri(nameof(MonochromeEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static GrowablePoissonDiskEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(GrowablePoissonDiskEffect)); }
/// <summary> /// Creates an instance of the shader from the included pixel shader. /// </summary> static GloomEffect() { pixelShader.UriSource = EffectUriHelper.GetUri(nameof(GloomEffect)); }