File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed
renderer/src/component/primitive Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -235,12 +235,7 @@ fn to_text_buffer(
235235 let mut text_buffer = Buffer :: new ( font_system, Metrics :: new ( font_size, 1.2 * font_size) ) ;
236236 let attrs = Attrs :: new ( ) . family ( Family :: Name ( font_family) ) ;
237237 text_buffer. set_size ( font_system, None , None ) ;
238- text_buffer. set_text (
239- font_system,
240- text,
241- & attrs,
242- Shaping :: Advanced ,
243- ) ;
238+ text_buffer. set_text ( font_system, text, & attrs, Shaping :: Advanced ) ;
244239 text_buffer. shape_until_scroll ( font_system, false ) ;
245240 text_buffer
246241}
Original file line number Diff line number Diff line change @@ -50,15 +50,13 @@ async fn create_device() -> (Device, Queue) {
5050 . await
5151 . expect ( "No adapter" ) ;
5252 adapter
53- . request_device (
54- & DeviceDescriptor {
55- label : Some ( "naviz video renderer" ) ,
56- required_features : Features :: default ( ) ,
57- required_limits : Limits :: default ( ) ,
58- memory_hints : MemoryHints :: default ( ) ,
59- trace : wgpu:: Trace :: default ( ) ,
60- } ,
61- )
53+ . request_device ( & DeviceDescriptor {
54+ label : Some ( "naviz video renderer" ) ,
55+ required_features : Features :: default ( ) ,
56+ required_limits : Limits :: default ( ) ,
57+ memory_hints : MemoryHints :: default ( ) ,
58+ trace : wgpu:: Trace :: default ( ) ,
59+ } )
6260 . await
6361 . expect ( "Failed to create device" )
6462}
You can’t perform that action at this time.
0 commit comments