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
152fad43c3
Merge #84 #85
...
84: Create buffer mapped r=kvark a=swiftcoder
I haven't really taken a swing at error handling here, posting it up early for feedback on the API.
85: Unpin nightly date for bindings generation r=kvark a=grovesNL
rust-lang/rust#57915 allows us to run bindings generation with nightly again, so we shouldn't have to pin to an older nightly date anymore (assuming everyone has a recent nightly).
Co-authored-by: Tristam MacDonald <tristam@trist.am >
Co-authored-by: Joshua Groves <josh@joshgroves.com >
2019-03-01 18:42:35 +00:00
Steven Wittens
cf3e1a5ac6
Add vertex formats
2019-03-01 10:48:12 +01:00
Tristam MacDonald
d179b5a85c
Create buffer mapped
2019-02-28 20:11:29 -08:00
bors[bot] and Tristam MacDonald
2d166d2155
Merge #80
...
80: Typed mapping of buffers r=kvark a=swiftcoder
Add a sprinkling of generics to remove the need for unsafe code to typecast slices resulting from mapping buffers.
Co-authored-by: Tristam MacDonald <tristam@trist.am >
2019-02-28 15:26:21 +00: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
bors[bot] and Steven Wittens
370236330f
Merge #82
...
82: Add updated texture formats r=kvark a=unconed
Adds the texture formats from:
https://github.com/gpuweb/gpuweb/blob/master/design/sketch.webidl
Co-authored-by: Steven Wittens <steven@acko.net >
2019-02-28 14:50:35 +00:00
Steven Wittens
b74b7fdd8c
Update textureformats in examples
2019-02-28 06:36:45 +01:00
Tristam MacDonald
0f85eb86a1
Buffer tracking and unmapping
...
Adds preliminary transitioning of buffers to mapped state.
Adds buffer unmapping to the cube sample.
Modifies wgpu_queue_submit to not hold a write lock on the device during callbacks.
2019-02-27 21:15:47 -08:00
Dzmitry Malyshau
d631b2c6f2
Fix depth clamping semantics
2019-02-26 22:36:58 -05:00
Dzmitry Malyshau
e16ceafb81
Epoch tracking of indices
2019-02-26 10:12:11 -05:00
Tristam MacDonald
8431da80ed
Implement map read/write async
2019-02-26 06:45:07 -08:00
Dzmitry Malyshau
9df7cc4a8e
Fix depth projection in the examples, add some rotation to the shadow
2019-02-22 18:43:06 -05:00
Dzmitry Malyshau
5ada8d9943
Fix full_range of arrays
2019-02-22 13:53:28 -05:00
Dzmitry Malyshau
7386a05a0d
Shadow shaders
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
Dzmitry Malyshau
59fe349633
Resize support for gfx-cube and framework
2019-02-21 15:59:24 -05:00
Dzmitry Malyshau
038e49aa25
Allow examples to run from any dir
2019-02-21 09:49:30 -05:00
Dzmitry Malyshau
855bcfe176
Resource destruction refactoring, hook up to rust
2019-02-21 08:42:57 -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
Dzmitry Malyshau
c74f8e8db8
Cube cleanup and the new generated texture
2019-02-04 09:55:32 -05:00
Dzmitry Malyshau
8f985dd09e
Fix gfx-cube example
2019-02-03 22:19:36 -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
d4c8c881d0
gfx framework GLSL reading, most of the cube example
2019-02-02 22:48:53 -05:00
Dzmitry Malyshau
ed5499d025
Basic gfx-examples framework
2019-02-02 21:02:33 -05:00