Method BlitCameraTexture
BlitCameraTexture(CommandBuffer, RTHandle, RTHandle, float, bool)
Blit a RTHandle to another RTHandle. This will properly account for partial usage (in term of resolution) of the texture for the current viewport.
Declaration
public static void BlitCameraTexture(CommandBuffer cmd, RTHandle source, RTHandle destination, float mipLevel = 0, bool bilinear = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
RTHandle | source | Source RTHandle. |
RTHandle | destination | Destination RTHandle. |
float | mipLevel | Mip level to blit. |
bool | bilinear | Enable bilinear filtering. |
BlitCameraTexture(CommandBuffer, RTHandle, RTHandle, Material, int)
Blit a RTHandle to another RTHandle. This will properly account for partial usage (in term of resolution) of the texture for the current viewport. This overloads allows the user to override the default blit shader
Declaration
public static void BlitCameraTexture(CommandBuffer cmd, RTHandle source, RTHandle destination, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
RTHandle | source | Source RTHandle. |
RTHandle | destination | Destination RTHandle. |
Material | material | The material to use when blitting |
int | pass | pass to use of the provided material |
BlitCameraTexture(CommandBuffer, RTHandle, RTHandle, RenderBufferLoadAction, RenderBufferStoreAction, Material, int)
Blit a RTHandle to another RTHandle. This will properly account for partial usage (in term of resolution) of the texture for the current viewport. This overloads allows the user to override the default blit shader
Declaration
public static void BlitCameraTexture(CommandBuffer cmd, RTHandle source, RTHandle destination, RenderBufferLoadAction loadAction, RenderBufferStoreAction storeAction, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
RTHandle | source | Source RTHandle. |
RTHandle | destination | Destination RTHandle. |
RenderBufferLoadAction | loadAction | Load action. |
RenderBufferStoreAction | storeAction | Store action. |
Material | material | The material to use when blitting |
int | pass | pass to use of the provided material |
BlitCameraTexture(CommandBuffer, RTHandle, RTHandle, Vector4, float, bool)
Blit a RTHandle to another RTHandle. This will properly account for partial usage (in term of resolution) of the texture for the current viewport. This overload allows user to override the scale and bias used when sampling the input RTHandle.
Declaration
public static void BlitCameraTexture(CommandBuffer cmd, RTHandle source, RTHandle destination, Vector4 scaleBias, float mipLevel = 0, bool bilinear = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
RTHandle | source | Source RTHandle. |
RTHandle | destination | Destination RTHandle. |
Vector4 | scaleBias | Scale and bias used to sample the input RTHandle. |
float | mipLevel | Mip level to blit. |
bool | bilinear | Enable bilinear filtering. |
BlitCameraTexture(CommandBuffer, RTHandle, RTHandle, Rect, float, bool)
Blit a RTHandle to another RTHandle. This will properly account for partial usage (in term of resolution) of the texture for the current viewport. This overload allows user to override the viewport of the destination RTHandle.
Declaration
public static void BlitCameraTexture(CommandBuffer cmd, RTHandle source, RTHandle destination, Rect destViewport, float mipLevel = 0, bool bilinear = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
RTHandle | source | Source RTHandle. |
RTHandle | destination | Destination RTHandle. |
Rect | destViewport | Viewport of the destination RTHandle. |
float | mipLevel | Mip level to blit. |
bool | bilinear | Enable bilinear filtering. |