public void SetRenderTarget(RenderTargetCube renderTarget, CubeMapFace cubeMapFace) { if (renderTarget == null) { SetRenderTargets(null); } else { _tempRenderTargetBinding[0] = new RenderTargetBinding(renderTarget, cubeMapFace); SetRenderTargets(_tempRenderTargetBinding); } }
public RenderTargetBinding(RenderTargetCube renderTarget, CubeMapFace cubeMapFace) { if (renderTarget == null) { throw new ArgumentNullException("renderTarget"); } if (cubeMapFace < CubeMapFace.PositiveX || cubeMapFace > CubeMapFace.NegativeZ) { throw new ArgumentOutOfRangeException("cubeMapFace"); } _renderTarget = renderTarget; _arraySlice = (int)cubeMapFace; }