docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    NodeRuntime
    Transcoder
    SegmentationAsBuffer
    SegmentationAsBufferNode
    Inherited Members
    Transcoder.inTranscode
    Transcoder.outTranscode
    Transcoder._computeShader
    Transcoder.EnableInterfaceOnChangeEvent()
    Transcoder.DisableInterfaceOnChangeEvent()
    Transcoder.InitializeSensorSDKComputeShader(string, string)
    Transcoder.Release()
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.OnTick(double, double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)
    NodeRuntime.OnPortRemoved(string)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)