Method UseBuffer
UseBuffer(in BufferHandle, AccessFlags)
Declare that this pass uses the input compute buffer.
Declaration
BufferHandle UseBuffer(in BufferHandle input, IBaseRenderGraphBuilder.AccessFlags flags = AccessFlags.Read)
Parameters
Type | Name | Description |
---|---|---|
BufferHandle | input | The compute buffer 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 |
---|---|
BufferHandle | 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. |