Comments (5)
This might need feedback from @raphlinus or @armansito
from vello.
Some further thoughts:
Doing a Scene::append_encoding()
or allowing Scene::from_encoding()
and then using Scene::append()
would both require that the BumpEstimator
on the Scene
be updated to include what was in the Encoding
.
Doing a Scene::append_encoding()
would require that either the Encoding
have its own BumpEstimator
or that it be repeatedly calculated on every Scene::append_encoding()
call.
Doing a Scene::from_encoding()
would allow for it to cache that encoding's estimator.
Doing the middle option of a Scene::get_encoding_mut()
would complicate bump estimator code given the current design.
from vello.
This is all related to https://xi.zulipchat.com/#narrow/stream/147932-chatter/topic/SVG.20icon.20libraries
from vello.
I think all of the approaches you described are reasonable. My main concern wrt adding a Scene::get_encoding_mut
is that it may become a maintenance issue if we decide to add additional state to Scene that makes it more than a simple wrapper around Encoding.
The BumpEstimator is one such example as you pointed out. I'm not too worried about that particular case though, as I'm planning to move the estimation from scene construction time to resolve time (which happens later in the pipeline, right before instantiating the resources for a render).
from vello.
I have submitted a PR that allows for Scene::from(encoding)
or encoding.into()
returning a Scene
. This would then work with passing the scene wrapping the encoding to Scene::append()
without adding extra methods to Scene
for append_encoding
or the like and it is more typical Rust to do this than Scene::from_encoding()
.
from vello.
Related Issues (20)
- Long startup time under DX12 HOT 2
- [Question] was rust-gpu evaluated? HOT 2
- rustfmt settings (linebender-wide?) HOT 2
- Switch from `dialoguer` to `inquire` HOT 5
- Introduce a changelog HOT 1
- Simple example doesn't work on web. HOT 2
- Trouble drawing emojis HOT 8
- Improving bump estimation accuracy and performance
- API Issue for `Renderer`
- Full system hang on Apple M1 8GB HOT 9
- Rendering to a surface and transparency HOT 2
- Minor issue: example 'simple' - when compiled standalone - the render context needs to be unwrapped HOT 2
- Winit example slow on wsl HOT 4
- Lots of wgpu error messages HOT 5
- `vello_shaders` causes recompilation HOT 1
- How to figure out the correspondence of window size and image size HOT 4
- wgpu: Use `write_buffer_with` rather than `write_buffer` HOT 2
- Update ARCHITECTURE.md HOT 2
- Issue with flattening of a stroked cubic around a near-cusp
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 vello.