Comments (7)
We will not add a dependency on winit or any other windowing system, the way we have it currently is the best compromise.
Regarding Canvas and related:
for OffscreenCanvas
, I have a local branch that needs some further work. The idea is that UnsafeWindowSurface
will extend OffscreenCavas
.
We will not implement a webgl context or any webgl related APIs, however we likely will implemented 2dcontext via Vello.
from deno.
For ImageBitmap
:
ImageBitmap
is designed for immutable bitmap data stored in GPU (but not necessary, for example, Firefox do not store the data in GPU)12, so it has no interface to get the underlying pixel data.- The following functions use
ImageBitmap
: - So we could make the following improvements:
- Use pixel format other than RGBA, such as that in
image::DynamicImage
. This would save memory usage. - Use a
GPUTexture
as the underlying data resource when possible. This improves performance because you don't need to transfer data from and to the GPU.
- Use pixel format other than RGBA, such as that in
Footnotes
from deno.
one you missed that uses ImageBitmap
is https://gpuweb.github.io/gpuweb/#gpuimagecopyexternalimage
from deno.
Why don't allow "none" colorSpaceConversion
when createImageBitmap
?
from deno.
Is this a bug? I think the alpha value do not need to multiply 255. And why there need a is_not_premultiplied
flag calculated from every pixels?
from deno.
- Use pixel format other than RGBA, such as that in
image::DynamicImage
. This would save memory usage.
sounds reasonable
- Use a
GPUTexture
as the underlying data resource when possible. This improves performance because you don't need to transfer data from and to the GPU.
I don't think this is viable, since to create a GPUTexture
you need a GPUDevice
, which is not feasible since a user could use a different GPUDevice
, or same GPUDevice
but with different features.
from deno.
We could hold the GPUDevice
object in a ImageBitmap
object when the underlying resource is a GPUTexture
. When we want to perform some operations, we first check whether the devices on both sides are the same, and then directly perform the operation, or copy the data to the CPU side and then transfer it to the target.
This optimization would not be implemented in the near future, so it is recorded here just for reference.
from deno.
Related Issues (20)
- node compat: lstatSync missing throwIfNoEntry
- support type checking html files
- Socket path argument ignored in node:http.Server.listen
- add --hide-traces flag to deno test to ignore the stack trace completely
- Array.prototype.some doesn't work in deno HOT 19
- coverage raw data with empty url is created when the test case include `Deno.statSync` call HOT 1
- Prisma `library` using N-API hangs often
- Bug: `deno install` produces warnings for packages it installed itself
- Bug: `deno install` doesn't print package deprecation warnings
- bug: `Uncached or missing jsr package` error in LSP for `deno_std` HOT 2
- Perf: `mocha` runs slow in Deno compared to Node
- Bug: `deno task` errors when script contains `npm run -s` HOT 1
- fails to import a module because of invalid utf8 sequence from npm packages HOT 5
- Missing indentation for named JSDoc examples
- `deno repl` takes upwards of 8 seconds to start due to randomly going through files. HOT 3
- Bare specifier resolution error message should include a hint to `deno add` the specifier
- Create flag `--workspace` to the command `deno add`
- Add test for lsp changes with `no-unused-vars`
- .npmrc: doesn't work with the LSP
- feat: `deno fmt` should inline code when `lineWidth` allows it. HOT 1
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 deno.