Dzmitry Malyshau
b5c38ae40d
Prevent internal thread from cleanup
2020-06-04 22:45:59 -04:00
Dzmitry Malyshau
aa12e7dc14
Read-only depth-stencil support
2020-06-01 19:54:56 -04:00
Dzmitry Malyshau
321a5cee0f
Enforce copy buffer-texture row pitch alignment
2020-06-01 16:51:42 -04:00
Dzmitry Malyshau
6fb2b272e4
Fix recycling of command buffers
2020-05-31 11:50:24 -04:00
Dzmitry Malyshau
7181bfe977
Move BufferSize to wgpu-types
2020-05-30 01:19:42 -04:00
Paul Kernfeld and Paul Kernfeld
d529526e7f
"Use the whole buffer" is !0 , not 0 ( #663 )
...
* "Use the whole buffer" is !0 , not 0
Fixes #654
Applies to BufferBinding, set_vertex_buffer, set_index_buffer
* Add BufferSize type alias
* Make BufferSize a transparent type
Add a custom serialization "buddy" type
Use BufferSize::WHOLE instead of crate::WHOLE_SIZE
* Move SerBufferSize into device::trace mod
Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com >
2020-05-26 13:25:06 -04:00
Dzmitry Malyshau
4e1d76013c
Add missing repr(C) on copy views
2020-05-26 09:35:09 -04:00
Dzmitry Malyshau
e4659b6d05
Bring back BufferCopyView
2020-05-26 00:15:09 -04:00
Dzmitry Malyshau
679dba044b
Remove array layers from texture copies
2020-05-26 00:15:09 -04:00
Dzmitry Malyshau
dff37bb65d
Move TextureDataLayout to wgpu-types
2020-05-26 00:15:09 -04:00
Dzmitry Malyshau
fcf1d2762d
Use TextureDataLayout consistently
2020-05-26 00:15:09 -04:00
Dzmitry Malyshau
a4ea5358ef
Implement write_texture
2020-05-26 00:15:09 -04:00
yanchith
58a60392c2
Fix possible out-of-bounds when trace log level enabled
...
Also, even when there was no out-of-bounds access, the log statement talked
about an incorrect submission index.
2020-05-17 12:17:36 +02:00
Dzmitry Malyshau
4c62b20282
Multiple fixes and clean ups.
...
- Clean up after the pending writes on destroy.
- Fix temporary buffer creation.
- Fix internal thread initialization by the command allocator.
- Clean up player event_loop usage.
2020-05-11 14:07:02 -04:00
Dzmitry Malyshau
35f2e8b70e
Move queue logic into a submodule
2020-05-10 22:40:04 -04:00
Dzmitry Malyshau
ba8c2eae54
Implement Queue::write_buffer
2020-05-10 01:21:47 -04:00
Dzmitry Malyshau
cf8513baf5
Proper maintenance of the command pools
2020-05-06 11:15:08 -04:00
Dzmitry Malyshau
4c448c3fc5
Add a way to destroy a pass by a mutable reference ( #647 )
2020-05-05 21:52:06 -04:00
Dzmitry Malyshau
fbc533bfee
Save bind group layout inside pipeline layouts
2020-05-04 23:46:06 -04:00
Paul Kernfeld
cc2e6db7f5
Make assertions more verbose in src/command
...
This contributes to #485
2020-05-02 13:16:09 -04:00
Dzmitry Malyshau
9500cfa4f3
Keep Adapter alive by the device
2020-05-01 00:20:54 -04:00
Dzmitry Malyshau
f64b2dd3bb
trace: make Id serialization nicer
2020-04-30 09:55:52 -04:00
Dzmitry Malyshau
018417f174
trace: replaying all the commands
2020-04-30 09:55:52 -04:00
Dzmitry Malyshau
47f37ad78e
trace: player skeleton
2020-04-30 09:55:52 -04:00
Dzmitry Malyshau
622d9ecc74
trace: all the commands
2020-04-30 09:55:52 -04:00
Dzmitry Malyshau
5035ffdfe2
Split limits and private features, add tracing module
2020-04-30 09:55:52 -04:00
Dzmitry Malyshau
5e458b5d45
Separate public usage from internal use ( #601 )
2020-04-21 09:12:40 -04:00
Dzmitry Malyshau
8eefe269c1
Derive swapchain layout off the load operation
2020-04-16 21:49:24 -04:00
bors[bot] and Aron Granberg
6b0751f1f8
Merge #586
...
586: Improve drawing error messages r=kvark a=HalfVoxel
Co-authored-by: Aron Granberg <aron.granberg@gmail.com >
2020-04-15 12:59:58 +00:00
Aron Granberg
41a6425fb2
Improve drawing error messages
2020-04-15 02:29:37 +02:00
Aron Granberg
5f6accc206
Improve error messages when passing buffers with the wrong usage flags
2020-04-14 20:18:00 +02:00
Dzmitry Malyshau
3cc4fa51bc
Track pipeline layout lifetime
2020-04-14 00:58:30 -04:00
Dzmitry Malyshau
920c00931d
Fix tracking of the initial state during replacement.
...
When multiple "replace" style transitions are happening,
we weren't properly retaining the "first" state, which
is required for proper stitching of command buffers.
This logic is fixed and fortified with a new set of
"change" and "merge" tests in the track module.
2020-04-10 00:39:23 -04:00
Dzmitry Malyshau
74e9e89fe7
Refactor tracking of swapchain images as attachments
...
We were improperly detecting if a swapchain image has already
been used by a command buffer. In this case, we need to assume
that it's already in the PRESENT state.
2020-04-10 00:38:53 -04:00
Aaron Loucks
b6ec8440e9
Increase default maximum vertex buffer inputs from 8 to 16
...
Additionally, the input states are now stored in a `SmallVec` to
enable higher limits.
Fixes #558
2020-04-07 21:00:06 -04:00
Dzmitry Malyshau
a3aefe2535
Rustfmt stable pass
2020-04-06 08:55:39 -04:00
Rukai
99161cbeb5
Use crates.io release of peek-poke
2020-04-05 23:06:02 -04:00
bors[bot] and Kunal Mohan
8f9f13fc8c
Merge #550
...
550: Add check for bound pipeline r=kvark a=kunalmohan
fix #456
Validate that a pipeline is bound before issuing any draw/dispatch call.
Co-authored-by: Kunal Mohan <kunalmohan99@gmail.com >
2020-04-05 19:58:26 +00:00
Kunal Mohan
aef0c7c2c4
Add check for bound pipeline
...
fix #456
Validate that a pipeline is bound before issuing
draw/dispatch call.
2020-04-05 11:16:50 +05:30
Dzmitry Malyshau
f07943f2d8
Use NonZeroU64 for Id
2020-04-04 19:43:16 -04:00
Joshua Groves
f3bb6eb230
Move more types to wgpu-types
2020-03-27 23:26:17 -02:30
Dzmitry Malyshau
8aeeb8e318
Port to gfx-extras and gfx-hal-0.5
2020-03-27 00:54:01 -04:00
Dzmitry Malyshau
5e2f200223
Track GPU use of compute and render pipelines ( #534 )
2020-03-24 19:28:26 -04:00
Dzmitry Malyshau
0a30cf4b46
Recycled identity management ( #533 )
2020-03-24 19:18:42 -04:00
Joshua Groves
b9259c0c8c
Move more types into wgpu-types
2020-03-16 23:57:50 -02:30
Joshua Groves
b58c15815b
Move more shared types into wgpu-types
2020-03-14 23:08:05 -02:30
Dzmitry Malyshau
095f320470
Wholesome spec update.
...
Biggest change is that buffer binding is done one by one. There is a number of renamings of the fields, also the binding types are expanded.
2020-03-13 23:59:05 -04:00
Joshua Groves
9940aef599
Move some types into shared wgpu-types crate
2020-03-10 22:36:23 -02:30
Kartikaya Gupta
b5ba17012a
Update WebGPU to mozilla-central from hg rev 0f1a8e4c6a76b3b0b16902c7fdfe2356c60ca351
2020-02-20 15:49:32 -05:00
Dzmitry Malyshau
a0759b983d
Fix binding compatibility of an absent group
2020-02-16 20:17:53 -05:00