Struct ComputeKernel
Syntax
public struct ComputeKernel
Constructors
ComputeKernel(ComputeFunc, (Int32, Int32, Int32))
Declaration
public ComputeKernel(ComputeFunc func_, (int, int, int)dispatch_)
Parameters
Fields
dispatch
Declaration
public readonly (int, int, 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
Dispatch()
Declaration
SetTensor(String, TensorShape, ComputeBuffer, Int64)
Declaration
public void SetTensor(string name, TensorShape shape, ComputeBuffer buffer, long dataOffset = 0L)
Parameters
SetTensor(ComputeFunc.TensorDecl, Int32, TensorShape, ComputeBuffer, Int64)
Declaration
public void SetTensor(ComputeFunc.TensorDecl tensorDecl, int dataPropId, 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(String, TensorShape, Int64)
Declaration
public void SetTensorDecl(string name, TensorShape shape, long dataOffset)
Parameters
SetTensorDecl(ComputeFunc.TensorDecl, TensorShape, Int64)
Declaration
public void SetTensorDecl(ComputeFunc.TensorDecl tensorDecl, TensorShape shape, long dataOffset)
Parameters