Commit Graph
63 Commits
Author SHA1 Message Date
Dzmitry Malyshau 61fca00f34 Remove wgpu-bindings in favor of configuration scripts 2019-04-30 12:45:05 -04:00
Dzmitry Malyshau 0011d9f4ff Global manager for instance names on the remote client 2019-04-30 09:19:40 -04:00
Dzmitry Malyshau 52ee3e019c Remote example and improved header, tested on CI 2019-04-29 22:41:09 -04:00
bors[bot]andSerhii Plyhun 5ec6f35368 Merge #139
139: Scissors test r=kvark a=snuk182

Closes #138 

Co-authored-by: Serhii Plyhun <snuk188@gmail.com>
2019-04-28 02:28:16 +00:00
Serhii Plyhun 092bcc4afb Scissor test 2019-04-28 00:45:37 +02:00
Alexis Sellier c468840eee Support dynamic offsets
Closes #125

* Add support for dynamic offsets when setting a bind group.
* Add new binding types: `UniformBufferDynamic` and `StorageBufferDynamic`
2019-04-26 22:20:54 +02:00
Atul Bhosale af38d79d79 Format code using 'cargo fmt' 2019-04-26 22:01:47 +05:30
Dzmitry Malyshau 41141b1ae0 Wait for fences instead of device idle 2019-04-24 22:42:49 -04:00
Dzmitry Malyshau 7200f727e2 Expose device polling 2019-04-23 16:56:17 -04:00
Dzmitry Malyshau 1f4d67aeb2 Track async mapping properly 2019-04-22 13:57:35 -04:00
Dzmitry Malyshau 332305012c Blend color and the first bits of validation 2019-03-31 15:52:32 -04:00
bors[bot]andDzmitry Malyshau dfa126cf47 Merge #112
112: Correctness fixes from 0.2, plus a lot of goodies r=kvark a=kvark

These are changes from #110 back-ported to master.

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2019-03-24 00:56:28 +00:00
Dzmitry Malyshau dc31e4bdd0 Fix descriptor size, bump versions 2019-03-20 14:52:59 -04:00
Aaron Loucks 86e1249949 Add the static lifetime bound to async buffer mapping callbacks
These callbacks are executed outside of the mapping function and could
previously reference data that had been dropped. This fixes the
soundness issues described in #95, but not the buggy mapping
behavior.
2019-03-11 17:11:29 -04:00
Tristam MacDonald 1fe59e71db run cargo fmt 2019-03-05 20:41:24 -08:00
Tristam MacDonald 6ef53d7705 Convert shadow sample to map_async 2019-03-05 19:04:21 -08:00
Tristam MacDonald d179b5a85c Create buffer mapped 2019-02-28 20:11:29 -08:00
Tristam MacDonald 524ff72fd3 Typed mapping of buffers
Add a sprinkling of generics to remove the need for unsafe
code to typecast slices resulting from mapping buffers.
2019-02-28 06:56:47 -08:00
Dzmitry Malyshau d631b2c6f2 Fix depth clamping semantics 2019-02-26 22:36:58 -05:00
Dzmitry Malyshau cdc9d65395 Free memory objects 2019-02-26 15:10:43 -05:00
Tristam MacDonald 8431da80ed Implement map read/write async 2019-02-26 06:45:07 -08:00
Dzmitry Malyshau 616a3dd849 Fix leaking swapchain textures 2019-02-22 22:23:52 -05:00
Dzmitry Malyshau c21420399a Refactored tracking, now includes the views 2019-02-22 12:59:29 -05:00
Dzmitry Malyshau 056cc64eb4 Shadow example shaders and improvements 2019-02-22 12:59:29 -05:00
Dzmitry Malyshau 957a5b57dd Rust side of the shadow example 2019-02-22 12:59:29 -05:00
Seivan Heidari d63d367ec0 Allow creating a surface by passing a metal layer.
This is useful if you're using `SDL2`
```rust
    let canvas = window.into_canvas().build().unwrap();
    let metal_layer = unsafe { sdl2::sys::SDL_RenderGetMetalLayer(canvas.raw()) }; 
    let surface = instance.create_surface_with_metal_layer(metal_layer);
```
2019-02-21 21:30:41 +01:00
Dzmitry Malyshau 855bcfe176 Resource destruction refactoring, hook up to rust 2019-02-21 08:42:57 -05:00
Dzmitry Malyshau a7476ee69a rust: temporary vector of command buffers 2019-02-21 08:15:39 -05:00
Dzmitry Malyshau 00e0347b8c Renamed the impl methods, switched structure argumetns from references to contained items 2019-02-15 10:13:04 -05:00
Dzmitry Malyshau 2e21285434 Separate object identity from storage 2019-02-14 14:28:55 -05:00
Dzmitry Malyshau 844d371989 Command encoder interface 2019-02-12 16:48:56 -05:00
Tristam MacDonald 5f0df67dcc Initial compute pipeline support 2019-02-11 19:02:18 -08:00
Dzmitry Malyshau 8b6eafcdca Rust and C API for transfers 2019-02-07 08:17:13 -05:00
Dzmitry Malyshau d50f8199dd Buffer to texture copies 2019-02-03 21:59:35 -05:00
Dzmitry Malyshau 3ec4ff99b0 Vertex buffer description in the pipelines 2019-02-03 20:39:13 -05:00
Dzmitry Malyshau 3d47436129 rust: vertex/index binding 2019-02-03 15:51:54 -05:00
Dzmitry Malyshau a735eddf81 Sampler creation support 2019-02-02 22:37:51 -05:00
Dzmitry Malyshau afe00aa90f Borrow temporary queus and frames on Rust side 2019-02-02 21:02:33 -05:00
Dzmitry Malyshau 55c22a0d9a Implement basic set_buffer_data 2019-01-30 15:31:06 -05:00
Fabio Krapohl c5be22a242 added forgotten create_bind_group
fixed suggestions

use `ref` in match
2019-01-30 20:35:20 +01:00
Dzmitry Malyshau 2ec9d05074 Triangle example, minor corrections 2019-01-21 19:20:09 -05:00
Dzmitry Malyshau 32f7ae4f28 Basic buffer creation 2019-01-21 16:18:56 -05:00
Dzmitry Malyshau 64fb727bad draw methods 2019-01-21 16:18:56 -05:00
Joshua Groves c7f2425b98 Remove generic from render pass descriptor 2019-01-20 16:24:37 -07:00
Dzmitry Malyshau c868db2cc7 Windowing in the triangle example, more presentation bits 2019-01-17 09:42:59 -05:00
Dzmitry Malyshau e32112a89a Swapchain exposed on Rust side 2019-01-16 09:15:56 -05:00
porky11 a5a5b88014 use rustfmt for formatting after edits 2019-01-12 19:15:48 +01:00
Dzmitry Malyshau 6b9be3c08e Fully adopt bitflags for ShaderStageFlags and ColorWriteFlags 2018-10-30 21:51:16 -04:00
Dzmitry Malyshau fee276afa5 Cache render passes on Device level 2018-10-30 16:37:36 -04:00
Dzmitry Malyshau 879cd64b30 Texture view creation in Rust and the example 2018-10-26 12:04:20 -04:00