docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CommandBufferExtensions

    Provides extensions methods to CommandBuffer.

    Inheritance
    object
    CommandBufferExtensions
    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 static class CommandBufferExtensions

    Methods

    Name Description
    DispatchCompute(CommandBuffer, ComputeShaderInstance, int, int, int)

    Dispatch work on the compute shader program.

    RequestAsyncReadback<T>(CommandBuffer, ExchangeBuffer<T>, Action)

    Adds to the command buffer an asynchonous request to readback from the GPU buffer into ExchangeBuffer CPU list.

    RequestAsyncReadback<T>(CommandBuffer, StructuredBuffer<T>, Action<NativeArray<T>>)

    Adds an asynchonous GPU readback request command to the command buffer.

    SetBufferData<T>(CommandBuffer, StructuredBuffer<T>, List<T>)

    Adds a command to set the GPU buffer with values from a list.

    SetComputeBufferParam(CommandBuffer, ComputeShaderInstance, int, ComputeBuffer)

    Adds a command to set a compute buffer parameter on a compute shader.

    SetComputeBufferParam<T>(CommandBuffer, ComputeShaderInstance, int, ExchangeBuffer<T>)

    Adds a command to set a compute buffer parameter on a compute shader.

    SetComputeBufferParam<T>(CommandBuffer, ComputeShaderInstance, int, StructuredBuffer<T>)

    Adds a command to set a compute buffer parameter on a compute shader.

    SetComputeTextureParam(CommandBuffer, ComputeShaderInstance, int, Texture)

    Adds a command to set a texture parameter on a compute shader.

    SetRayTracingBufferParam<T>(CommandBuffer, RayTracingShader, int, ExchangeBuffer<T>)

    Adds a command to set a compute buffer parameter on a RayTracingShader.

    SetRayTracingBufferParam<T>(CommandBuffer, RayTracingShader, int, StructuredBuffer<T>)

    Adds a command to set a compute buffer parameter on a RayTracingShader.

    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)