Commit Graph

54 Commits

Author SHA1 Message Date
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]
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]
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
Joshua Groves
d4ef083dbb Add native surface creation 2019-06-11 21:02:06 -04:00
bors[bot]
ee40f4c574 Merge #10
10: Update API for new wgpu gl backend support r=kvark a=kyren

This won't work until [this pr](https://github.com/gfx-rs/wgpu/pull/183) is merged in wgpu, but at least this way we can discuss it.

Co-authored-by: kyren <kerriganw@gmail.com>
2019-06-08 02:37:20 +00:00
Rukai
3512aeacb3 Update to latest wgpu-native 2019-06-07 20:36:17 +10:00
kyren
9faa01adb2 Fix merge snafu 2019-06-06 15:50:12 -04:00
kyren
8c53667572 Update for new wgpu PR, keep API slightly closer to vanilla 2019-06-06 15:46:02 -04:00
kyren
ae48fe07e0 Update API for in-progress wgpu-gl PR to wgpu / gfx 2019-06-06 15:46:02 -04:00
Lucas Kent
0161b0867f Upgdate to latest wgpu-native 2019-05-28 14:44:52 +10:00
Mac O'Brien
9e4baf5cf5 Fix RenderPipelineDescriptor.depth_stencil_state doc 2019-05-23 09:32:00 -05:00