File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
renderer/src/text_layer/sdf_atlas Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,7 @@ impl SdfAtlasRenderer {
134
134
pass. set_pipeline ( & self . pipeline ) ;
135
135
// DI: May do this inside this renderer and pass a Matrix to prepare?.
136
136
pass. set_bind_group ( 0 , context. view_projection_bind_group , & [ ] ) ;
137
- // DI: May share index buffers between renderers?
138
- //
139
- // OO: Don't pass the full index buffer here, only what's actually needed (it is growing
140
- // only)
141
-
137
+ // Optimization: May share index buffers between renderers?
142
138
let max_quads = batches
143
139
. iter ( )
144
140
. map ( |b| b. quad_count )
@@ -156,7 +152,7 @@ impl SdfAtlasRenderer {
156
152
{
157
153
let text_layer_matrix = context. view_projection_matrix * model_matrix;
158
154
159
- // OO : Set bind group only once and update the buffer?
155
+ // Optimization : Set bind group only once and update the buffer?
160
156
context. queue_view_projection_matrix ( & text_layer_matrix) ;
161
157
162
158
let pass = & mut context. pass ;
You can’t perform that action at this time.
0 commit comments