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); }
public CPUTextureStack(string _name, Procedural.CreationParameters creationParams) : base(_name, creationParams, false) { }
private static extern ulong Create_Injected(ref Procedural.CreationParameters p);
internal static ulong Create(Procedural.CreationParameters p) { return(Procedural.Binding.Create_Injected(ref p)); }