Class Transcoder
Provide a way to share everything common to all transcoder. Mainly the compute shader management.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
public abstract class Transcoder : NodeRuntime
Fields
_computeKernelIdx
Kernel index used to transcode the data
Declaration
protected int _computeKernelIdx
Field Value
Type | Description |
---|---|
Int32 |
_computeShader
Compute shader reference used to transcode the data.
Declaration
protected ComputeShader _computeShader
Field Value
Type | Description |
---|---|
ComputeShader |
inTranscode
Declaration
[Tooltip("Graphic context used to transcode data.")]
[Field("InTranscode", PortDirection.Left, FieldExtra.ChangeEvent)]
[SerializeField]
protected PortType<CustomPassContext> inTranscode
Field Value
Type | Description |
---|---|
PortType<CustomPassContext> |
outTranscode
Declaration
[Field("OutTranscode", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<CustomPassContext> outTranscode
Field Value
Type | Description |
---|---|
PortType<CustomPassContext> |
Methods
DisableInterfaceOnChangeEvent()
Disable on change event on the inTranscode port.
Declaration
protected virtual void DisableInterfaceOnChangeEvent()
EnableInterfaceOnChangeEvent()
Enable on change event on the inTranscode port to chain graphic command to execute transcoding.
Declaration
protected virtual void EnableInterfaceOnChangeEvent()
InitializeComputeShader(String, String)
Initialize the compute buffer and the kernel given in parameters
Declaration
protected virtual void InitializeComputeShader(string computeShaderName, string kernelName)
Parameters
Type | Name | Description |
---|---|---|
String | computeShaderName | Name of the compute shader to load. |
String | kernelName | Name of the kernel in the compute shader to find. |
Release()
Release graphic resources.
Declaration
protected virtual void Release()
Transcode(CustomPassContext)
Provide an interface to all transcoder to execute transcoding
Declaration
protected abstract void Transcode(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | A graphic context with a command buffer. |