Example #1
0
        protected string MapDataTypeIfValid(AstType node, Type type)
        {
            if (type != null && ShaderMapping.Types.ContainsKey(type))
            {
                return(ShaderMapping.Types[type]);
            }

            var instr = GetInstructionFromStmt(node.GetParent <Statement>());

            DebugLog.Error("Type '" + type + "' is not supported", instr);

            return(null);
        }