docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PhotosensorToTexture

    The role of this class is to interpret a component of the data incoming from the photosensor into a texture. The internal shader does extract the information and format it into a 2D texture according to the frame information.

    Inheritance
    object
    NodeRuntime
    Transcoder
    PhotosensorEncoder
    PhotosensorToTexture
    PhotosensorToIntensityNode
    PhotosensorToRangeNode
    PhotosensorToSegmentation
    Inherited Members
    PhotosensorEncoder.photosensorData
    PhotosensorEncoder.width
    PhotosensorEncoder.height
    PhotosensorEncoder._readCount
    PhotosensorEncoder.SampleCountPerFrame
    PhotosensorEncoder.InitializeSensorSDKShaderKernel(string)
    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 abstract class PhotosensorToTexture : PhotosensorEncoder

    Constructors

    Name Description
    PhotosensorToTexture(string, RenderTextureFormat, string)

    Initializes the transcoder with a kernel used to extract information.

    Fields

    Name Description
    _kernelName

    The name of the shader kernel.

    _outputBuffer

    An internal reference to the render texture used to output the result.

    _outputTextureFormat

    The format of the output texture.

    _outputTextureID

    The identifier of the shader property of the output texture.

    Methods

    Name Description
    Disable()

    Disable the change event on the input render texture and release the graphic resources.

    Enable(ClockState)

    Enable the change event on the input render texture and initialize the compute shader.

    InternalBindExtraParameters(CommandBuffer)

    Used to bind parameters to the kernel other than the default ones.

    SetOutputTexture(RenderTexture)

    This function is called upon processing the data extraction, the output texture may now be used for proceeding gpu operations.

    Transcode(CustomPassContext)

    Add to the command buffer the conversion of the photosensor sampling data into a texture.

    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)