Method CreateTransientBuffer
CreateTransientBuffer(in BufferDesc)
Create a new Render Graph Graphics Buffer resource. This Graphics Buffer will only be available for the current pass and will be assumed to be both written and read so users don't need to add explicit read/write declarations.
Declaration
BufferHandle CreateTransientBuffer(in BufferDesc desc)
Parameters
Type | Name | Description |
---|---|---|
BufferDesc | desc | Compute Buffer descriptor. |
Returns
Type | Description |
---|---|
BufferHandle | A new transient BufferHandle. |
CreateTransientBuffer(in BufferHandle)
Create a new Render Graph Graphics Buffer resource using the descriptor from another Graphics Buffer. This Graphics Buffer will only be available for the current pass and will be assumed to be both written and read so users don't need to add explicit read/write declarations.
Declaration
BufferHandle CreateTransientBuffer(in BufferHandle computebuffer)
Parameters
Type | Name | Description |
---|---|---|
BufferHandle | computebuffer | Graphics Buffer from which the descriptor should be used. |
Returns
Type | Description |
---|---|
BufferHandle | A new transient BufferHandle. |