Permalink
Browse files

Removed deprecated glsl functionality

  • Loading branch information...
WolfgangSt committed Sep 1, 2011
1 parent bb0b70c commit e2c6f1c9c676b3e74d01286bd124418c8e5efb1a
@@ -150,24 +150,6 @@ public abstract partial class ShaderDefinition
#endregion
- #region vec4 ftransform()
-
- /// <summary>
- /// compatibility profile only
- /// For vertex shaders only. This function will ensure that the incoming vertex value
- /// will be transformed in a way that produces exactly the same result as would be
- /// produced by OpenGL’s fixed functionality transform. It is intended to be used to
- /// compute gl_Position, e.g.,
- /// gl_Position = ftransform()
- /// This function should be used, for example, when an application is rendering the same
- /// geometry in separate passes, and one pass uses the fixed functionality path to
- /// render and another pass uses programmable shaders.
- /// </summary>
- [Obsolete("Not supported by SL#; Deprecated as by GL 3.0; Not supported by HLSL;", true)]
- protected static vec4 ftransform() { throw _invalidAccess; }
-
- #endregion
-
#region genType FaceForward (genType N, genType I, genType Nref)
/// <summary>If Dot(Nref, I) &lt; 0 return N, otherwise return –N.</summary>
@@ -8,28 +8,6 @@ namespace IIS.SLSharp.Shaders
public abstract partial class ShaderDefinition
{
- #region Deprecated 120 functions
-
- [Obsolete("Deprecated with v130", true)]
- protected static vec4 texture1D(sampler1D sampler, float s)
- {
- throw _invalidAccess;
- }
-
- [Obsolete("Deprecated with v130", true)]
- protected static vec4 texture2D(sampler2D sampler, vec2 st)
- {
- throw _invalidAccess;
- }
-
- [Obsolete("Deprecated with v130", true)]
- protected static vec4 texture2D(sampler2D sampler, vec2 st, float bias)
- {
- throw _invalidAccess;
- }
-
- #endregion
-
#region textureSize
#region int textureSize (gsampler1D sampler, int lod)
@@ -14,24 +14,6 @@ public abstract partial class ShaderDefinition
protected vec4 gl_Position;
- [Obsolete("Deprecated with v130", true)]
- protected vec4 gl_Vertex;
-
- [Obsolete("Deprecated with v130", true)]
- protected vec4 gl_FragColor;
-
- [Obsolete("Deprecated with v130", true)]
- protected mat4 gl_ModelViewProjectionMatrix;
-
- [Obsolete("Deprecated with v130", true)]
- protected mat3 gl_NormalMatrix;
-
- [Obsolete("Deprecated with v130", true)]
- protected vec4[] gl_TexCoord;
-
- [Obsolete("Deprecated with v130", true)]
- protected vec4 gl_Color;
-
// ReSharper restore InconsistentNaming
// ReSharper restore UnusedParameter.Local
}

0 comments on commit e2c6f1c

Please sign in to comment.