submit

function

submit(_material, _data)

Description

Immediately submits the dynamic batch for rendering.

Arguments

Name Type Description
_material Struct.BBMOD_Material A material. Must use a shader that expects ids in the vertex format.
_data Array<Real> An array containing data for each rendered instance.

Returns

Struct.BBMOD_DynamicBatch Returns self.

Note

The dynamic batch is not submitted if the material used is not compatible with the current render pass!

See also

BBMOD_DynamicBatch.render, BBMOD_DynamicBatch.render_object, BBMOD_DynamicBatch.submit_object, BBMOD_ERenderPass, BBMOD_Material

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.