Struct Buffer<T>
An array data type to be used inside of a DataInput<TDefinition, TType> or DataOutput<TDefinition, TType>.
Inherited Members
Namespace: Unity.DataFlowGraph
Syntax
public struct Buffer<T>
    where T : struct
Type Parameters
| Name | Description | 
|---|---|
| T | 
Methods
SizeRequest(Int32)
The return value should be used with SetBufferSize<TDefinition, TType>(NodeHandle<TDefinition>, DataOutput<TDefinition, TType>, TType) to resize a buffer.
Declaration
public static Buffer<T> SizeRequest(int size)
Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | size | 
Returns
| Type | Description | 
|---|---|
| Buffer<T> | 
ToNative(GraphValueResolver)
Gives access to the actual underlying data via a NativeArray`1.
Declaration
public NativeArray<T> ToNative(GraphValueResolver resolver)
Parameters
| Type | Name | Description | 
|---|---|---|
| GraphValueResolver | resolver | 
Returns
| Type | Description | 
|---|---|
| NativeArray<T> | 
ToNative(RenderContext)
Gives access to the actual underlying data via a NativeArray`1.
Declaration
public NativeArray<T> ToNative(in RenderContext ctx)
Parameters
| Type | Name | Description | 
|---|---|---|
| RenderContext | ctx | 
Returns
| Type | Description | 
|---|---|
| NativeArray<T> |