Пример #1
0
        private string CSharpToShaderTypeCore(string fullType, bool packed)
        {
            string mapped = packed
                ? MetalKnownTypes.GetPackedName(fullType)
                : MetalKnownTypes.GetMappedName(fullType);

            return(mapped
                   .Replace(".", "_")
                   .Replace("+", "_"));
        }
Пример #2
0
 protected override string CSharpToShaderTypeCore(string fullType)
 {
     return(MetalKnownTypes.GetMappedName(fullType)
            .Replace(".", "_")
            .Replace("+", "_"));
 }