Struct ComputeFunc
Syntax
public struct ComputeFunc
Constructors
ComputeFunc(ComputeShader, String)
Declaration
public ComputeFunc(ComputeShader cs, string kn)
Parameters
ComputeFunc(ComputeShader, String[], Int32, Int32, Int32)
Declaration
public ComputeFunc(ComputeShader cs, string[] kns, int x, int y = 1, int z = 1)
Parameters
ComputeFunc(ComputeShader[], String)
Declaration
public ComputeFunc(ComputeShader[] cs, string kn)
Parameters
ComputeFunc(ComputeShader[], String[], Int32, Int32, Int32)
Declaration
public ComputeFunc(ComputeShader[] cs, string[] kns, int x, int y = 1, int z = 1)
Parameters
Fields
kernelIndex
Declaration
public readonly int kernelIndex
Field Value
kernelName
Declaration
public readonly string kernelName
Field Value
shader
Declaration
public readonly ComputeShader shader
Field Value
threadGroupSizeX
Declaration
public readonly uint threadGroupSizeX
Field Value
threadGroupSizeY
Declaration
public readonly uint threadGroupSizeY
Field Value
threadGroupSizeZ
Declaration
public readonly uint threadGroupSizeZ
Field Value
Properties
depth
Declaration
public int depth { get; }
Property Value
height
Declaration
public int height { get; }
Property Value
threadGroupSize
Declaration
public uint threadGroupSize { get; }
Property Value
width
Declaration
public int width { get; }
Property Value
Methods
Dispatch(Int32, Int32, Int32)
Declaration
public void Dispatch(int workItemsX, int workItemsY, int workItemsZ)
Parameters
Dispatch(ValueTuple<Int32, Int32, Int32>)
Declaration
public void Dispatch(ValueTuple<int, int, int> workItems)
Parameters
FindBestKernelMatchingDimensions(ComputeShader[], String[], Int32, Int32, Int32)
Declaration
public static string FindBestKernelMatchingDimensions(ComputeShader[] cs, string[] kns, int x, int y = 1, int z = 1)
Parameters
Returns
GetTensorData(String)
Declaration
public static int GetTensorData(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetTensorDecl(String)
Declaration
public static ComputeFunc.TensorDecl GetTensorDecl(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
IntDivCeil(Int32, Int32)
Declaration
public static int IntDivCeil(int v, int div)
Parameters
Returns
SetTensor(String, TensorShape, ComputeBuffer, Int64)
Declaration
public void SetTensor(string name, TensorShape shape, ComputeBuffer buffer, long dataOffset = 0L)
Parameters
SetTensor(String, TensorShape, Texture, Int64)
Declaration
public void SetTensor(string name, TensorShape shape, Texture texture, 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
SetTensorBuffer(String, ComputeBuffer)
Declaration
public void SetTensorBuffer(string name, ComputeBuffer buffer)
Parameters
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
SetTexture(String, Texture)
Declaration
public void SetTexture(string name, Texture tex)
Parameters