Commit Graph

35 Commits

Author SHA1 Message Date
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
Mac O'Brien
96e8784098 Revise initial documentation
- Add intra-doc links
- Clarify object and function usage and behavior
- Make note of alignment requirements
2019-05-23 01:00:44 -05:00
Mac O'Brien
85c5ad070b Add docs to most items
This does not include items re-exported from wgpu-native.
2019-05-22 20:19:16 -05:00
kyren
02dc7b26c9 Update wgpu-rs to reflect latest wgpu API 2019-05-16 03:22:20 -04:00
Dzmitry Malyshau
72164c23a2 Move the library and examples from the original repo 2019-05-10 13:19:33 -04:00