Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoqsh committed Feb 29, 2024
1 parent ba38f54 commit d91f34a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ let shader = cx.make_shader(triangle);
let layer = cx.make_layer(&shader, window.format());
```

You may notice the context creation requires async. This is WGPU specific, so you will have to add your favorite async runtime in the project.

Also create a triangle mesh that we're going to draw:
```rust
// Create a mesh from vertices
Expand Down

0 comments on commit d91f34a

Please sign in to comment.