Skip to content

Commit

Permalink
Use default limits for example (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
grovesNL authored May 27, 2024
1 parent 0fdbd90 commit 2a45708
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions examples/hello-world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ use glyphon::{
Attrs, Buffer, Cache, Color, Family, FontSystem, Metrics, Resolution, Shaping, SwashCache,
TextArea, TextAtlas, TextBounds, TextRenderer, Viewport,
};
use std::sync::Arc;
use wgpu::{
CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance,
InstanceDescriptor, Limits, LoadOp, MultisampleState, Operations, PresentMode,
RenderPassColorAttachment, RenderPassDescriptor, RequestAdapterOptions, SurfaceConfiguration,
TextureFormat, TextureUsages, TextureViewDescriptor,
CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Instance, InstanceDescriptor,
LoadOp, MultisampleState, Operations, PresentMode, RenderPassColorAttachment,
RenderPassDescriptor, RequestAdapterOptions, SurfaceConfiguration, TextureFormat,
TextureUsages, TextureViewDescriptor,
};
use winit::{
dpi::LogicalSize,
Expand All @@ -15,8 +16,6 @@ use winit::{
window::WindowBuilder,
};

use std::sync::Arc;

fn main() {
pollster::block_on(run());
}
Expand All @@ -42,14 +41,7 @@ async fn run() {
.await
.unwrap();
let (device, queue) = adapter
.request_device(
&DeviceDescriptor {
label: None,
required_features: Features::empty(),
required_limits: Limits::downlevel_defaults(),
},
None,
)
.request_device(&DeviceDescriptor::default(), None)
.await
.unwrap();

Expand Down

0 comments on commit 2a45708

Please sign in to comment.