Method UseTexture
UseTexture(in TextureHandle, AccessFlags)
Declare that this pass uses the input texture.
Declaration
TextureHandle UseTexture(in TextureHandle input, IBaseRenderGraphBuilder.AccessFlags flags = AccessFlags.Read)
Parameters
| Type | Name | Description |
|---|---|---|
| TextureHandle | input | The texture resource to use during the pass. |
| IBaseRenderGraphBuilder.AccessFlags | flags | A combination of flags indicating how the resource will be used during the pass. Default value is set to AccessFlag.Read |
Returns
| Type | Description |
|---|---|
| TextureHandle | A explicitly versioned handle representing the latest version of the pased in texture. Note that except for special cases where you want to refer to a specific version return value is generally discarded. |