Method CreateSharedTexture
CreateSharedTexture(in TextureDesc, bool)
Create a new Render Graph Shared Texture resource. This texture will be persistent across render graph executions.
Declaration
public TextureHandle CreateSharedTexture(in TextureDesc desc, bool explicitRelease = false)
Parameters
| Type | Name | Description |
|---|---|---|
| TextureDesc | desc | Creation descriptor of the texture. |
| bool | explicitRelease | Set to true if you want to manage the lifetime of the resource yourself. Otherwise the resource will be released automatically if unused for a time. |
Returns
| Type | Description |
|---|---|
| TextureHandle | A new TextureHandle. |