Dzmitry Malyshau
c283a8b115
Update changelog and versions
2019-03-31 20:04:39 -04:00
Dzmitry Malyshau
332305012c
Blend color and the first bits of validation
2019-03-31 15:52:32 -04:00
bors[bot]
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
bors[bot]
cf521d6074
Merge #96
...
96: Add the static lifetime bound to async buffer mapping callbacks r=kvark a=aloucks
These callbacks are executed outside of the mapping function and could previously reference data that had been dropped. Related #95 .
Co-authored-by: Aaron Loucks <aloucks@cofront.net>
2019-03-23 02:21:03 +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
Joshua Groves
a55502c1e2
Remove winit from bindings generation
2019-03-07 12:37:50 -07:00
Dzmitry Malyshau
0bb4daa696
Version bumps to 0.2.0
2019-03-06 10:02:43 -05: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
8547b591ad
Dependencies and Cargo configurations update for 0.1
2019-01-24 07:39:51 -08: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
5deb6e2047
DX11 support
2019-01-17 23:03:11 -05: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
6f3499ecae
port to 2018 edition
2019-01-12 19:58:24 +01: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
Dzmitry Malyshau
ef4ee9c29d
Expose create_texture in Rust
2018-10-25 22:35:52 -04:00
Dzmitry Malyshau
de4f2b70eb
Framebuffer creation and actual begin_render_pass
2018-10-25 22:29:27 -04:00
Joshua Groves
7575652545
rust: Update signatures
2018-10-11 23:45:00 -06:00