Class DispatchCompute
Represents an operator that launches one or more compute shader work groups for each notification in the sequence.
public class DispatchCompute : Sink
- Inheritance
-
DispatchCompute
- Inherited Members
Properties
ShaderName
Gets or sets the name of the compute shader program.
[TypeConverter(typeof(ComputeProgramNameConverter))]
public string ShaderName { get; set; }
Property Value
WorkGroups
Gets or sets a value specifying the number of workgroups to be launched when dispatching the compute shader.
public DispatchParameters WorkGroups { get; set; }
Property Value
Methods
Process<TSource>(IObservable<TSource>)
Launches one or more compute shader work groups whenever the source sequence emits a notification.
public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used to launch the compute shader work groups.
Returns
- IObservable<TSource>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of launching one or more compute shader workgroups whenever the sequence emits a notification.
Type Parameters
TSource
The type of the elements in the
source
sequence.