docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ComputeShaderInstance

    This class encapsulate what compose a compute shader program.

    Inheritance
    object
    ComputeShaderInstance
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Mechatronics.SensorSDK
    Assembly: solution.dll
    Syntax
    public class ComputeShaderInstance

    Constructors

    Name Description
    ComputeShaderInstance(string, string)

    Load the specified shader using Resources.Load() and find the specified kernel that form the compute shader program.

    ComputeShaderInstance(ComputeShader, string)

    Use the specified shader and find the specified kernel that form the compute shader program. Useful if the compute shader cannot be loaded from Resources.Load().

    Fields

    Name Description
    kernelIdx

    Kernel index used to transcode the data

    shader

    Compute shader reference used to transcode the data.

    Methods

    Name Description
    DivRoundUp(int, int)

    Used to compute the number of thread group needed for the process.

    Operators

    Name Description
    implicit operator ComputeShader(ComputeShaderInstance)

    Return the member shader which is a ComputeShader instance.

    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)