예제 #1
0
 /// <summary>
 /// Creates a new instance of <see cref="RenderTargetBinding"/>.
 /// </summary>
 /// <param name="renderTarget">The render target cube.</param>
 /// <param name="cubeFace">The cube face.</param>
 public RenderTargetBinding(RenderTargetCube renderTarget, CubeMapFace cubeFace)
 {
     if (renderTarget == null)
     {
         throw new ArgumentNullException("renderTarget", "The render target to be bound cannot be null.");
     }
     _isTargetCube = true;
     _target       = renderTarget;
     _face         = cubeFace;
 }
예제 #2
0
 /// <summary>
 /// Sets a Cube render target, to the first render target slot
 /// and unbinds all currently bound targets.
 /// Setting this to null unbinds all targets and sets the target to the currently active
 /// swap chain's back buffer.
 /// </summary>
 /// <param name="renderTarget">Render target to bind</param>
 /// <param name="cubeMapFace">Which face of the cube map to bind</param>
 public abstract void SetRenderTarget(RenderTargetCube renderTarget, CubeMapFace cubeMapFace);