Class AOVRequestBuilder
Utility to build frame passes.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
public class AOVRequestBuilder : IDisposable
Methods
Add(AOVRequest, AOVRequestBufferAllocator, List<GameObject>, AOVBuffers[], FramePassCallback)
Add a AOV request.
Declaration
public AOVRequestBuilder Add(AOVRequest settings, AOVRequestBufferAllocator bufferAllocator, List<GameObject> includedLightList, AOVBuffers[] aovBuffers, FramePassCallback callback)
Parameters
| Type | Name | Description |
|---|---|---|
| AOVRequest | settings | Settings to use for this frame pass. |
| AOVRequestBufferAllocator | bufferAllocator | An allocator for each buffer. |
| List<GameObject> | includedLightList | If non null, only these lights will be rendered, if none, all lights will be rendered. |
| AOVBuffers[] | aovBuffers | A list of buffers to use. |
| FramePassCallback | callback | A callback that can use the requested buffers once the rendering has completed. |
Returns
| Type | Description |
|---|---|
| AOVRequestBuilder |
Build()
Build the frame passes. Allocated resources will be transferred to the returned value.
Declaration
public AOVRequestDataCollection Build()
Returns
| Type | Description |
|---|---|
| AOVRequestDataCollection | The built collection. |
Dispose()
Dispose the builder.
This is required when you don't call Build().
Declaration
public void Dispose()