docs.unity.cn
    Show / Hide Table of Contents

    Struct CommandBufferHelpers

    This struct contains some static helper functions that can be used when you want to convert between Commandbuffer and RasterCommandBuffer/ComputeCommandBuffer/LowLevelCommandBuffer

    Namespace: UnityEngine.Experimental.Rendering
    Syntax
    public struct CommandBufferHelpers

    Methods

    GetComputeCommandBuffer(CommandBuffer)

    Get a ComputeCommandBuffer given an standard CommandBuffer.

    Declaration
    public static ComputeCommandBuffer GetComputeCommandBuffer(CommandBuffer baseBuffer)
    Parameters
    Type Name Description
    CommandBuffer baseBuffer

    The CommandBuffer the RasterCommandBuffer should record it's commands to.

    Returns
    Type Description
    ComputeCommandBuffer

    A ComputeCommandBuffer that will record its commands to the given buffer.

    GetLowLevelCommandBuffer(CommandBuffer)

    Get a LowLevelCommandBuffer given an standard CommandBuffer.

    Declaration
    public static LowLevelCommandBuffer GetLowLevelCommandBuffer(CommandBuffer baseBuffer)
    Parameters
    Type Name Description
    CommandBuffer baseBuffer

    The CommandBuffer the LowLevelCommandBuffer should record it's commands to.

    Returns
    Type Description
    LowLevelCommandBuffer

    A LowLevelCommandBuffer that will record its commands to the given buffer.

    GetRasterCommandBuffer(CommandBuffer)

    Get a RasterCommandBuffer given an standard CommandBuffer.

    Declaration
    public static RasterCommandBuffer GetRasterCommandBuffer(CommandBuffer baseBuffer)
    Parameters
    Type Name Description
    CommandBuffer baseBuffer

    The CommandBuffer the RasterCommandBuffer should record it's commands to.

    Returns
    Type Description
    RasterCommandBuffer

    A RasterCommandBuffer that will record its commands to the given buffer.

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 07 July 2023