Method UseDepthBuffer
UseDepthBuffer(in TextureHandle, DepthAccess)
Specify that the pass will use a Texture resource as a depth buffer.
Declaration
public TextureHandle UseDepthBuffer(in TextureHandle input, DepthAccess flags)
Parameters
| Type | Name | Description |
|---|---|---|
| TextureHandle | input | The Texture resource to use as a depth buffer during the pass. |
| DepthAccess | flags | Specify the access level for the depth buffer. This allows you to say whether you will read from or write to the depth buffer, or do both. |
Returns
| Type | Description |
|---|---|
| TextureHandle | An updated resource handle to the input resource. |