Class PhotosensorToTexture
The role of this class is to interpret a component of the data incoming from the photosensor into a texture. The internal shader does extract the information and format it into a 2D texture according to the frame information.
Inherited Members
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public abstract class PhotosensorToTexture : PhotosensorEncoder
Constructors
| Name | Description |
|---|---|
| PhotosensorToTexture(string, RenderTextureFormat, string) | Initializes the transcoder with a kernel used to extract information. |
Fields
| Name | Description |
|---|---|
| _kernelName | The name of the shader kernel. |
| _outputBuffer | An internal reference to the render texture used to output the result. |
| _outputTextureFormat | The format of the output texture. |
| _outputTextureID | The identifier of the shader property of the output texture. |
Methods
| Name | Description |
|---|---|
| Disable() | Disable the change event on the input render texture and release the graphic resources. |
| Enable(ClockState) | Enable the change event on the input render texture and initialize the compute shader. |
| InternalBindExtraParameters(CommandBuffer) | Used to bind parameters to the kernel other than the default ones. |
| SetOutputTexture(RenderTexture) | This function is called upon processing the data extraction, the output texture may now be used for proceeding gpu operations. |
| Transcode(CustomPassContext) | Add to the command buffer the conversion of the photosensor sampling data into a texture. |