示例#1
0
        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);
        }
示例#2
0
 public Shader(IntPtr native)
 {
     this.native = native;
     name        = ShaderNative.ShaderGetName(native);
 }