Beispiel #1
0
        bool ShouldDeclareSemantics(InstructionToken instruction, RegisterType registerType)
        {
            if (registerType == RegisterType.MiscType)
            {
                return(false);
            }
            if (registerType == RegisterType.Addr)
            {
                return(false);
            }
            if (shader.Type == ShaderType.Vertex)
            {
                return(true);
            }
            if (registerType == RegisterType.Input)
            {
                switch (instruction.GetDeclUsage())
                {
                case DeclUsage.TexCoord:
                case DeclUsage.Color:
                    return(true);

                default:
                    return(false);
                }
            }
            return(true);
        }