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 |
---|---|---|
Command |
cmd | The command buffer to use |
Render |
source | The source render target |
Render |
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 |
---|---|---|
Command |
cmd | The command buffer to use |
Render |
source | The source render target |
Render |
destination | The destination render target |
Property |
propertySheet | The property sheet to use |
int | pass | The pass from the material to use |
Render |
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 |
---|---|---|
Command |
cmd | The command buffer to use |
Render |
source | The source render target |
Render |
destination | The destination render target |
Property |
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 |
---|---|---|
Command |
cmd | The command buffer to use |
Render |
source | The source render target |
Render |
destination | The destination render target |
Render |
depth | The depth render target |
Property |
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 |
---|---|---|
Command |
cmd | The command buffer to use |
Render |
source | The source render target |
Render |
destinations | An array of destinations render targets |
Render |
depth | The depth render target |
Property |
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 |