UnityEngine.Rendering.CommandBuffer.DrawProcedural C# (CSharp) Method

DrawProcedural() private method

private DrawProcedural ( Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount ) : void
matrix Matrix4x4
material Material
shaderPass int
topology MeshTopology
vertexCount int
return void
        public void DrawProcedural(Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount)
        {
            MaterialPropertyBlock properties = null;
            int instanceCount = 1;
            INTERNAL_CALL_DrawProcedural(this, ref matrix, material, shaderPass, topology, vertexCount, instanceCount, properties);
        }

Same methods

CommandBuffer::DrawProcedural ( Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount, [ instanceCount, [ properties ) : void
CommandBuffer::DrawProcedural ( Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount, int instanceCount ) : void

Usage Example

Example #1
0
 // Draws a full screen triangle as a faster alternative to drawing a full screen quad.
 public static void DrawFullScreen(CommandBuffer commandBuffer, Material material,
                                   MaterialPropertyBlock properties = null, int shaderPassId = 0)
 {
     commandBuffer.DrawProcedural(Matrix4x4.identity, material, shaderPassId, MeshTopology.Triangles, 3, 1, properties);
 }
All Usage Examples Of UnityEngine.Rendering.CommandBuffer::DrawProcedural