Joshua Groves
b3e4253df1
Return futures from request adapter/request device
2020-03-16 16:35:51 -02:30
Joshua Groves
d1371dbe37
Remove Hash for ID types
2020-03-16 08:53:51 -02:30
bors[bot] and mitchmindtree
a96a5faa24
Merge #200
...
200: Derive `Hash` and `PartialEq` for unique identifier wrapper types r=kvark a=mitchmindtree
This is particularly useful downstream for distinguishing between
instances of these types.
I was unsure about `Device` as I noticed it has a `Temp` field that
looks like it might eventually store some non-PartialEq/Hash-friendly
fields.
Let me know if you'd like me to add a derive for `Device` or if there
are any issues with those I have updated.
Co-authored-by: mitchmindtree <mitchell.nordine@gmail.com >
2020-03-15 23:18:13 +00:00
Aaron Loucks
2425312660
Add note that slot refers to the index in RenderPipelineDescriptor::vertex_buffers
...
Also fixed intra-doc links for `set_vertex_buffer`.
2020-03-15 15:38:31 -04:00
mitchmindtree
cf5fcc4037
Derive Hash and PartialEq for unique identifier wrapper types
...
This is particularly useful downstream for distinguishing between
instances of these types.
I was unsure about `Device` as I noticed it has a `Temp` field that
looks like it might eventually store some non-PartialEq/Hash-friendly
fields.
Let me know if you'd like me to add a derive for `Device` or if there
are any issues with those I have updated.
2020-03-15 18:43:16 +01:00
Dzmitry Malyshau
d842432d17
Update for the latest spec changes
2020-03-15 11:25:06 -04:00
Aaron Loucks
89fda33142
Reexport Backend and DeviceType from wgpu-core
...
These types are exposed on the `AdaptorInfo` struct.
2020-03-04 22:22:26 -05:00
daxpedda
a9c7a0f5ef
Expose enumerate_adapters.
2020-02-26 16:35:31 +01:00
Dzmitry Malyshau
9f129baef3
Fix vertex_attr_macro self invocation paths
2020-02-20 13:10:14 -05:00
Diggory Hardy
dca51ce676
Add vertex_attr_array macro
2020-02-20 09:32:38 +00:00
Dzmitry Malyshau
17214fe986
wgpu update with DynamicOffset
2020-02-16 21:49:56 -05:00
Dzmitry Malyshau
db8109f566
Enforce life times of render pass attachments
2020-01-31 13:18:46 +01:00
Dzmitry Malyshau
a192f31aad
Reduce Rust requirements for Pin usage
2020-01-23 20:01:01 -05:00
Dzmitry Malyshau
c4be01cb9c
Update wgpu-core
2020-01-23 19:14:16 -05:00
Dzmitry Malyshau
25584eb263
Enforce lifetimes of resource dependencies of passes
2020-01-15 11:06:19 -05:00
Dzmitry Malyshau
46bd6db78a
Update to wgpu version with raw passes
2020-01-15 11:06:19 -05:00
Dzmitry Malyshau
064a387a52
Update wgpu dependency
2020-01-13 12:45:52 -05:00
Layl
45426eef9c
Change Queue::submit to take &self
2019-12-31 16:24:49 +01:00
Layl
e3aa2d23a3
Mark CommandEncoder as !Send !Sync
2019-12-28 18:38:30 +01:00
Dzmitry Malyshau
ae7cdfc094
Export BIND_BUFFER_ALIGNMENT
2019-11-22 15:50:01 -05:00
Tristam MacDonald
cc32408fa2
prototype of async/await for buffer mapping
2019-11-21 21:42:22 -08:00
Jacob Greenfield
0227c08ac8
Satisfy clippy
2019-11-21 20:35:19 -05:00
Jacob Greenfield
be4e62ccc9
Use u8 slices for buffer mapping
2019-11-21 20:34:39 -05:00
Jacob Greenfield
88e8269182
cargo fmt
2019-11-21 00:20:28 -05:00
Dzmitry Malyshau
3609e52bfd
Fix generic bounds on buffer mapping
2019-11-20 21:25:46 -05:00
Cormac O'Brien
05e697831a
Use count rather than size in map_read/write_async
...
Fixes #124
2019-11-20 04:29:09 -06:00
Dzmitry Malyshau
b40bb71679
Wholesome update for the git master of wgpu-native
2019-11-19 20:58:32 -05:00
Anton Lazarev
dd23e8f015
Handle error case for SwapChain::get_next_texture
2019-11-05 14:46:25 -08:00
Dzmitry Malyshau
e0abf982e1
Update to wgpu-native b8d26c9186
2019-10-30 22:26:42 -04:00
Jay Oster
f336fb5825
Fix docs describing how to create a surface
2019-10-02 21:15:10 -07:00
Paul Kernfeld
2a1c94f5e9
Add Adapter::get_info
2019-09-21 21:10:58 -04:00
Tristam MacDonald
3f0256bf4e
Add indirect draw/dispatch methods
2019-09-15 12:57:22 -07:00
Dzmitry Malyshau
00c6d97dce
Return Queue separately
2019-09-10 09:26:18 -04:00
Dzmitry Malyshau
71b0a7c217
Update to the new swapchain model
2019-09-09 21:39:55 -04:00
Dzmitry Malyshau
c6522fa60b
Update wgpu-native to the commit that has no backend features.
...
This change removes the dependency on gfx-rs backends, refactors
Adapter and Surface creation to be done from nothing.
2019-08-29 22:04:43 -04:00
Héctor Ramón Jiménez
ad11bf071b
Use HasRawWindowHandle in create_surface
2019-08-22 22:26:07 +02:00
Dzmitry Malyshau
c2743c279e
Wholesome update for wgpu-0.3
2019-08-21 23:51:09 -04:00
yanchith
a63bb3f745
Prevent possible double panic in Drop impls
...
Drop impls for SwapChainOutput, RenderPass and ComputePass now only
call out to wgn if not thread::panicking().
2019-08-20 17:00:19 +02:00
Rukai
69a894e91a
Update to latest wgpu-native commit
2019-08-18 12:19:49 +10:00
Daniel Salvadori
bce324528e
Fix missing lifetime
2019-08-14 18:20:52 -03:00
Rukai
53b5297bdc
Cleanup examples by using wgpu::read_spirv instead of manually creating a Vec<u32>
2019-08-13 06:39:24 +10:00
bors[bot] and Rukai
e515a59309
Merge #58
...
58: Update to latest wgpu native r=kvark a=rukai
This PR is waiting on https://github.com/gfx-rs/wgpu/pull/276 but also allows us to test 276
Co-authored-by: Rukai <rubickent@gmail.com >
2019-08-12 01:40:25 +00:00
Rukai
b17e85d063
Update to latest wgpu native
2019-08-11 11:44:09 +10:00
bors[bot] and Seivan Heidari
5614eca46d
Merge #48
...
48: Exposing `set_viewport_rect()` on `RenderPass`. r=kvark a=seivan
Noticed that while viewport work with floats, scissors only work with unsigned integers.
Not sure if relevant but [`width & height`](https://www.khronos.org/registry/OpenGL-Refpages/es2.0/xhtml/glViewport.xml ) might not be able to be negative.
Co-authored-by: Seivan Heidari <seivan.heidari@icloud.com >
2019-08-10 13:52:26 +00:00
Seivan Heidari
cfa1d4bc38
Exposing set_viewport() on RenderPass.
2019-07-29 22:52:08 +02:00
Paul Kernfeld
5138c488c6
Replace Pod using zerocopy crate
...
See https://github.com/gfx-rs/wgpu/pull/256#issuecomment-515277497
2019-07-27 13:58:31 -04:00
Noah Hüsser
ce382f3735
Adapt to changes in wgpu for a configurable PresentMode.
...
Gl fixes.
Try fix this mess ..
GL fixess
Revert intermediate wgpu branch
Set proper wgpu-native commit ref
Adapt examples to the new features.
2019-07-17 21:27:32 +02:00
Noah Huesser
2e277bd02b
Add the possibility to set a stencil on a renderpass.
2019-07-11 10:37:05 +02:00
Paul Kernfeld
6c8f3bc08c
Add Pod trait bound for all BufferMapAsyncResult data
2019-06-23 20:55:30 -04:00
Joshua Groves
774dbcd99a
Run cargo fmt
2019-06-11 21:02:30 -04:00