Class SegmentationAsBuffer
The role of this class is to take an incoming render texture, extract the index from the color channel and output an index buffer accessible on CPU side.
Inherited Members
NodeRuntime._parent
NodeRuntime._portList
NodeRuntime._queryPath
NodeRuntime._tickCPUTimeNs
NodeRuntime.Initialize(SystemGraphComponent)
NodeRuntime.FixedUpdate()
NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
Namespace: Mechatronics.SensorSDK
Assembly: solution.dll
Syntax
public class SegmentationAsBuffer : Transcoder
Fields
Name | Description |
---|---|
_outSegmentationBuffer | Internal reference on the output segmentation buffer. |
_outputBuffer | Internal reference on the compute buffer used to transcode the segmentation data from a render texture into a uint buffer. |
renderTexture | |
segmentationBuffer |
Methods
Name | Description |
---|---|
Disable() | Deactivate change event ports and release graphic resources. |
Enable(ClockState) | Setup the change event on ports an load the compute shader for the data transcoding. |
PrepareOutputBuffer(int) | Create or resize the compute buffer used to store transcoded data. |
Transcode(CustomPassContext) | Run the compute shader to convert data from the render texture to the compute buffer and request a read back. |