/// <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
        }
Exemple #2
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static PinchEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(PinchEffect));
 }
Exemple #3
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static LightStreakEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(LightStreakEffect));
 }
Exemple #4
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ColorKeyAlphaEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ColorKeyAlphaEffect));
 }
Exemple #5
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static SwirlEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(SwirlEffect));
 }
Exemple #6
0
 /// <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));
 }
Exemple #8
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ContrastAdjustEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ContrastAdjustEffect));
 }
Exemple #9
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static SharpenEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(SharpenEffect));
 }
Exemple #10
0
 /// <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));
 }
Exemple #12
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static RippleEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(RippleEffect));
 }
Exemple #13
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ZoomBlurEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ZoomBlurEffect));
 }
Exemple #14
0
 /// <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));
 }
Exemple #18
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static GrowablePoissonDiskEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(GrowablePoissonDiskEffect));
 }
Exemple #19
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static GloomEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(GloomEffect));
 }