We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a1612 commit 249b6a3Copy full SHA for 249b6a3
crates/bevy_render/src/batching/mod.rs
@@ -67,8 +67,9 @@ pub trait GetBatchData {
67
/// containing these data for all instances.
68
type BufferData: GpuArrayBufferable + Sync + Send + 'static;
69
/// Get the per-instance data to be inserted into the [`GpuArrayBuffer`].
70
- /// Get the data used for comparison when deciding whether draws can be
71
- /// batched.
+ /// If the instance can be batched, also return the data used for
+ /// comparison when deciding whether draws can be batched, else return None
72
+ /// for the CompareData.
73
fn get_batch_data(
74
param: &SystemParamItem<Self::Param>,
75
query_item: &QueryItem<Self::Query>,
0 commit comments