Connor Fitzgerald
27ffe5026b
Implement buffer to any copy bounds checking
2020-06-08 11:24:33 -04:00
Dzmitry Malyshau
16424bfac1
Add shader validation bool to DeviceDescriptor
2020-06-06 23:34:04 -04:00
Connor Fitzgerald
f32cb103b8
Implement extensions interface as described in #691
2020-06-06 02:00:41 -04:00
Connor Fitzgerald
ade7ce10b2
Rustification of Extensions and SamplerDescriptor
2020-06-02 21:04:25 -04:00
Dzmitry Malyshau
cc418e747d
Implement Default for BufferSize and PowerPreference
2020-06-02 13:44:12 -04:00
Dzmitry Malyshau
ae17ea7625
New map_async logic, change the semantic of mapped buffers.
2020-06-02 13:44:00 -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
Connor Fitzgerald
415ce97415
Implement anisotropic filtering and extensions/limits
2020-06-01 10:43:54 -04:00
Dzmitry Malyshau
7181bfe977
Move BufferSize to wgpu-types
2020-05-30 01:19:42 -04:00
bors[bot] and AlphaModder
6650b94ff6
Merge #668
...
668: Return failures to the user in swap_chain_get_next_texture, rather than transparently reconfiguring. r=kvark a=AlphaModder
TODO:
- [x] Change `Global::swap_chain_get_next_texture` in `wgpu-core`.
- [x] Update `wgpu_swap_chain_get_next_texture` in `wgpu-native`. (https://github.com/gfx-rs/wgpu-native/pull/32 )
- [x] Wrap `SwapChainOutput`/`SwapChainStatus` in a nice enum in `wgpu-rs`. (https://github.com/gfx-rs/wgpu-rs/pull/323 )
- [ ] Update `wgpu_bindings` (?)
Co-authored-by: AlphaModder <quasiflux@gmail.com >
2020-05-26 21:26:15 +00:00
AlphaModder
e89c3d6b1c
Alter swap_chain_get_next_texture to bubble up failures to the user.
2020-05-26 14:15:22 -07:00
Dzmitry Malyshau
dff37bb65d
Move TextureDataLayout to wgpu-types
2020-05-26 00:15:09 -04:00
mitchmindtree
a8b8bc8283
Implement From<TextureFormat> for TextureComponentType
2020-05-02 02:33:22 +02:00
Dzmitry Malyshau
f35dd741aa
Android support ( #625 )
2020-05-01 00:22:00 -04:00
Dzmitry Malyshau
f64b2dd3bb
trace: make Id serialization nicer
2020-04-30 09:55:52 -04:00
Dzmitry Malyshau
1cc548a7a2
Make descriptors generic over Label
2020-04-30 09:55:52 -04:00
Dzmitry Malyshau
0e533547a1
Split serde feature into trace+replay
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
82a7791763
Fix vertex format enum to match the native header
2020-04-14 17:14:17 -04:00
Dzmitry Malyshau
d9609ec269
Remove array layer count from texture descriptor
2020-04-13 11:44:10 -04:00
Dzmitry Malyshau
7dba052900
Version bump and CHANGELOG update
2020-04-06 08:55:39 -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
Dzmitry Malyshau
f07943f2d8
Use NonZeroU64 for Id
2020-04-04 19:43:16 -04:00
Dzmitry Malyshau
f3eee020e6
Check surface compatibility
2020-03-30 23:31:24 -04:00
bors[bot] and HeroesGrave
306554600a
Merge #540
...
540: Add serialization to more types r=kvark a=HeroesGrave
With these changes, pretty much everything in wgpu-types can be serialized with the exception of BufferDescriptor, CommandEncoderDescriptor, and TextureDescriptor which contain a `*const c_char`.
Options for dealing with those:
- Leave these types as not de/serializable
- Skip when serializing, deserialize as nullptr
- Serialize as a string, deserialize as nullptr
AFAICT there's not really a way to allow a full roundtrip for these fields because nul-terminated strings don't play nicely with serde. Maybe it could serialize as a byte array?
Co-authored-by: HeroesGrave <heroesgrave@gmail.com >
2020-03-28 14:44:08 +00:00
HeroesGrave
1702a54c5c
Add Undefined variant to CompareFunction
2020-03-28 16:20:47 +13:00
Joshua Groves
f3bb6eb230
Move more types to wgpu-types
2020-03-27 23:26:17 -02:30
HeroesGrave
98e18c5ac8
Add serialization to more types
2020-03-28 13:49:09 +13:00
Aaron Loucks
d64670aab1
Use ptr::null for default label
2020-03-26 20:26:03 -04:00
Aaron Loucks
fdcf9e7067
Add inital debug labels
...
- bind group
- bind group layout
- command encoder
- texture
2020-03-24 19:43:11 -04:00
Aaron Loucks
2700d1cc15
Add buffer debug labels
2020-03-24 19:38:07 -04:00
aloucks
e39aaa9cb3
Implement PartialEq, Eq, and Hash for more types ( #535 )
2020-03-24 19:29:18 -04:00
mitchmindtree
cce9d7a3f7
Add Clone and PartialEq implementations for SamplerDescriptor
...
Helps when attempting to support multiple samplers in an immediate mode
context (e.g. easily compare sampler descriptors and check if I need to
add a command to switch bind groups).
2020-03-19 19:44:11 +01:00
mitchmindtree
f00ab00ad9
Add derive PartialEq to Extent3d
2020-03-17 13:05:13 +01:00
mitchmindtree
29d731f902
Add Clone and PartialEq derives for Texture(View)Descriptor
...
I've come across use cases for these in nannou so thought I would add
them!
2020-03-17 12:53:13 +01: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