Class PhotosensorToIntensityBuffer
The role of this class is to interpret the data incoming from the photosensor into an intensity buffer. The internal shader does extract the intensity information and format it into a compute buffer according to the frame information.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
public class PhotosensorToIntensityBuffer : PhotosensorEncoder
Fields
height
Declaration
[Tooltip("Vertical frame size.")]
[Field("FrameHeight", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> height
Field Value
Type | Description |
---|---|
PortType<UInt32> |
intensity
Declaration
[Tooltip("Current state of the frame sampled.")]
[Field("Intensity", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<RawData> intensity
Field Value
Type | Description |
---|---|
PortType<RawData> |
width
Declaration
[Tooltip("Horizontal frame size.")]
[Field("FrameWidth", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> width
Field Value
Type | Description |
---|---|
PortType<UInt32> |
Methods
Disable()
Disable the change event on the input render texture and release the graphic resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Enable the change event on the input render texture and initialize the compute shader.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Type | Name | Description |
---|---|---|
Scheduler.ClockState | clockState | The parameters of the waveform associated to this node |
Overrides
Transcode(CustomPassContext)
Convert the photosensor sampling data into an intensity buffer.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Custom pass context |