docs.unity3d.com
Search Results for

    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

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Experimental.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    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.

    VFXManager_ProcessCameraCommand(Camera, LowLevelCommandBuffer)

    Wrapper for VFXManager.ProcessCameraCommand that works with LowLevelCommandBuffer.

    Declaration
    [Obsolete("Use ProcessCameraCommand with CullingResults to allow culling of VFX per camera")]
    public static void VFXManager_ProcessCameraCommand(Camera cam, LowLevelCommandBuffer cmd)
    Parameters
    Type Name Description
    Camera cam

    The Camera to process the VFX commands for.

    LowLevelCommandBuffer cmd

    The CommandBuffer to push commands to (can be null).

    VFXManager_ProcessCameraCommand(Camera, LowLevelCommandBuffer, VFXCameraXRSettings, CullingResults)

    Wrapper for VFXManager.ProcessCameraCommand that works with LowLevelCommandBuffer.

    Declaration
    public static void VFXManager_ProcessCameraCommand(Camera cam, LowLevelCommandBuffer cmd, VFXCameraXRSettings camXRSettings, CullingResults results)
    Parameters
    Type Name Description
    Camera cam

    The Camera to process the VFX commands for.

    LowLevelCommandBuffer cmd

    The CommandBuffer to push commands to (can be null).

    VFXCameraXRSettings camXRSettings

    The XR settings that the Visual Effect Graph uses to process the Camera commands.

    CullingResults results

    The culling results to use.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    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)