Method BlitFullscreenTriangle
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, bool, Rect?, bool)
Does a copy of source to destination using a fullscreen triangle.
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, bool clear = false, Rect? viewport = null, bool preserveDepth = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier | destination | The destination render target |
bool | clear | Should the destination target be cleared? |
Rect? | viewport | An optional viewport to consider for the blit |
bool | preserveDepth | Should the depth buffer be preserved? |
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, PropertySheet, int, RenderBufferLoadAction, Rect?, bool)
Blits a fullscreen triangle using a given material.
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, PropertySheet propertySheet, int pass, RenderBufferLoadAction loadAction, Rect? viewport = null, bool preserveDepth = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier | destination | The destination render target |
PropertySheet | propertySheet | The property sheet to use |
int | pass | The pass from the material to use |
RenderBufferLoadAction | loadAction | The load action for this blit |
Rect? | viewport | An optional viewport to consider for the blit |
bool | preserveDepth | Should the depth buffer be preserved? |
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, PropertySheet, int, bool, Rect?, bool)
Blits a fullscreen triangle using a given material.
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, PropertySheet propertySheet, int pass, bool clear = false, Rect? viewport = null, bool preserveDepth = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier | destination | The destination render target |
PropertySheet | propertySheet | The property sheet to use |
int | pass | The pass from the material to use |
bool | clear | Should the destination target be cleared? |
Rect? | viewport | An optional viewport to consider for the blit |
bool | preserveDepth | Should the depth buffer be preserved? |
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, RenderTargetIdentifier, PropertySheet, int, bool, Rect?)
Blits a fullscreen triangle using a given material.
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, RenderTargetIdentifier depth, PropertySheet propertySheet, int pass, bool clear = false, Rect? viewport = null)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier | destination | The destination render target |
RenderTargetIdentifier | depth | The depth render target |
PropertySheet | propertySheet | The property sheet to use |
int | pass | The pass from the material to use |
bool | clear | Should the destination target be cleared? |
Rect? | viewport | An optional viewport to consider for the blit |
BlitFullscreenTriangle(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier[], RenderTargetIdentifier, PropertySheet, int, bool, Rect?)
Blits a fullscreen triangle using a given material.
Declaration
public static void BlitFullscreenTriangle(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier[] destinations, RenderTargetIdentifier depth, PropertySheet propertySheet, int pass, bool clear = false, Rect? viewport = null)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier[] | destinations | An array of destinations render targets |
RenderTargetIdentifier | depth | The depth render target |
PropertySheet | propertySheet | The property sheet to use |
int | pass | The pass from the material to use |
bool | clear | Should the destination target be cleared? |
Rect? | viewport | An optional viewport to consider for the blit |