Fusion.Drivers.Graphics.GraphicsDevice.SetPSRWTexture C# (CSharp) 메소드

SetPSRWTexture() 공개 메소드

SetPSRWBuffer & SetPSRWTexture share same registers.
public SetPSRWTexture ( int register, RenderTargetSurface surface ) : void
register int
surface RenderTargetSurface
리턴 void
		public void SetPSRWTexture ( int register, RenderTargetSurface surface ) 
		{ 
			if (register>8) {
				throw new GraphicsException("Could not bind RW texture at register " + register.ToString() + " (max 8)");
			}

			lock (deviceContext) {
				DeviceContext.OutputMerger.SetUnorderedAccessView ( register, surface==null?null:surface.UAV, -1 ); 
			}
		}

Same methods

GraphicsDevice::SetPSRWTexture ( int register, VolumeRWTexture volumeTexture ) : void