public static Shader Find(string name) { var native = ShaderNative.ShaderCreate(name); if (native == IntPtr.Zero) { return(null); } Shader shader = new Shader(native); shader.name = name; return(shader); }
public Shader(IntPtr native) { this.native = native; name = ShaderNative.ShaderGetName(native); }