/// <summary>Sets a value to the structure representing the rendering result storage destination</summary> /// <param name="texture">2D texture (release when NULL)</param> /// <param name="level">Texture mipmap level (from 0 to LevelCount-1)</param> public void Set(Texture2D texture, int level) { this.Buffer = texture; this.Level = level; this.CubeFace = TextureCubeFace.PositiveX; }
/// <summary>Sets a value to the structure representing the rendering result storage destination</summary> /// <param name="texture">Cube texture (release when NULL)</param> /// <param name="level">Texture mipmap level (from 0 to LevelCount-1)</param> /// <param name="cubeFace">Cube texture cube surface</param> public void Set(TextureCube texture, int level, TextureCubeFace cubeFace) { this.Buffer = texture; this.Level = level; this.CubeFace = cubeFace; }
/// <summary>Sets a value to the structure representing the rendering result storage destination</summary> /// <param name="buffer">Depth buffer (release when NULL)</param> public void Set(DepthBuffer buffer) { this.Buffer = buffer; this.Level = 0; this.CubeFace = TextureCubeFace.PositiveX; }
/// <summary>Creates a structure representing the rendering result storage destination</summary> /// <param name="texture">Cube texture (release when NULL)</param> /// <param name="level">Texture mipmap level (from 0 to LevelCount-1)</param> /// <param name="cubeFace">Cube texture cube surface</param> public RenderTarget(TextureCube texture, int level, TextureCubeFace cubeFace) { this.Buffer = texture; this.Level = level; this.CubeFace = cubeFace; }
/// <summary>Creates a structure representing the rendering result storage destination</summary> /// <param name="buffer">Depth buffer (release when NULL)</param> public RenderTarget(DepthBuffer buffer) { this.Buffer = buffer; this.Level = 0; this.CubeFace = TextureCubeFace.PositiveX; }
/// <summary>Obtains the height of the specified mipmap level</summary> /// <param name="level">Mipmap level (0 to LevelCount-1)</param> /// <returns>Height of the specified mipmap level</returns> public int GetMipmapHeight(int level) { return(PixelBuffer.MipmapSize(level, this.level, this.height)); }
/// <summary>Obtains the width of the specified mipmap level</summary> /// <param name="level">Mipmap level (0 to LevelCount-1)</param> /// <returns>Width of the specified mipmap level</returns> public int GetMipmapWidth(int level) { return(PixelBuffer.MipmapSize(level, this.level, this.width)); }