Beispiel #1
0
        private string CSharpToShaderTypeCore(string fullType, bool packed)
        {
            string mapped = packed
                ? MetalKnownTypes.GetPackedName(fullType)
                : MetalKnownTypes.GetMappedName(fullType);

            return(mapped
                   .Replace(".", "_")
                   .Replace("+", "_"));
        }
 protected override string CSharpToShaderTypeCore(string fullType)
 {
     return(MetalKnownTypes.GetMappedName(fullType)
            .Replace(".", "_")
            .Replace("+", "_"));
 }