Struct CommonContext
Syntax
public struct CommonContext
Fields
Set
Declaration
public readonly NodeSetAPI Set
Field Value
Properties
Handle
A handle uniquely identifying the current node.
Declaration
public NodeHandle Handle { get; }
Property Value
Methods
EmitMessage<T, TNodeDefinition>(MessageOutput<TNodeDefinition, T>, T)
Emit a message from yourself on a port. Everything connected to it will receive your message.
Declaration
public void EmitMessage<T, TNodeDefinition>(MessageOutput<TNodeDefinition, T> port, in T msg)
where TNodeDefinition : NodeDefinition
Parameters
Type |
Name |
Description |
MessageOutput<TNodeDefinition, T> |
port |
|
T |
msg |
|
Type Parameters
Name |
Description |
T |
|
TNodeDefinition |
|
EmitMessage<T, TNodeDefinition>(PortArray<MessageOutput<TNodeDefinition, T>>, Int32, T)
Emit a message from yourself on a port array. Everything connected to it will receive your message.
Declaration
public void EmitMessage<T, TNodeDefinition>(PortArray<MessageOutput<TNodeDefinition, T>> port, int arrayIndex, in T msg)
where TNodeDefinition : NodeDefinition
Parameters
Type Parameters
Name |
Description |
T |
|
TNodeDefinition |
|
Exceptions
RegisterForUpdate()
Declaration
public void RegisterForUpdate()
Exceptions
RemoveFromUpdate()
Declaration
public void RemoveFromUpdate()
Exceptions
SetKernelBufferSize<TGraphKernel>(TGraphKernel)
Declaration
[Obsolete("Renamed to UpdateKernelBuffers (RemovedAfter 2021-01-19)")]
public void SetKernelBufferSize<TGraphKernel>(in TGraphKernel requestedSize)
where TGraphKernel : struct, IGraphKernel
Parameters
Type |
Name |
Description |
TGraphKernel |
requestedSize |
|
Type Parameters
Name |
Description |
TGraphKernel |
|
UpdateKernelBuffers<TGraphKernel>(TGraphKernel)
Declaration
public void UpdateKernelBuffers<TGraphKernel>(in TGraphKernel requestedSize)
where TGraphKernel : struct, IGraphKernel
Parameters
Type |
Name |
Description |
TGraphKernel |
requestedSize |
|
Type Parameters
Name |
Description |
TGraphKernel |
|
UpdateKernelData<TKernelData>(TKernelData)
Updates the associated TKernelData
asynchronously,
to be available in a IGraphKernel in the next render.
Declaration
public void UpdateKernelData<TKernelData>(in TKernelData data)
where TKernelData : struct, IKernelData
Parameters
Type |
Name |
Description |
TKernelData |
data |
|
Type Parameters
Name |
Description |
TKernelData |
|
UploadRequest<T>(NativeArray<T>, BufferUploadMethod)
Declaration
public Buffer<T> UploadRequest<T>(NativeArray<T> inputMemory, BufferUploadMethod method = BufferUploadMethod.Copy)
where T : struct
Parameters
Returns
Type Parameters