docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IRasterCommandBuffer

    This interface declares functions that are specific to a rasterization command buffer.

    Inherited Members
    IBaseCommandBuffer.SetInvertCulling(bool)
    IBaseCommandBuffer.SetViewport(Rect)
    IBaseCommandBuffer.EnableScissorRect(Rect)
    IBaseCommandBuffer.DisableScissorRect()
    IBaseCommandBuffer.SetGlobalFloat(int, float)
    IBaseCommandBuffer.SetGlobalInt(int, int)
    IBaseCommandBuffer.SetGlobalInteger(int, int)
    IBaseCommandBuffer.SetGlobalVector(int, Vector4)
    IBaseCommandBuffer.SetGlobalColor(int, Color)
    IBaseCommandBuffer.SetGlobalMatrix(int, Matrix4x4)
    IBaseCommandBuffer.EnableShaderKeyword(string)
    IBaseCommandBuffer.EnableKeyword(in GlobalKeyword)
    IBaseCommandBuffer.EnableKeyword(Material, in LocalKeyword)
    IBaseCommandBuffer.EnableKeyword(ComputeShader, in LocalKeyword)
    IBaseCommandBuffer.DisableShaderKeyword(string)
    IBaseCommandBuffer.DisableKeyword(in GlobalKeyword)
    IBaseCommandBuffer.DisableKeyword(Material, in LocalKeyword)
    IBaseCommandBuffer.DisableKeyword(ComputeShader, in LocalKeyword)
    IBaseCommandBuffer.SetKeyword(in GlobalKeyword, bool)
    IBaseCommandBuffer.SetKeyword(Material, in LocalKeyword, bool)
    IBaseCommandBuffer.SetKeyword(ComputeShader, in LocalKeyword, bool)
    IBaseCommandBuffer.SetViewProjectionMatrices(Matrix4x4, Matrix4x4)
    IBaseCommandBuffer.SetGlobalDepthBias(float, float)
    IBaseCommandBuffer.SetGlobalFloatArray(int, float[])
    IBaseCommandBuffer.SetGlobalVectorArray(int, Vector4[])
    IBaseCommandBuffer.SetGlobalMatrixArray(int, Matrix4x4[])
    IBaseCommandBuffer.SetLateLatchProjectionMatrices(Matrix4x4[])
    IBaseCommandBuffer.MarkLateLatchMatrixShaderPropertyID(CameraLateLatchMatrixType, int)
    IBaseCommandBuffer.UnmarkLateLatchMatrix(CameraLateLatchMatrixType)
    IBaseCommandBuffer.BeginSample(string)
    IBaseCommandBuffer.EndSample(string)
    IBaseCommandBuffer.BeginSample(CustomSampler)
    IBaseCommandBuffer.EndSample(CustomSampler)
    IBaseCommandBuffer.BeginSample(ProfilerMarker)
    IBaseCommandBuffer.EndSample(ProfilerMarker)
    IBaseCommandBuffer.IncrementUpdateCount(RenderTargetIdentifier)
    IBaseCommandBuffer.SetupCameraProperties(Camera)
    IBaseCommandBuffer.InvokeOnRenderObjectCallbacks()
    IBaseCommandBuffer.SetGlobalFloat(string, float)
    IBaseCommandBuffer.SetGlobalInt(string, int)
    IBaseCommandBuffer.SetGlobalInteger(string, int)
    IBaseCommandBuffer.SetGlobalVector(string, Vector4)
    IBaseCommandBuffer.SetGlobalColor(string, Color)
    IBaseCommandBuffer.SetGlobalMatrix(string, Matrix4x4)
    IBaseCommandBuffer.SetGlobalFloatArray(string, List<float>)
    IBaseCommandBuffer.SetGlobalFloatArray(int, List<float>)
    IBaseCommandBuffer.SetGlobalFloatArray(string, float[])
    IBaseCommandBuffer.SetGlobalVectorArray(string, List<Vector4>)
    IBaseCommandBuffer.SetGlobalVectorArray(int, List<Vector4>)
    IBaseCommandBuffer.SetGlobalVectorArray(string, Vector4[])
    IBaseCommandBuffer.SetGlobalMatrixArray(string, List<Matrix4x4>)
    IBaseCommandBuffer.SetGlobalMatrixArray(int, List<Matrix4x4>)
    IBaseCommandBuffer.SetGlobalMatrixArray(string, Matrix4x4[])
    IBaseCommandBuffer.SetGlobalTexture(string, TextureHandle)
    IBaseCommandBuffer.SetGlobalTexture(int, TextureHandle)
    IBaseCommandBuffer.SetGlobalTexture(string, TextureHandle, RenderTextureSubElement)
    IBaseCommandBuffer.SetGlobalTexture(int, TextureHandle, RenderTextureSubElement)
    IBaseCommandBuffer.SetGlobalBuffer(string, ComputeBuffer)
    IBaseCommandBuffer.SetGlobalBuffer(int, ComputeBuffer)
    IBaseCommandBuffer.SetGlobalBuffer(string, GraphicsBuffer)
    IBaseCommandBuffer.SetGlobalBuffer(int, GraphicsBuffer)
    IBaseCommandBuffer.SetGlobalConstantBuffer(ComputeBuffer, int, int, int)
    IBaseCommandBuffer.SetGlobalConstantBuffer(ComputeBuffer, string, int, int)
    IBaseCommandBuffer.SetGlobalConstantBuffer(GraphicsBuffer, int, int, int)
    IBaseCommandBuffer.SetGlobalConstantBuffer(GraphicsBuffer, string, int, int)
    IBaseCommandBuffer.SetShadowSamplingMode(RenderTargetIdentifier, ShadowSamplingMode)
    IBaseCommandBuffer.SetSinglePassStereo(SinglePassStereoMode)
    IBaseCommandBuffer.IssuePluginEvent(IntPtr, int)
    IBaseCommandBuffer.IssuePluginEventAndData(IntPtr, int, IntPtr)
    IBaseCommandBuffer.IssuePluginCustomBlit(IntPtr, uint, RenderTargetIdentifier, RenderTargetIdentifier, uint, uint)
    IBaseCommandBuffer.IssuePluginCustomTextureUpdateV2(IntPtr, Texture, uint)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public interface IRasterCommandBuffer : IBaseCommandBuffer

    Methods

    ClearRenderTarget(bool, bool, Color)

    Wraps ClearRenderTarget on a CommandBuffer.

    Declaration
    void ClearRenderTarget(bool clearDepth, bool clearColor, Color backgroundColor)
    Parameters
    Type Name Description
    bool clearDepth

    See CommandBuffer documentation

    bool clearColor

    See CommandBuffer documentation

    Color backgroundColor

    See CommandBuffer documentation

    ClearRenderTarget(bool, bool, Color, float)

    Wraps ClearRenderTarget on a CommandBuffer.

    Declaration
    void ClearRenderTarget(bool clearDepth, bool clearColor, Color backgroundColor, float depth)
    Parameters
    Type Name Description
    bool clearDepth

    See CommandBuffer documentation

    bool clearColor

    See CommandBuffer documentation

    Color backgroundColor

    See CommandBuffer documentation

    float depth

    See CommandBuffer documentation

    ClearRenderTarget(bool, bool, Color, float, uint)

    Wraps ClearRenderTarget on a CommandBuffer.

    Declaration
    void ClearRenderTarget(bool clearDepth, bool clearColor, Color backgroundColor, float depth, uint stencil)
    Parameters
    Type Name Description
    bool clearDepth

    See CommandBuffer documentation

    bool clearColor

    See CommandBuffer documentation

    Color backgroundColor

    See CommandBuffer documentation

    float depth

    See CommandBuffer documentation

    uint stencil

    See CommandBuffer documentation

    ClearRenderTarget(RTClearFlags, Color, float, uint)

    Wraps ClearRenderTarget on a CommandBuffer.

    Declaration
    void ClearRenderTarget(RTClearFlags clearFlags, Color backgroundColor, float depth, uint stencil)
    Parameters
    Type Name Description
    RTClearFlags clearFlags

    See CommandBuffer documentation

    Color backgroundColor

    See CommandBuffer documentation

    float depth

    See CommandBuffer documentation

    uint stencil

    See CommandBuffer documentation

    ClearRenderTarget(RTClearFlags, Color[], float, uint)

    Wraps ClearRenderTarget on a CommandBuffer.

    Declaration
    void ClearRenderTarget(RTClearFlags clearFlags, Color[] backgroundColors, float depth, uint stencil)
    Parameters
    Type Name Description
    RTClearFlags clearFlags

    See CommandBuffer documentation

    Color[] backgroundColors

    See CommandBuffer documentation

    float depth

    See CommandBuffer documentation

    uint stencil

    See CommandBuffer documentation

    ConfigureFoveatedRendering(IntPtr)

    Wraps ConfigureFoveatedRendering on a CommandBuffer.

    Declaration
    void ConfigureFoveatedRendering(IntPtr platformData)
    Parameters
    Type Name Description
    IntPtr platformData

    See CommandBuffer documentation

    DrawMesh(Mesh, Matrix4x4, Material)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    DrawMesh(Mesh, Matrix4x4, Material, int)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int submeshIndex)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    DrawMesh(Mesh, Matrix4x4, Material, int, int)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int submeshIndex, int shaderPass)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    DrawMesh(Mesh, Matrix4x4, Material, int, int, MaterialPropertyBlock)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int submeshIndex, int shaderPass, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[])

    Wraps DrawMeshInstanced on a CommandBuffer.

    Declaration
    void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, int shaderPass, Matrix4x4[] matrices)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    Matrix4x4[] matrices

    See CommandBuffer documentation

    DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int)

    Wraps DrawMeshInstanced on a CommandBuffer.

    Declaration
    void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, int shaderPass, Matrix4x4[] matrices, int count)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    Matrix4x4[] matrices

    See CommandBuffer documentation

    int count

    See CommandBuffer documentation

    DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int, MaterialPropertyBlock)

    Wraps DrawMeshInstanced on a CommandBuffer.

    Declaration
    void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, int shaderPass, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    Matrix4x4[] matrices

    See CommandBuffer documentation

    int count

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawMeshInstancedIndirect(Mesh, int, Material, int, ComputeBuffer)

    Wraps DrawMeshInstancedIndirect on a CommandBuffer.

    Declaration
    void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, int shaderPass, ComputeBuffer bufferWithArgs)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    DrawMeshInstancedIndirect(Mesh, int, Material, int, ComputeBuffer, int)

    Wraps DrawMeshInstancedIndirect on a CommandBuffer.

    Declaration
    void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, int shaderPass, ComputeBuffer bufferWithArgs, int argsOffset)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    DrawMeshInstancedIndirect(Mesh, int, Material, int, ComputeBuffer, int, MaterialPropertyBlock)

    Wraps DrawMeshInstancedIndirect on a CommandBuffer.

    Declaration
    void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, int shaderPass, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawMeshInstancedIndirect(Mesh, int, Material, int, GraphicsBuffer)

    Wraps DrawMeshInstancedIndirect on a CommandBuffer.

    Declaration
    void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, int shaderPass, GraphicsBuffer bufferWithArgs)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    DrawMeshInstancedIndirect(Mesh, int, Material, int, GraphicsBuffer, int)

    Wraps DrawMeshInstancedIndirect on a CommandBuffer.

    Declaration
    void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, int shaderPass, GraphicsBuffer bufferWithArgs, int argsOffset)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    DrawMeshInstancedIndirect(Mesh, int, Material, int, GraphicsBuffer, int, MaterialPropertyBlock)

    Wraps DrawMeshInstancedIndirect on a CommandBuffer.

    Declaration
    void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, int shaderPass, GraphicsBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawMeshInstancedProcedural(Mesh, int, Material, int, int, MaterialPropertyBlock)

    Wraps DrawMeshInstancedProcedural on a CommandBuffer.

    Declaration
    void DrawMeshInstancedProcedural(Mesh mesh, int submeshIndex, Material material, int shaderPass, int count, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    int count

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawMultipleMeshes(Matrix4x4[], Mesh[], int[], int, Material, int, MaterialPropertyBlock)

    Wraps DrawMultipleMeshes on a CommandBuffer.

    Declaration
    void DrawMultipleMeshes(Matrix4x4[] matrices, Mesh[] meshes, int[] subsetIndices, int count, Material material, int shaderPass, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Matrix4x4[] matrices

    See CommandBuffer documentation

    Mesh[] meshes

    See CommandBuffer documentation

    int[] subsetIndices

    See CommandBuffer documentation

    int count

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawOcclusionMesh(RectInt)

    Wraps DrawOcclusionMesh on a CommandBuffer.

    Declaration
    void DrawOcclusionMesh(RectInt normalizedCamViewport)
    Parameters
    Type Name Description
    RectInt normalizedCamViewport

    See CommandBuffer documentation

    DrawProcedural(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, int)

    Wraps DrawProcedural on a CommandBuffer.

    Declaration
    void DrawProcedural(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int indexCount)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    int indexCount

    See CommandBuffer documentation

    DrawProcedural(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, int, int)

    Wraps DrawProcedural on a CommandBuffer.

    Declaration
    void DrawProcedural(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int indexCount, int instanceCount)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    int indexCount

    See CommandBuffer documentation

    int instanceCount

    See CommandBuffer documentation

    DrawProcedural(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, int, int, MaterialPropertyBlock)

    Wraps DrawProcedural on a CommandBuffer.

    Declaration
    void DrawProcedural(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int indexCount, int instanceCount, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    int indexCount

    See CommandBuffer documentation

    int instanceCount

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawProcedural(Matrix4x4, Material, int, MeshTopology, int)

    Wraps DrawProcedural on a CommandBuffer.

    Declaration
    void DrawProcedural(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    int vertexCount

    See CommandBuffer documentation

    DrawProcedural(Matrix4x4, Material, int, MeshTopology, int, int)

    Wraps DrawProcedural on a CommandBuffer.

    Declaration
    void DrawProcedural(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount, int instanceCount)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    int vertexCount

    See CommandBuffer documentation

    int instanceCount

    See CommandBuffer documentation

    DrawProcedural(Matrix4x4, Material, int, MeshTopology, int, int, MaterialPropertyBlock)

    Wraps DrawProcedural on a CommandBuffer.

    Declaration
    void DrawProcedural(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount, int instanceCount, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    int vertexCount

    See CommandBuffer documentation

    int instanceCount

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, ComputeBuffer)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, ComputeBuffer bufferWithArgs)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, ComputeBuffer bufferWithArgs, int argsOffset)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int, MaterialPropertyBlock)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, GraphicsBuffer)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, GraphicsBuffer bufferWithArgs)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, GraphicsBuffer bufferWithArgs, int argsOffset)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int, MaterialPropertyBlock)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(GraphicsBuffer indexBuffer, Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, GraphicsBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    GraphicsBuffer indexBuffer

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, ComputeBuffer)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, ComputeBuffer bufferWithArgs)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, ComputeBuffer bufferWithArgs, int argsOffset)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int, MaterialPropertyBlock)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    ComputeBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, GraphicsBuffer)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, GraphicsBuffer bufferWithArgs)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, GraphicsBuffer bufferWithArgs, int argsOffset)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int, MaterialPropertyBlock)

    Wraps DrawProceduralIndirect on a CommandBuffer.

    Declaration
    void DrawProceduralIndirect(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, GraphicsBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MeshTopology topology

    See CommandBuffer documentation

    GraphicsBuffer bufferWithArgs

    See CommandBuffer documentation

    int argsOffset

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    DrawRenderer(Renderer, Material)

    Wraps DrawRenderer on a CommandBuffer.

    Declaration
    void DrawRenderer(Renderer renderer, Material material)
    Parameters
    Type Name Description
    Renderer renderer

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    DrawRenderer(Renderer, Material, int)

    Wraps DrawRenderer on a CommandBuffer.

    Declaration
    void DrawRenderer(Renderer renderer, Material material, int submeshIndex)
    Parameters
    Type Name Description
    Renderer renderer

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    DrawRenderer(Renderer, Material, int, int)

    Wraps DrawRenderer on a CommandBuffer.

    Declaration
    void DrawRenderer(Renderer renderer, Material material, int submeshIndex, int shaderPass)
    Parameters
    Type Name Description
    Renderer renderer

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    DrawRendererList(RendererList)

    Wraps DrawRendererList on a CommandBuffer.

    Declaration
    void DrawRendererList(RendererList rendererList)
    Parameters
    Type Name Description
    RendererList rendererList

    See CommandBuffer documentation

    SetFoveatedRenderingMode(FoveatedRenderingMode)

    Wraps SetFoveatedRenderingMode on a CommandBuffer.

    Declaration
    void SetFoveatedRenderingMode(FoveatedRenderingMode foveatedRenderingMode)
    Parameters
    Type Name Description
    FoveatedRenderingMode foveatedRenderingMode

    See CommandBuffer documentation

    SetInstanceMultiplier(uint)

    Wraps SetInstanceMultiplier on a CommandBuffer.

    Declaration
    void SetInstanceMultiplier(uint multiplier)
    Parameters
    Type Name Description
    uint multiplier

    See CommandBuffer documentation

    SetWireframe(bool)

    Wraps SetWireframe on a CommandBuffer.

    Declaration
    void SetWireframe(bool enable)
    Parameters
    Type Name Description
    bool enable

    See CommandBuffer documentation

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)

    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Methods
      • ClearRenderTarget(bool, bool, Color)
      • ClearRenderTarget(bool, bool, Color, float)
      • ClearRenderTarget(bool, bool, Color, float, uint)
      • ClearRenderTarget(RTClearFlags, Color, float, uint)
      • ClearRenderTarget(RTClearFlags, Color[], float, uint)
      • ConfigureFoveatedRendering(IntPtr)
      • DrawMesh(Mesh, Matrix4x4, Material)
      • DrawMesh(Mesh, Matrix4x4, Material, int)
      • DrawMesh(Mesh, Matrix4x4, Material, int, int)
      • DrawMesh(Mesh, Matrix4x4, Material, int, int, MaterialPropertyBlock)
      • DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[])
      • DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int)
      • DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int, MaterialPropertyBlock)
      • DrawMeshInstancedIndirect(Mesh, int, Material, int, ComputeBuffer)
      • DrawMeshInstancedIndirect(Mesh, int, Material, int, ComputeBuffer, int)
      • DrawMeshInstancedIndirect(Mesh, int, Material, int, ComputeBuffer, int, MaterialPropertyBlock)
      • DrawMeshInstancedIndirect(Mesh, int, Material, int, GraphicsBuffer)
      • DrawMeshInstancedIndirect(Mesh, int, Material, int, GraphicsBuffer, int)
      • DrawMeshInstancedIndirect(Mesh, int, Material, int, GraphicsBuffer, int, MaterialPropertyBlock)
      • DrawMeshInstancedProcedural(Mesh, int, Material, int, int, MaterialPropertyBlock)
      • DrawMultipleMeshes(Matrix4x4[], Mesh[], int[], int, Material, int, MaterialPropertyBlock)
      • DrawOcclusionMesh(RectInt)
      • DrawProcedural(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, int)
      • DrawProcedural(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, int, int)
      • DrawProcedural(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, int, int, MaterialPropertyBlock)
      • DrawProcedural(Matrix4x4, Material, int, MeshTopology, int)
      • DrawProcedural(Matrix4x4, Material, int, MeshTopology, int, int)
      • DrawProcedural(Matrix4x4, Material, int, MeshTopology, int, int, MaterialPropertyBlock)
      • DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, ComputeBuffer)
      • DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int)
      • DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int, MaterialPropertyBlock)
      • DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, GraphicsBuffer)
      • DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int)
      • DrawProceduralIndirect(GraphicsBuffer, Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int, MaterialPropertyBlock)
      • DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, ComputeBuffer)
      • DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int)
      • DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, ComputeBuffer, int, MaterialPropertyBlock)
      • DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, GraphicsBuffer)
      • DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int)
      • DrawProceduralIndirect(Matrix4x4, Material, int, MeshTopology, GraphicsBuffer, int, MaterialPropertyBlock)
      • DrawRenderer(Renderer, Material)
      • DrawRenderer(Renderer, Material, int)
      • DrawRenderer(Renderer, Material, int, int)
      • DrawRendererList(RendererList)
      • SetFoveatedRenderingMode(FoveatedRenderingMode)
      • SetInstanceMultiplier(uint)
      • SetWireframe(bool)
    • Extension Methods
    Back to top
    Copyright © 2025 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)