Method Blit
Blit(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, Material, int)
Add a blit command to the context for execution. This changes the active render target in the ScriptableRenderer to destination.
선언
public void Blit(CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, Material material = null, int passIndex = 0)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| CommandBuffer | cmd | Command buffer to record command for execution. |
| RenderTargetIdentifier | source | Source texture or target identifier to blit from. |
| RenderTargetIdentifier | destination | Destination texture or target identifier to blit into. This becomes the renderer active render target. |
| Material | material | Material to use. |
| int | passIndex | Shader pass to use. Default is 0. |