Class RenderGraphResourceRegistry
The RenderGraphResourceRegistry holds all resource allocated during Render Graph execution.
Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
Syntax
public class RenderGraphResourceRegistry
Methods
GetComputeBuffer(ComputeBufferHandle)
Returns the Compute Buffer associated with the provided resource handle.
Declaration
public ComputeBuffer GetComputeBuffer(in ComputeBufferHandle handle)
Parameters
Type | Name | Description |
---|---|---|
ComputeBufferHandle | handle | Handle to a Compute Buffer resource. |
Returns
Type | Description |
---|---|
ComputeBuffer | The Compute Buffer associated with the provided resource handle or a null reference if the handle is invalid. |
GetRendererList(RendererListHandle)
Returns the RendererList associated with the provided resource handle.
Declaration
public RendererList GetRendererList(in RendererListHandle handle)
Parameters
Type | Name | Description |
---|---|---|
RendererListHandle | handle | Handle to a Renderer List resource. |
Returns
Type | Description |
---|---|
RendererList | The Renderer List associated with the provided resource handle or an invalid renderer list if the handle is invalid. |
GetTexture(TextureHandle)
Returns the RTHandle associated with the provided resource handle.
Declaration
public RTHandle GetTexture(in TextureHandle handle)
Parameters
Type | Name | Description |
---|---|---|
TextureHandle | handle | Handle to a texture resource. |
Returns
Type | Description |
---|---|
RTHandle | The RTHandle associated with the provided resource handle or null if the handle is invalid. |