Class ComputeShaderInstance
This class encapsulate what compose a compute shader program.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public class ComputeShaderInstance
Constructors
Name | Description |
---|---|
ComputeShaderInstance(string, string) | Load the specified shader using Resources.Load() and find the specified kernel that form the compute shader program. |
ComputeShaderInstance(ComputeShader, string) | Use the specified shader and find the specified kernel that form the compute shader program. Useful if the compute shader cannot be loaded from Resources.Load(). |
Fields
Name | Description |
---|---|
kernelIdx | Kernel index used to transcode the data |
shader | Compute shader reference used to transcode the data. |
Methods
Name | Description |
---|---|
DivRoundUp(int, int) | Used to compute the number of thread group needed for the process. |
Operators
Name | Description |
---|---|
implicit operator ComputeShader(ComputeShaderInstance) | Return the member shader which is a ComputeShader instance. |