public void DrawProcedural (Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount, int instanceCount, MaterialPropertyBlock properties);
public void DrawProcedural (Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount, int instanceCount);
public void DrawProcedural (Matrix4x4 matrix, Material material, int shaderPass, MeshTopology topology, int vertexCount);

Parameters

matrix要使用的变换矩阵。
material要使用的材质。
shaderPass要使用着色器的哪个通道(或选择 -1,表示所有通道)。
topology程序化几何体的拓扑。
vertexCount要渲染的顶点数。
instanceCount要渲染的实例数。
properties在渲染之前应用的其他材质属性。请参阅 MaterialPropertyBlock

Description

添加“绘制程序化几何体”命令。

When the command buffer executes, this will do a draw call on the GPU, without any vertex or index buffers. This is mainly useful on Shader Model 4.5 level hardware where shaders can read arbitrary data from ComputeBuffer buffers.

In the vertex shader, you'd typically use the SV_VertexID and SV_InstanceID input variables to fetch data from some buffers.

另请参阅:DrawProceduralIndirectMaterialPropertyBlockGraphics.DrawProcedural


Parameters

matrix要使用的变换矩阵。
material要使用的材质。
shaderPass要使用着色器的哪个通道(或选择 -1,表示所有通道)。
topology程序化几何体的拓扑。
indexCountIndex count to render.
instanceCount要渲染的实例数。
indexBufferThe index buffer used to submit vertices to the GPU.
properties在渲染之前应用的其他材质属性。请参阅 MaterialPropertyBlock

Description

添加“绘制程序化几何体”命令。

When the command buffer executes, this will do a draw call on the GPU, without a vertex buffer. This is mainly useful on Shader Model 4.5 level hardware where shaders can read arbitrary data from ComputeBuffer buffers.

In the vertex shader, you'd typically use the SV_VertexID and SV_InstanceID input variables to fetch data from some buffers.

另请参阅:DrawProceduralIndirectMaterialPropertyBlockGraphics.DrawProcedural