Class IntensityBufferToTexture
Provide a way to take an intensity buffer stored in a compute buffer and copy them a a 2D texture.
Inheritance
IntensityBufferToTexture
Syntax
public class IntensityBufferToTexture : Transcoder
Fields
_outputBuffer
Internal reference to the render texture used to output the result.
Declaration
protected RenderTexture _outputBuffer
Field Value
framePeriod
Declaration
[Tooltip("Time elapsed since the last encode request.")]
[Field("FramePeriod", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> framePeriod
Field Value
height
Declaration
[Tooltip("Vertical frame size.")]
[Field("FrameHeight", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> height
Field Value
output
Declaration
[Tooltip("Current state of the frame sampled.")]
[Field("Output", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<RenderTexture> output
Field Value
photosensorData
Declaration
[Tooltip("A circular buffer containing the photosensor samples.")]
[Field("RawData", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<RawData> photosensorData
Field Value
prescalar
Declaration
[Tooltip("Amplify the intensities for viewing.")]
[Field("Intensity Prescalar", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> prescalar
Field Value
samplingRate
Declaration
[Tooltip("The sampling rate used to fill the incoming raw data.")]
[Field("SamplingRate", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> samplingRate
Field Value
width
Declaration
[Tooltip("Horizontal frame size.")]
[Field("FrameWidth", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> width
Field Value
Methods
Disable()
Disable change event on the inTranscode port and release the graphics resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Initialize the transcoder shader and enable on change event on the on inTranscode port.
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)
Add to the command buffer the copy from a compute buffer into a render texture.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Overrides