docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ComputeCommandBuffer

    A command buffer that is used with a compute render graph pass.

    Inheritance
    object
    BaseCommandBuffer
    ComputeCommandBuffer
    Implements
    IComputeCommandBuffer
    IBaseCommandBuffer
    Inherited Members
    BaseCommandBuffer.m_WrappedCommandBuffer
    BaseCommandBuffer.name
    BaseCommandBuffer.sizeInBytes
    BaseCommandBuffer.ThrowIfGlobalStateNotAllowed()
    BaseCommandBuffer.ValidateTextureHandle(TextureHandle)
    BaseCommandBuffer.ValidateTextureHandleRead(TextureHandle)
    BaseCommandBuffer.ValidateTextureHandleWrite(TextureHandle)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Experimental.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public class ComputeCommandBuffer : BaseCommandBuffer, IComputeCommandBuffer, IBaseCommandBuffer

    Methods

    Name Description
    BeginSample(string)

    Wraps BeginSample on a CommandBuffer.

    BeginSample(ProfilerMarker)

    Wraps BeginSample on a CommandBuffer.

    BeginSample(CustomSampler)

    Wraps BeginSample on a CommandBuffer.

    BuildRayTracingAccelerationStructure(RayTracingAccelerationStructure)

    Wraps BuildRayTracingAccelerationStructure on a CommandBuffer.

    BuildRayTracingAccelerationStructure(RayTracingAccelerationStructure, Vector3)

    Wraps BuildRayTracingAccelerationStructure on a CommandBuffer.

    CopyCounterValue(ComputeBuffer, ComputeBuffer, uint)

    Wraps CopyCounterValue on a CommandBuffer.

    CopyCounterValue(ComputeBuffer, GraphicsBuffer, uint)

    Wraps CopyCounterValue on a CommandBuffer.

    CopyCounterValue(GraphicsBuffer, ComputeBuffer, uint)

    Wraps CopyCounterValue on a CommandBuffer.

    CopyCounterValue(GraphicsBuffer, GraphicsBuffer, uint)

    Wraps CopyCounterValue on a CommandBuffer.

    DisableKeyword(ComputeShader, ref LocalKeyword)

    Wraps DisableKeyword on a CommandBuffer.

    DisableKeyword(Material, ref LocalKeyword)

    Wraps DisableKeyword on a CommandBuffer.

    DisableKeyword(ref GlobalKeyword)

    Wraps DisableKeyword on a CommandBuffer.

    DisableScissorRect()

    Wraps DisableScissorRect on a CommandBuffer.

    DisableShaderKeyword(string)

    Wraps DisableShaderKeyword on a CommandBuffer.

    DispatchCompute(ComputeShader, int, int, int, int)

    Wraps DispatchCompute on a CommandBuffer.

    DispatchCompute(ComputeShader, int, ComputeBuffer, uint)

    Wraps DispatchCompute on a CommandBuffer.

    DispatchCompute(ComputeShader, int, GraphicsBuffer, uint)

    Wraps DispatchCompute on a CommandBuffer.

    DispatchRays(RayTracingShader, string, uint, uint, uint, Camera)

    Wraps DispatchRays on a CommandBuffer.

    EnableKeyword(ComputeShader, ref LocalKeyword)

    Wraps EnableKeyword on a CommandBuffer.

    EnableKeyword(Material, ref LocalKeyword)

    Wraps EnableKeyword on a CommandBuffer.

    EnableKeyword(ref GlobalKeyword)

    Wraps EnableKeyword on a CommandBuffer.

    EnableScissorRect(Rect)

    Wraps EnableScissorRect on a CommandBuffer.

    EnableShaderKeyword(string)

    Wraps EnableShaderKeyword on a CommandBuffer.

    EndSample(string)

    Wraps EndSample on a CommandBuffer.

    EndSample(ProfilerMarker)

    Wraps EndSample on a CommandBuffer.

    EndSample(CustomSampler)

    Wraps EndSample on a CommandBuffer.

    IncrementUpdateCount(RenderTargetIdentifier)

    Wraps IncrementUpdateCount on a CommandBuffer.

    InvokeOnRenderObjectCallbacks()

    Wraps InvokeOnRenderObjectCallbacks on a CommandBuffer.

    IssuePluginCustomBlit(IntPtr, uint, RenderTargetIdentifier, RenderTargetIdentifier, uint, uint)

    Wraps IssuePluginCustomBlit on a CommandBuffer.

    IssuePluginCustomTextureUpdateV2(IntPtr, Texture, uint)

    Wraps IssuePluginCustomTextureUpdateV2 on a CommandBuffer.

    IssuePluginEvent(IntPtr, int)

    Wraps IssuePluginEvent on a CommandBuffer.

    IssuePluginEventAndData(IntPtr, int, IntPtr)

    Wraps IssuePluginEventAndData on a CommandBuffer.

    MarkLateLatchMatrixShaderPropertyID(CameraLateLatchMatrixType, int)

    Wraps MarkLateLatchMatrixShaderPropertyID on a CommandBuffer.

    SetBufferCounterValue(ComputeBuffer, uint)

    Wraps SetBufferCounterValue on a CommandBuffer.

    SetBufferCounterValue(GraphicsBuffer, uint)

    Wraps SetBufferCounterValue on a CommandBuffer.

    SetBufferData(ComputeBuffer, Array)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData(ComputeBuffer, Array, int, int, int)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData(GraphicsBuffer, Array)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData(GraphicsBuffer, Array, int, int, int)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(ComputeBuffer, List<T>)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(ComputeBuffer, List<T>, int, int, int)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(ComputeBuffer, NativeArray<T>)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(ComputeBuffer, NativeArray<T>, int, int, int)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(GraphicsBuffer, List<T>)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(GraphicsBuffer, List<T>, int, int, int)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(GraphicsBuffer, NativeArray<T>)

    Wraps SetBufferData on a CommandBuffer.

    SetBufferData<T>(GraphicsBuffer, NativeArray<T>, int, int, int)

    Wraps SetBufferData on a CommandBuffer.

    SetComputeBufferParam(ComputeShader, int, int, ComputeBuffer)

    Wraps SetComputeBufferParam on a CommandBuffer.

    SetComputeBufferParam(ComputeShader, int, int, GraphicsBuffer)

    Wraps SetComputeBufferParam on a CommandBuffer.

    SetComputeBufferParam(ComputeShader, int, int, GraphicsBufferHandle)

    Wraps SetComputeBufferParam on a CommandBuffer.

    SetComputeBufferParam(ComputeShader, int, string, ComputeBuffer)

    Wraps SetComputeBufferParam on a CommandBuffer.

    SetComputeBufferParam(ComputeShader, int, string, GraphicsBuffer)

    Wraps SetComputeBufferParam on a CommandBuffer.

    SetComputeBufferParam(ComputeShader, int, string, GraphicsBufferHandle)

    Wraps SetComputeBufferParam on a CommandBuffer.

    SetComputeConstantBufferParam(ComputeShader, int, ComputeBuffer, int, int)

    Wraps SetComputeConstantBufferParam on a CommandBuffer.

    SetComputeConstantBufferParam(ComputeShader, int, GraphicsBuffer, int, int)

    Wraps SetComputeConstantBufferParam on a CommandBuffer.

    SetComputeConstantBufferParam(ComputeShader, string, ComputeBuffer, int, int)

    Wraps SetComputeConstantBufferParam on a CommandBuffer.

    SetComputeConstantBufferParam(ComputeShader, string, GraphicsBuffer, int, int)

    Wraps SetComputeConstantBufferParam on a CommandBuffer.

    SetComputeFloatParam(ComputeShader, int, float)

    Wraps SetComputeFloatParam on a CommandBuffer.

    SetComputeFloatParam(ComputeShader, string, float)

    Wraps SetComputeFloatParam on a CommandBuffer.

    SetComputeFloatParams(ComputeShader, int, params float[])

    Wraps SetComputeFloatParams on a CommandBuffer.

    SetComputeFloatParams(ComputeShader, string, params float[])

    Wraps SetComputeFloatParams on a CommandBuffer.

    SetComputeIntParam(ComputeShader, int, int)

    Wraps SetComputeIntParam on a CommandBuffer.

    SetComputeIntParam(ComputeShader, string, int)

    Wraps SetComputeIntParam on a CommandBuffer.

    SetComputeIntParams(ComputeShader, int, params int[])

    Wraps SetComputeIntParams on a CommandBuffer.

    SetComputeIntParams(ComputeShader, string, params int[])

    Wraps SetComputeIntParams on a CommandBuffer.

    SetComputeMatrixArrayParam(ComputeShader, int, Matrix4x4[])

    Wraps SetComputeMatrixArrayParam on a CommandBuffer.

    SetComputeMatrixArrayParam(ComputeShader, string, Matrix4x4[])

    Wraps SetComputeMatrixArrayParam on a CommandBuffer.

    SetComputeMatrixParam(ComputeShader, int, Matrix4x4)

    Wraps SetComputeMatrixParam on a CommandBuffer.

    SetComputeMatrixParam(ComputeShader, string, Matrix4x4)

    Wraps SetComputeMatrixParam on a CommandBuffer.

    SetComputeTextureParam(ComputeShader, int, int, TextureHandle)

    Wraps SetComputeTextureParam on a CommandBuffer.

    SetComputeTextureParam(ComputeShader, int, int, TextureHandle, int)

    Wraps SetComputeTextureParam on a CommandBuffer.

    SetComputeTextureParam(ComputeShader, int, int, TextureHandle, int, RenderTextureSubElement)

    Wraps SetComputeTextureParam on a CommandBuffer.

    SetComputeTextureParam(ComputeShader, int, string, TextureHandle)

    Wraps SetComputeTextureParam on a CommandBuffer.

    SetComputeTextureParam(ComputeShader, int, string, TextureHandle, int)

    Wraps SetComputeTextureParam on a CommandBuffer.

    SetComputeTextureParam(ComputeShader, int, string, TextureHandle, int, RenderTextureSubElement)

    Wraps SetComputeTextureParam on a CommandBuffer.

    SetComputeVectorArrayParam(ComputeShader, int, Vector4[])

    Wraps SetComputeVectorArrayParam on a CommandBuffer.

    SetComputeVectorArrayParam(ComputeShader, string, Vector4[])

    Wraps SetComputeVectorArrayParam on a CommandBuffer.

    SetComputeVectorParam(ComputeShader, int, Vector4)

    Wraps SetComputeVectorParam on a CommandBuffer.

    SetComputeVectorParam(ComputeShader, string, Vector4)

    Wraps SetComputeVectorParam on a CommandBuffer.

    SetGlobalBuffer(int, ComputeBuffer)

    Wraps SetGlobalBuffer on a CommandBuffer.

    SetGlobalBuffer(int, GraphicsBuffer)

    Wraps SetGlobalBuffer on a CommandBuffer.

    SetGlobalBuffer(string, ComputeBuffer)

    Wraps SetGlobalBuffer on a CommandBuffer.

    SetGlobalBuffer(string, GraphicsBuffer)

    Wraps SetGlobalBuffer on a CommandBuffer.

    SetGlobalColor(int, Color)

    Wraps SetGlobalColor on a CommandBuffer.

    SetGlobalColor(string, Color)

    Wraps SetGlobalColor on a CommandBuffer.

    SetGlobalConstantBuffer(ComputeBuffer, int, int, int)

    Wraps SetGlobalConstantBuffer on a CommandBuffer.

    SetGlobalConstantBuffer(ComputeBuffer, string, int, int)

    Wraps SetGlobalConstantBuffer on a CommandBuffer.

    SetGlobalConstantBuffer(GraphicsBuffer, int, int, int)

    Wraps SetGlobalConstantBuffer on a CommandBuffer.

    SetGlobalConstantBuffer(GraphicsBuffer, string, int, int)

    Wraps SetGlobalConstantBuffer on a CommandBuffer.

    SetGlobalDepthBias(float, float)

    Wraps SetGlobalDepthBias on a CommandBuffer.

    SetGlobalFloat(int, float)

    Wraps SetGlobalFloat on a CommandBuffer.

    SetGlobalFloat(string, float)

    Wraps SetGlobalFloat on a CommandBuffer.

    SetGlobalFloatArray(int, List<float>)

    Wraps SetGlobalFloatArray on a CommandBuffer.

    SetGlobalFloatArray(int, float[])

    Wraps SetGlobalFloatArray on a CommandBuffer.

    SetGlobalFloatArray(string, List<float>)

    Wraps SetGlobalFloatArray on a CommandBuffer.

    SetGlobalFloatArray(string, float[])

    Wraps SetGlobalFloatArray on a CommandBuffer.

    SetGlobalInt(int, int)

    Wraps SetGlobalInt on a CommandBuffer.

    SetGlobalInt(string, int)

    Wraps SetGlobalInt on a CommandBuffer.

    SetGlobalInteger(int, int)

    Wraps SetGlobalInteger on a CommandBuffer.

    SetGlobalInteger(string, int)

    Wraps SetGlobalInteger on a CommandBuffer.

    SetGlobalMatrix(int, Matrix4x4)

    Wraps SetGlobalMatrix on a CommandBuffer.

    SetGlobalMatrix(string, Matrix4x4)

    Wraps SetGlobalMatrix on a CommandBuffer.

    SetGlobalMatrixArray(int, List<Matrix4x4>)

    Wraps SetGlobalMatrixArray on a CommandBuffer.

    SetGlobalMatrixArray(int, Matrix4x4[])

    Wraps SetGlobalMatrixArray on a CommandBuffer.

    SetGlobalMatrixArray(string, List<Matrix4x4>)

    Wraps SetGlobalMatrixArray on a CommandBuffer.

    SetGlobalMatrixArray(string, Matrix4x4[])

    Wraps SetGlobalMatrixArray on a CommandBuffer.

    SetGlobalTexture(int, TextureHandle)

    Wraps SetGlobalTexture on a CommandBuffer.

    SetGlobalTexture(int, TextureHandle, RenderTextureSubElement)

    Wraps SetGlobalTexture on a CommandBuffer.

    SetGlobalTexture(string, TextureHandle)

    Wraps SetGlobalTexture on a CommandBuffer.

    SetGlobalTexture(string, TextureHandle, RenderTextureSubElement)

    Wraps SetGlobalTexture on a CommandBuffer.

    SetGlobalVector(int, Vector4)

    Wraps SetGlobalVector on a CommandBuffer.

    SetGlobalVector(string, Vector4)

    Wraps SetGlobalVector on a CommandBuffer.

    SetGlobalVectorArray(int, List<Vector4>)

    Wraps SetGlobalVectorArray on a CommandBuffer.

    SetGlobalVectorArray(int, Vector4[])

    Wraps SetGlobalVectorArray on a CommandBuffer.

    SetGlobalVectorArray(string, List<Vector4>)

    Wraps SetGlobalVectorArray on a CommandBuffer.

    SetGlobalVectorArray(string, Vector4[])

    Wraps SetGlobalVectorArray on a CommandBuffer.

    SetInvertCulling(bool)

    Wraps SetInvertCulling on a CommandBuffer.

    SetKeyword(ComputeShader, ref LocalKeyword, bool)

    Wraps SetKeyword on a CommandBuffer.

    SetKeyword(Material, ref LocalKeyword, bool)

    Wraps SetKeyword on a CommandBuffer.

    SetKeyword(ref GlobalKeyword, bool)

    Wraps SetKeyword on a CommandBuffer.

    SetLateLatchProjectionMatrices(Matrix4x4[])

    Wraps SetLateLatchProjectionMatrices on a CommandBuffer.

    SetRayTracingAccelerationStructure(ComputeShader, int, int, RayTracingAccelerationStructure)

    Wraps SetRayTracingAccelerationStructure on a CommandBuffer.

    SetRayTracingAccelerationStructure(ComputeShader, int, string, RayTracingAccelerationStructure)

    Wraps SetRayTracingAccelerationStructure on a CommandBuffer.

    SetRayTracingAccelerationStructure(RayTracingShader, int, RayTracingAccelerationStructure)

    Wraps SetRayTracingAccelerationStructure on a CommandBuffer.

    SetRayTracingAccelerationStructure(RayTracingShader, string, RayTracingAccelerationStructure)

    Wraps SetRayTracingAccelerationStructure on a CommandBuffer.

    SetRayTracingBufferParam(RayTracingShader, int, ComputeBuffer)

    Wraps SetRayTracingBufferParam on a CommandBuffer.

    SetRayTracingBufferParam(RayTracingShader, int, GraphicsBuffer)

    Wraps SetRayTracingBufferParam on a CommandBuffer.

    SetRayTracingBufferParam(RayTracingShader, int, GraphicsBufferHandle)

    Wraps SetRayTracingBufferParam on a CommandBuffer.

    SetRayTracingBufferParam(RayTracingShader, string, ComputeBuffer)

    Wraps SetRayTracingBufferParam on a CommandBuffer.

    SetRayTracingBufferParam(RayTracingShader, string, GraphicsBuffer)

    Wraps SetRayTracingBufferParam on a CommandBuffer.

    SetRayTracingBufferParam(RayTracingShader, string, GraphicsBufferHandle)

    Wraps SetRayTracingBufferParam on a CommandBuffer.

    SetRayTracingConstantBufferParam(RayTracingShader, int, ComputeBuffer, int, int)

    Wraps SetRayTracingConstantBufferParam on a CommandBuffer.

    SetRayTracingConstantBufferParam(RayTracingShader, int, GraphicsBuffer, int, int)

    Wraps SetRayTracingConstantBufferParam on a CommandBuffer.

    SetRayTracingConstantBufferParam(RayTracingShader, string, ComputeBuffer, int, int)

    Wraps SetRayTracingConstantBufferParam on a CommandBuffer.

    SetRayTracingConstantBufferParam(RayTracingShader, string, GraphicsBuffer, int, int)

    Wraps SetRayTracingConstantBufferParam on a CommandBuffer.

    SetRayTracingFloatParam(RayTracingShader, int, float)

    Wraps SetRayTracingFloatParam on a CommandBuffer.

    SetRayTracingFloatParam(RayTracingShader, string, float)

    Wraps SetRayTracingFloatParam on a CommandBuffer.

    SetRayTracingFloatParams(RayTracingShader, int, params float[])

    Wraps SetRayTracingFloatParams on a CommandBuffer.

    SetRayTracingFloatParams(RayTracingShader, string, params float[])

    Wraps SetRayTracingFloatParams on a CommandBuffer.

    SetRayTracingIntParam(RayTracingShader, int, int)

    Wraps SetRayTracingIntParam on a CommandBuffer.

    SetRayTracingIntParam(RayTracingShader, string, int)

    Wraps SetRayTracingIntParam on a CommandBuffer.

    SetRayTracingIntParams(RayTracingShader, int, params int[])

    Wraps SetRayTracingIntParams on a CommandBuffer.

    SetRayTracingIntParams(RayTracingShader, string, params int[])

    Wraps SetRayTracingIntParams on a CommandBuffer.

    SetRayTracingMatrixArrayParam(RayTracingShader, int, params Matrix4x4[])

    Wraps SetRayTracingMatrixArrayParam on a CommandBuffer.

    SetRayTracingMatrixArrayParam(RayTracingShader, string, params Matrix4x4[])

    Wraps SetRayTracingMatrixArrayParam on a CommandBuffer.

    SetRayTracingMatrixParam(RayTracingShader, int, Matrix4x4)

    Wraps SetRayTracingMatrixParam on a CommandBuffer.

    SetRayTracingMatrixParam(RayTracingShader, string, Matrix4x4)

    Wraps SetRayTracingMatrixParam on a CommandBuffer.

    SetRayTracingTextureParam(RayTracingShader, int, TextureHandle)

    Wraps SetRayTracingTextureParam on a CommandBuffer.

    SetRayTracingTextureParam(RayTracingShader, string, TextureHandle)

    Wraps SetRayTracingTextureParam on a CommandBuffer.

    SetRayTracingVectorArrayParam(RayTracingShader, int, params Vector4[])

    Wraps SetRayTracingVectorArrayParam on a CommandBuffer.

    SetRayTracingVectorArrayParam(RayTracingShader, string, params Vector4[])

    Wraps SetRayTracingVectorArrayParam on a CommandBuffer.

    SetRayTracingVectorParam(RayTracingShader, int, Vector4)

    Wraps SetRayTracingVectorParam on a CommandBuffer.

    SetRayTracingVectorParam(RayTracingShader, string, Vector4)

    Wraps SetRayTracingVectorParam on a CommandBuffer.

    SetShadowSamplingMode(RenderTargetIdentifier, ShadowSamplingMode)

    Wraps SetShadowSamplingMode on a CommandBuffer.

    SetSinglePassStereo(SinglePassStereoMode)

    Wraps SetSinglePassStereo on a CommandBuffer.

    SetViewProjectionMatrices(Matrix4x4, Matrix4x4)

    Wraps SetViewProjectionMatrices on a CommandBuffer.

    SetViewport(Rect)

    Wraps SetViewport on a CommandBuffer.

    SetupCameraProperties(Camera)

    Wraps SetupCameraProperties on a CommandBuffer.

    UnmarkLateLatchMatrix(CameraLateLatchMatrixType)

    Wraps UnmarkLateLatchMatrix on a CommandBuffer.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)