Ejemplo n.º 1
0
 public CShaderIOVariable(ShaderIOVariable bVariable)
     : base(bVariable.Interpolation, bVariable.Type, bVariable.Name, bVariable.SpecialParameters)
 {
     semantic = bVariable.GetSemanticDX10();
     if (semantic == "%name")
         semantic = bVariable.Name;
     isUsed = semantic != "%unused";
 }
Ejemplo n.º 2
0
 public CShaderIOVariable(ShaderIOVariable bVariable)
     : base(bVariable.Interpolation, bVariable.Type, bVariable.Name, bVariable.SpecialParameters)
 {
     semantic = bVariable.GetSemanticGL();
     if (semantic == "%name")
         semantic = Name;
     isSystem = semantic.StartsWith("gl_");
     isUsed = semantic != "%unused";
 }
Ejemplo n.º 3
0
        public CShaderIOVariable(ShaderIOVariable bVariable)
            : base(bVariable.Interpolation, bVariable.Type, bVariable.Name, bVariable.SpecialParameters)
        {
            if (bVariable.Interpolation != ShaderIOVariableInterpolation.Default)
                throw new ArgumentException("Interpolation modifiers are not supported by D3D9");

            semanticString = bVariable.GetRequiredSpecialParameter("SDX9");
            if (semanticString == "%name")
                semanticString = Name;
            isUsed = semanticString != "%unused";
            if (isUsed)
                ParseSemantic(semanticString, out usage, out usageIndex);
        }