namespace Ghost.DSL; public struct ShaderPropertyInfo { public string shaderName; public string code; public uint size; } public static class ShaderPropertiesRegistry { private static readonly Dictionary s_nameToCode = new Dictionary(StringComparer.Ordinal); public static void Register(string name, string code, uint size) { s_nameToCode[name] = new ShaderPropertyInfo { shaderName = name, code = code, size = size }; } public static bool TryGetInfo(string name, out ShaderPropertyInfo info) { return s_nameToCode.TryGetValue(name, out info); } }