internal PlatformTexture2D(PlatformRenderContext context, Format format, int width, int height, bool mipmaps, TextureParams textureParams) { Context = context; Format = format; Width = width; Height = height; LevelCount = mipmaps ? GraphicsUtility.CalculateMipLevelCount(width, height) : 1; Initialize(textureParams); }
protected PlatformTexture2D(PlatformRenderContext context, Format format, int width, int height, bool mipmaps, bool renderTarget, TextureParams textureParams) { this.context = context; this.format = format; this.width = width; this.height = height; this.levelCount = mipmaps ? GraphicsUtility.CalculateMipLevelCount(width, height) : 1; Create(renderTarget); SetTextureParams(textureParams); }