Comments (3)
I'm conflicted on &Device vs Rc vs Arc honestly. I wish there was a good way to let the user choose what they need.
from pixels.
I was thinking about this on the plane the other day. There is no requirement for pixels
to own the wgpu
context. It just makes using the library very easy by hiding much of the boilerplate.
The wgpu
context can borrow structs owned by anything else. It's just a matter of keeping sane lifetimes. This would be exposed through a new method, like pixels::new_with_context
. I'll try sketching the API sometime.
from pixels.
That also works. I just ran into an issue where I need Arc, so this would be appreciated.
Also note that https://github.com/parasyte/pixels/blob/wip/render-api-v2/src/renderers.rs#L16 should be &Device
from pixels.
Related Issues (20)
- How to make the pixel buffer larger than the window HOT 7
- Pixels no longer handles scaling factors correctly. HOT 10
- imgui UI out of bounds in example "imgui-winit" HOT 2
- Instant crash on MacOS when window is shrunk vertically HOT 4
- pixels.render() fails randomly HOT 7
- using `pixels.resize_surface` to decrease the height of the buffer will panic HOT 2
- `pixels` panics when using egui HOT 6
- The "minimal-tao" example not working on Linux HOT 3
- Error: AdapterNotFound HOT 5
- Web Example: Possible to occupy all available space ? Key Input HOT 2
- Custom shader wasm-compatible? HOT 2
- Premultiplication with `tiny-skia` HOT 2
- Feature request: Getting window position from pixel position HOT 1
- Android example HOT 1
- Black screen on Ubuntu 23 within VMWare Workstation 17 HOT 5
- Transparent windows don't work due to hardcoded alpha mode HOT 2
- No possibility of changing the surface `PresentMode` without recreating the whole `Pixels` instance HOT 3
- Not able to create pixel buffer with winit 0.29.2 HOT 8
- Using pixels with eframe HOT 4
- Invaders example doesn't work when using pixels from crates.io HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixels.