示例#1
0
 /// <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;
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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;
 }
示例#4
0
 /// <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;
 }
示例#5
0
 /// <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;
 }
示例#6
0
 /// <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));
 }
示例#7
0
 /// <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));
 }