Method AddResolvePass
AddResolvePass(TextureHandle, TextureHandle, string, int)
Add a new Render Pass to the Render Graph that resolves the source texture into the destination texture. Note this is a special pass that depending on the GPU configuration might be "semi-free" and not execute any additional GPU commands. It is highly recommended to use resolve passes instead of making small passes that for example do commandBuffer.ResolveAntiAliasedSurface If the source and destination texture are both non MSAA this is equivalent to a move (see AddMovePass).
Declaration
public void AddResolvePass(TextureHandle source, TextureHandle destination, string file = "", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
TextureHandle | source | Texture to read data from. |
TextureHandle | destination | Texture to copy data into. |
string | file | File name of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it. |
int | line | File line of the source file this function is called from. Used for debugging. This parameter is automatically generated by the compiler. Users do not need to pass it. |