Class PhotosensorToTextureV2
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 PhotosensorToTextureV2 : PhotosensorTranscoder
Constructors
Name | Description |
---|---|
PhotosensorToTextureV2(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. |
height |
Properties
Name | Description |
---|---|
Height | The vertical frame size, in pixels. |
Width | The horizontal frame size, in pixels. |
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. |