Dzmitry Malyshau
ab10d36ac0
Rename get_encoder to get_encoder_mut
2020-12-23 11:20:08 -05:00
Dzmitry Malyshau
394135f725
Fix and improve object labels and command markers
2020-12-15 11:28:11 -05:00
Connor Fitzgerald
19fb491262
Fix validation of compressed mipmaps
2020-12-05 19:30:26 -05:00
Connor Fitzgerald
8f430ab1ef
Implement ETC2 and ASTC textures
2020-12-05 19:30:26 -05:00
Mikko Lehtonen
4498f172cc
Retain labels for resources
...
As a braking api change, adds also label for the error id generation,
for labeling invalid ids too.
Also adds query methods the label.
2020-11-19 00:09:21 +02:00
Dzmitry Malyshau
c87a94f976
Early texture destruction
2020-10-08 23:21:11 -04:00
Dzmitry Malyshau
0a7d81351c
Handle cases where buffer contents are destroyed
2020-10-08 12:57:17 -04:00
lberrymage
41228ef1a4
Fix clippy warnings about using if-let over match
...
The specific lint triggered was
https://rust-lang.github.io/rust-clippy/master/index.html#single_match .
2020-09-25 23:02:51 -08:00
Maximilian Lupke
5d50b2ac24
Allow copying from depth textures ( #901 )
...
* Allow copying from depth textures
* Rename TextureFormat::is_depth_format to just is_depth
* Only allow Depth32Float format for copying, and only as source
2020-08-28 10:58:48 -04:00
bors[bot] and Kunal Mohan
59f0996eab
Merge #895
...
895: Improve validation in B2B copies and RenderCommands r=kvark a=kunalmohan
**Connections**
_Link to the issues addressed by this PR, or dependent PRs in other repositories_
**Description**
_Describe what problem this is solving, and how it's solved._
Validation for the following have been added-
- Validate all parameters in B2B copy even if `copy_size == 0`.
- Check for copy operations issued within same buffer.
- `RenderPass.setViewport()`
- `RenderPass.setScissorRect()`
**Testing**
_Explain how this change is tested._
Tested with CTS in Servo. More tests pass now. Will test on wgpu-rs now.
<!--
Non-trivial functional changes would need to be tested through:
- [wgpu-rs](https://github.com/gfx-rs/wgpu-rs ) - test the examples.
- [wgpu-native](https://github.com/gfx-rs/wgpu-native/ ) - check the generated C header for sanity.
Ideally, a PR needs to link to the draft PRs in these projects with relevant modifications.
See https://github.com/gfx-rs/wgpu/pull/666 for an example.
If you can add a unit/integration test here in `wgpu`, that would be best.
-->
Co-authored-by: Kunal Mohan <kunalmohan99@gmail.com >
2020-08-24 18:00:47 +00:00
Kunal Mohan
a10e5cdb53
Check whether attachments are of same size or not
2020-08-24 23:02:04 +05:30
Dzmitry Malyshau
b8b7561796
Improve texture creation validation
2020-08-24 13:00:34 -04:00
Kunal Mohan
f266431f24
Improve validation in b2b copies and RenderCommands
2020-08-24 21:14:07 +05:30
Connor Fitzgerald
f9265bccd2
Improve buffer and texture overrun error messages
2020-08-19 11:44:54 -04:00
Dzmitry Malyshau
d1da6d8106
Switch gfx-hal to 0.6
2020-08-17 10:34:50 -04:00
Dzmitry Malyshau
dbd7e2c579
Separate valid internal IDs from external ones
2020-08-04 11:16:59 -04:00
Dzmitry Malyshau
3291b72368
Update naga and fix type widths
2020-07-31 23:46:19 -04:00
Connor Fitzgerald
00a5be7f7b
Fix multi-layer copies
2020-07-30 16:58:29 -04:00
Connor Fitzgerald
e5c647745e
Implement TEXTURE_COMPRESSION_BC extension
2020-07-29 18:43:50 -04:00
Dzmitry Malyshau
6e10518f12
Reformat the alignment errors, add a stride check
2020-07-28 11:48:49 -04:00
Connor Fitzgerald
cb485f3798
Convert all logging to tracing and add fmt logger
2020-07-25 19:33:21 -04:00
Gabriel Majeri
a27b24215d
Convert the existing error types to thiserror
2020-07-18 07:29:20 +03:00
Gabriel Majeri
f3b80f1d8d
Unify wgpu-core and wgpu-rs types
2020-07-13 18:39:49 +03:00
Gabriel Majeri
98e4f73a10
Error handling for data transfer API
2020-07-10 21:50:22 +03:00
Connor Fitzgerald
62a870280f
Refine Logging Levels
2020-06-22 02:13:04 -04:00
Connor Fitzgerald
c1f0021a05
Add Chrome Backend
2020-06-20 20:55:59 -04:00
Connor Fitzgerald
1b2cf3cd22
Add Tracing and Instrument Entry Points
2020-06-20 14:26:50 -04:00
Connor Fitzgerald
27ffe5026b
Implement buffer to any copy bounds checking
2020-06-08 11:24:33 -04:00
Dzmitry Malyshau
321a5cee0f
Enforce copy buffer-texture row pitch alignment
2020-06-01 16:51:42 -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
Paul Kernfeld
cc2e6db7f5
Make assertions more verbose in src/command
...
This contributes to #485
2020-05-02 13:16:09 -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
a3aefe2535
Rustfmt stable pass
2020-04-06 08:55:39 -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
yanchith
0d9ad70468
Add TODOs for range_plus_one clippy warnings
2020-01-17 14:44:17 +01:00
Dzmitry Malyshau
017a54ff97
Refactor usage tracking to be truly sparse
2020-01-08 22:43:19 -05:00
Dzmitry Malyshau
605620b20c
Buffer creation in wgpu-remote
2019-11-28 17:18:25 -05:00
Dzmitry Malyshau
6c632d1366
Separate native from the core
2019-11-16 00:36:23 -05:00