Add text_multithreading to Settings in iced_glow and iced_wgpu
This commit is contained in:
parent
6469e463cd
commit
217f5be827
9 changed files with 31 additions and 16 deletions
|
|
@ -31,8 +31,13 @@ pub struct Backend {
|
|||
impl Backend {
|
||||
/// Creates a new [`Backend`].
|
||||
pub fn new(device: &wgpu::Device, settings: Settings) -> Self {
|
||||
let text_pipeline =
|
||||
text::Pipeline::new(device, settings.format, settings.default_font);
|
||||
let text_pipeline = text::Pipeline::new(
|
||||
device,
|
||||
settings.format,
|
||||
settings.default_font,
|
||||
settings.text_multithreading,
|
||||
);
|
||||
|
||||
let quad_pipeline = quad::Pipeline::new(device, settings.format);
|
||||
let triangle_pipeline = triangle::Pipeline::new(
|
||||
device,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue