|
|
+ description = "Perform indirect draws by specifying a `draws` command buffer. This allows for the drawing of instanced geometry to be orchestrated by a compute shader that writes to the `draws` buffer. The `draws` buffer contains one or more commands that define how to draw instances. The `stride` is autodetected if not specified (20 for indexed geometry and 16 for non-indexed geometry).\n\nThe `draws` buffer needs to use one of these formats: ``Lua { -- drawing with vertices and indices\n { name = 'indexCount', type = 'u32' },\n { name = 'instanceCount', type = 'u32' },\n { name = 'firstIndex', type = 'u32' },\n { name = 'vertexOffset', type = 'i32' },\n { name = 'firstInstance', type = 'u32' } }\n``` ``Lua { -- drawing with vertices; indices = nil\n { name = 'vertexCount', type = 'u32' },\n { name = 'instanceCount', type = 'u32' },\n { name = 'firstVertex', type = 'u32' },\n { name = 'firstInstance', type = 'u32' } }\n```",
|