Commit Graph

287 Commits

Author SHA1 Message Date
bors[bot]
e0ec201ee5 [rs] Merge #271
271: Improve docs for BindingType r=kvark a=HalfVoxel

I think everything should be correct.

The readonly flags seem obvious at face value, but I couldn't find anything in the specifications about them (other than some unrelated validation), so I didn't add any documentation for those fields.

Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
2020-04-22 13:08:31 +00:00
Aron Granberg
8219a64ecb [rs] Improve docs for BindingType 2020-04-22 15:07:11 +02:00
bors[bot]
4f1dbaf9ef [rs] Merge #268
268: Fix hello-triangle example format and bind group r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-21 23:10:18 +00:00
Dzmitry Malyshau
628af82d4c [rs] Fix hello-triangle example format and bind group 2020-04-21 19:08:42 -04:00
bors[bot]
0f8c0947d9 [rs] Merge #262
262: Reverse srgb in hello-triangle r=kvark a=grovesNL

Reverse srgb support in hello-triangle (these were backwards by mistake)

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-04-20 02:18:30 +00:00
bors[bot]
ec8b028326 [rs] Merge #264
264: Use opaque texels in mipmap example r=kvark a=grovesNL

This fixes rendering for the mipmap example in Nightly

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-04-20 02:13:07 +00:00
Joshua Groves
3a121231b7 [rs] Use opaque texels in mipmap example 2020-04-19 23:38:58 -02:30
Joshua Groves
8f7d7ce028 [rs] Reverse srgb support in hello-triangle 2020-04-19 16:32:50 -02:30
Dzmitry Malyshau
0b20277396 [rs] Add harmony to README 2020-04-18 11:21:08 -04:00
Joshua Groves
930d2cd791 [rs] Use srgb for swapchain when possible 2020-04-18 01:04:28 -02:30
Joshua Groves
f35c3fb3cd [rs] Add wasm to CI 2020-04-18 01:04:28 -02:30
Joshua Groves
1d72176b1d [rs] Add labels to mapped descriptors where possible 2020-04-18 01:04:28 -02:30
Joshua Groves
6aa83a526b [rs] Fix some remaining TODOs in the web backend 2020-04-18 01:04:28 -02:30
Joshua Groves
0fbb75ea95 [rs] Expose more functions on the web backend 2020-04-18 01:04:28 -02:30
Joshua Groves
1f4b8801f5 [rs] Combine wasm_main/main and add console_log 2020-04-18 01:04:28 -02:30
Joshua Groves
c3c5d3927a [rs] Switch event loop back to ControlFlow::Poll 2020-04-18 01:04:28 -02:30
Joshua Groves
c4be28fcd9 [rs] Allow describe example to run on the web 2020-04-18 01:04:28 -02:30
Joshua Groves
095d682a5b [rs] Get shadow mostly working
Some of the implementation is still missing in Canary
2020-04-18 01:04:28 -02:30
Joshua Groves
3b8e0db62a [rs] Update to latest winit and wasm-bindgen 2020-04-18 01:04:28 -02:30
Joshua Groves
44083411d9 [rs] Only expose adapter info on native 2020-04-18 01:04:28 -02:30
Joshua Groves
654833ea56 [rs] Get capture mostly working
`File::create` isn't available on wasm, so we can't actually write the
output image anywhere unless we target something else as the file
system (e.g. local storage)
2020-04-18 01:04:28 -02:30
Joshua Groves
8f7d8cf27e [rs] Get mipmap mostly working
Subresource tracking for mip levels isn't available in Canary yet, so
we can't verify that the web example output matches native
2020-04-18 01:04:28 -02:30
Joshua Groves
c7dc1f6140 [rs] Get skybox working 2020-04-18 01:04:28 -02:30
Joshua Groves
49ef627bb0 [rs] Get cube working 2020-04-18 01:04:28 -02:30
Joshua Groves
9aedbed2eb [rs] Get boids working 2020-04-18 01:04:28 -02:30
Joshua Groves
75ec7155f1 [rs] Add web backend 2020-04-18 01:04:28 -02:30
bors[bot]
f984eb1997 [rs] Merge #259
259: Remove zerocopy and replace with bytemuck. r=kvark a=StarArawn

fixes #146 

I've removed `zerocopy` from the examples and replaced it with `bytemuck`. I ran all of the examples/tests and everything ran great in vulkan on my windows box.

Co-authored-by: StarToaster <startoaster23@gmail.com>
2020-04-17 14:11:30 +00:00
StarToaster
f2d429570c [rs] Removed zerocopy and replaced it with bytemuck. 2020-04-17 10:07:24 -04:00
bors[bot]
32cf9d22e7 [rs] Merge #256
256: Update wgpu for texture descriptor changes r=grovesNL a=kvark

Updates for https://github.com/gfx-rs/wgpu/pull/577
Detaches us from crates-io dependency (again).

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-14 11:30:02 +00:00
Dzmitry Malyshau
4537304571 [rs] Update wgpu for texture descriptor changes 2020-04-14 01:13:47 -04:00
bors[bot]
18a80e735f [rs] Merge #254
254: Specify expected structure for draw_indirect and draw_indexed_indirect r=kvark a=lachlansneff

~~Based on https://www.khronos.org/opengl/wiki/Vertex_Rendering#Indirect_rendering.~~ Turns out the opengl docs are wrong. Based on https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkDrawIndirectCommand.html.

Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2020-04-12 16:14:15 +00:00
Lachlan Sneff
3d7bc8c528 [rs] Fix documentation based on vulkan docs 2020-04-12 10:56:15 -04:00
bors[bot]
c3ebf3b9a3 [rs] Merge #251
251: cargo fmt the code and tweak format rules r=kvark a=chao-mu

Ran cargo fmt after removing rules per @kvark, two of which were because they needed nightly to run.

Co-authored-by: Hackpoetic <chao-mu@hackpoetic.com>
2020-04-12 12:24:30 +00:00
Lachlan Sneff
5f8ab36938 [rs] Specified expected structure for draw_indirect and draw_indexed_indirect 2020-04-11 23:33:31 -04:00
bors[bot]
77aee875b3 [rs] Merge #252
252: Typo r=grovesNL a=maghoff

Remove extra word

Co-authored-by: Magnus Hoff <maghoff@gmail.com>
2020-04-11 12:59:28 +00:00
Magnus Hoff
61159e6831 [rs] Typo
Remove extra word
2020-04-11 13:09:45 +02:00
Hackpoetic
fb87e4fa84 [rs] add missing rust format config 2020-04-11 00:05:18 -04:00
Hackpoetic
1927fe6586 [rs] cargo fmt the code and tweak format rules 2020-04-10 22:56:24 -04:00
Igor Shaposhnik
877e0016eb [rs] Migrate CI to GitHub Actions 2020-04-10 10:59:21 -04:00
bors[bot]
bea1935c75 [rs] Merge #249
249: Derive `Default` for `CommandEncoderDescriptor` r=kvark a=grovesNL

Fixes #243

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-04-09 13:29:16 +00:00
bors[bot]
20ce74df41 [rs] Merge #245
245: Check `cargo doc` in CI r=kvark a=hecrj

This PR makes CI run `cargo doc` using the latest nightly.

It is currently panicking here:

6dee5f1126/src/librustdoc/passes/mod.rs (L411)

I thought it was an incorrect link causing it, but the issue seems to persist even after fixing the link.

__Update__: Issue opened upstream by @grovesNL (https://github.com/rust-lang/rust/issues/70874).

Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2020-04-09 04:18:15 +00:00
Héctor Ramón Jiménez
546f9e31a5 [rs] Fix RenderPass::set_vertex_buffer doc link 2020-04-09 06:07:20 +02:00
Héctor Ramón Jiménez
359f80dec3 [rs] Check cargo doc in CI 2020-04-09 06:07:17 +02:00
Joshua Groves
0fb2e78651 [rs] Derive Default for CommandEncoderDescriptor 2020-04-09 00:55:45 -02:30
bors[bot]
d1efc5d028 [rs] Merge #241
241: Version bump to 0.5 r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-06 13:55:34 +00:00
Dzmitry Malyshau
de89c89627 [rs] Version bump to 0.5 2020-04-06 09:10:28 -04:00
bors[bot]
17e8c6f1f2 [rs] Merge #236
236: Update to wgpu-core with Option<Id> r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-05 03:33:29 +00:00
Dzmitry Malyshau
ebe7c27e8c [rs] Update to wgpu-core with Option<Id> 2020-04-04 23:32:37 -04:00
bors[bot]
5b6754eecb [rs] Merge #234
234: Implement Send and Sync for BufferReadMapping and BufferWriteMapping r=kvark a=Healthire



Co-authored-by: William Lundstedt <walundstedt@gmail.com>
2020-04-03 13:03:47 +00:00
William Lundstedt
87f2f3658d [rs] Implement Send and Sync for BufferReadMapping and BufferWriteMapping 2020-04-03 14:59:09 +02:00