Struct ComputeKernel
Syntax
public struct ComputeKernel
Constructors
ComputeKernel(ComputeFunc, Int32[])
Declaration
public ComputeKernel(ComputeFunc func_, int[] dispatch_)
Parameters
Fields
dispatch
Declaration
public readonly int[] dispatch
Field Value
func
Declaration
public readonly ComputeFunc func
Field Value
Properties
shader
Declaration
public ComputeShader shader { get; }
Property Value
Type |
Description |
ComputeShader |
|
Methods
BestKernel(ComputeShader[], ComputeKernelLibrary.Entry[], Boolean)
Declaration
public static ComputeKernel BestKernel(ComputeShader[] kernels, ComputeKernelLibrary.Entry[] entrees, bool verbose)
Parameters
Returns
Dispatch()
Declaration
SetTensor(ComputeFunc.TensorDecl, Int32, TensorShape, ComputeBuffer, Int64)
Declaration
public void SetTensor(ComputeFunc.TensorDecl tensorDecl, int dataPropId, TensorShape shape, ComputeBuffer buffer, long dataOffset = 0L)
Parameters
SetTensor(String, TensorShape, ComputeBuffer, Int64)
Declaration
public void SetTensor(string name, TensorShape shape, ComputeBuffer buffer, long dataOffset = 0L)
Parameters
SetTensorBuffer(Int32, ComputeBuffer)
Declaration
public void SetTensorBuffer(int propId, ComputeBuffer buffer)
Parameters
Type |
Name |
Description |
Int32 |
propId |
|
ComputeBuffer |
buffer |
|
SetTensorBuffer(String, ComputeBuffer)
Declaration
public void SetTensorBuffer(string name, ComputeBuffer buffer)
Parameters
Type |
Name |
Description |
String |
name |
|
ComputeBuffer |
buffer |
|
SetTensorDecl(ComputeFunc.TensorDecl, TensorShape, Int64)
Declaration
public void SetTensorDecl(ComputeFunc.TensorDecl tensorDecl, TensorShape shape, long dataOffset)
Parameters
SetTensorDecl(String, TensorShape, Int64)
Declaration
public void SetTensorDecl(string name, TensorShape shape, long dataOffset)
Parameters