Example #1
0
        /// <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
        }
Example #2
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static ColorToneEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(ColorToneEffect));
 }
Example #3
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static PinchEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(PinchEffect));
 }
Example #4
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static LightStreakEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(LightStreakEffect));
 }
Example #5
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));
 }
Example #6
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));
 }
Example #7
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));
 }
Example #8
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static MonochromeEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(MonochromeEffect));
 }
Example #9
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static InvertColorEffect()
 {
     pixelShader           = new PixelShader();
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(InvertColorEffect));
 }
Example #10
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static SharpenEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(SharpenEffect));
 }
Example #11
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));
 }
Example #13
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));
 }
Example #14
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));
 }
Example #15
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static EmbossedEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(EmbossedEffect));
 }
Example #16
0
 /// <summary>
 /// Creates an instance of the shader from the included pixel shader.
 /// </summary>
 static GloomEffect()
 {
     pixelShader.UriSource = EffectUriHelper.GetUri(nameof(GloomEffect));
 }