Comments (4)
It makes sense to me that every wgpu
type that has an ID should be comparable by that ID.
from wgpu.
Yeah global ids aren't going away any time soon, so I think it's reasonable to have these
from wgpu.
So I am a bit stumped on how to test this. I have implemented the traits for Buffer
but as there's no constructor for the type, I'm at a bit of a loss as to how to write unit tests.
If you have any suggestions, let me know, then I'll look for other types that have an id
and add the traits for those, as well.
from wgpu.
@dfellis have a look at the tests under wgpu/tests
. They come with a test framework that makes it easier to create buffers from a device. A bit overkill on one hand but otherwise we'd need to start mocking things which gets complex (and we might just do that in that very framework if we ever figure that device creation etc. is too slow for tests that should only validate things like this)
from wgpu.
Related Issues (20)
- Performance regression from "Replace fence with semaphore"
- Point and line primitives must not have depth bias
- Queue::write_buffer seems to resize the buffer in question (?) HOT 2
- wgpu-core: panic if more then 8 color attachment passed
- can't compile compute shader HOT 8
- Setting a pipeline-overridable shader constant to `f64::INFINITY` results in a crash on certain platforms HOT 4
- In OpenGL backend, attempting to render to a multisampled texture with the usages `RENDER_ATTACHMENT | TEXTURE_BINDING` fails HOT 5
- Using `@builtin(sample_mask)` in a fragment shader with OpenGL panics due to a naga translation error HOT 1
- Restrict usage of `f64` with some built-in functions HOT 2
- Maximum dynamic offset limit is incorrect per the spec HOT 6
- get_bind_group_layout fails when layout is auto HOT 1
- Memory write concurrency guarantees HOT 1
- regression: compute example doesn't work on wayland HOT 12
- Mip level support with Metal not working? HOT 1
- Enable `clippy::tests_outside_test_module` lint HOT 2
- Took more than 10minutes to create compute pipeline on Linux HOT 6
- BufferAsyncError in webassembly (Linux only) HOT 2
- Support `first` and `either` interpolation sampling
- 0u64 has been mutated to a wierd value after transferring to webgpu then copy back (Webassembly only) 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 wgpu.