Method SwitchToFastMemory
SwitchToFastMemory(CommandBuffer, float, FastMemoryFlags, bool)
Switch the render target to fast memory on platform that have it.
Declaration
public void SwitchToFastMemory(CommandBuffer cmd, float residencyFraction = 1, FastMemoryFlags flags = FastMemoryFlags.SpillTop, bool copyContents = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command buffer used for rendering. |
float | residencyFraction | How much of the render target is to be switched into fast memory (between 0 and 1). |
FastMemoryFlags | flags | Flag to determine what parts of the render target is spilled if not fully resident in fast memory. |
bool | copyContents | Whether the content of render target are copied or not when switching to fast memory. |