Method BuiltinBlit
BuiltinBlit(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier)
Does a copy of source to destination using the builtin blit command.
Declaration
public static void BuiltinBlit(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier | destination | The destination render target |
BuiltinBlit(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, Material, int)
Blits a fullscreen quad using the builtin blit command and a given material.
Declaration
public static void BuiltinBlit(this CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, Material mat, int pass = 0)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use |
RenderTargetIdentifier | source | The source render target |
RenderTargetIdentifier | destination | The destination render target |
Material | mat | The material to use for the blit |
int | pass | The pass from the material to use |