Skip to content

Commit 249b6a3

Browse files
committed
Improve docs
1 parent 11a1612 commit 249b6a3

File tree

1 file changed

+3
-2
lines changed
  • crates/bevy_render/src/batching

1 file changed

+3
-2
lines changed

crates/bevy_render/src/batching/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ pub trait GetBatchData {
6767
/// containing these data for all instances.
6868
type BufferData: GpuArrayBufferable + Sync + Send + 'static;
6969
/// 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.
70+
/// If the instance can be batched, also return the data used for
71+
/// comparison when deciding whether draws can be batched, else return None
72+
/// for the CompareData.
7273
fn get_batch_data(
7374
param: &SystemParamItem<Self::Param>,
7475
query_item: &QueryItem<Self::Query>,

0 commit comments

Comments
 (0)