Пример #1
0
            public TextureStackBase(string _name, Procedural.CreationParameters _creationParams, bool gpuGeneration)
            {
                bool flag = !System.enabled;

                if (flag)
                {
                    throw new InvalidOperationException("Virtual texturing is not enabled in the player settings.");
                }
                this.name                         = _name;
                this.creationParams               = _creationParams;
                this.creationParams.borderSize    = Procedural.TextureStackBase <T> .borderSize;
                this.creationParams.gpuGeneration = (gpuGeneration ? 1 : 0);
                this.creationParams.flags         = 0;
                this.creationParams.Validate();
                this.handle = Procedural.Binding.Create(this.creationParams);
            }
Пример #2
0
 public CPUTextureStack(string _name, Procedural.CreationParameters creationParams) : base(_name, creationParams, false)
 {
 }
Пример #3
0
 private static extern ulong Create_Injected(ref Procedural.CreationParameters p);
Пример #4
0
 internal static ulong Create(Procedural.CreationParameters p)
 {
     return(Procedural.Binding.Create_Injected(ref p));
 }