Method GetScreenSpaceTemporaryRT
GetScreenSpaceTemporaryRT(CommandBuffer, int, int, RenderTextureFormat, RenderTextureReadWrite, FilterMode, int, int)
Grabs a temporary render target with the current display size.
Declaration
public void GetScreenSpaceTemporaryRT(CommandBuffer cmd, int nameID, int depthBufferBits = 0, RenderTextureFormat colorFormat = RenderTextureFormat.Default, RenderTextureReadWrite readWrite = RenderTextureReadWrite.Default, FilterMode filter = FilterMode.Bilinear, int widthOverride = 0, int heightOverride = 0)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to grab a render target from |
int | nameID | The shader property name for this texture |
int | depthBufferBits | The number of bits to use for the depth buffer |
RenderTextureFormat | colorFormat | The render texture format |
RenderTextureReadWrite | readWrite | The color space conversion mode |
FilterMode | filter | The texture filtering mode |
int | widthOverride | Override the display width; use |
int | heightOverride | Override the display height; use |
GetScreenSpaceTemporaryRT(int, RenderTextureFormat, RenderTextureReadWrite, int, int)
Grabs a temporary render target with the current display size.
Declaration
public RenderTexture GetScreenSpaceTemporaryRT(int depthBufferBits = 0, RenderTextureFormat colorFormat = RenderTextureFormat.Default, RenderTextureReadWrite readWrite = RenderTextureReadWrite.Default, int widthOverride = 0, int heightOverride = 0)
Parameters
Type | Name | Description |
---|---|---|
int | depthBufferBits | The number of bits to use for the depth buffer |
RenderTextureFormat | colorFormat | The render texture format |
RenderTextureReadWrite | readWrite | The color space conversion mode |
int | widthOverride | Override the display width; use |
int | heightOverride | Override the display height; use |
Returns
Type | Description |
---|---|
RenderTexture | A temporary render target |