Commit Graph

37 Commits

Author SHA1 Message Date
Rukai
453fca1a06 [rs] Rename msaa-linelist to msaa-line 2019-06-20 16:20:01 +10:00
bors[bot]
507d6a0714 [rs] Merge #25
25: Add MSAA example r=kvark a=rukai

This example is the same as the triangle example except:
*    The render pipeline is created with a sample_count of 4
*    A new texture with a sample_count of 4 is created and set as the color_attachment instead of the swapchain
*    The swapchain is now specified as a resolve_target

It doesn't work yet as wgpu-native doesn't handle MSAA yet.

Co-authored-by: Rukai <rubickent@gmail.com>
2019-06-20 03:51:14 +00:00
Rukai
051be88729 [rs] Add MSAA + LineList example 2019-06-20 12:06:57 +10:00
bors[bot]
77e5f6ed25 [rs] Merge #23
23: Mipmapping example r=grovesNL a=kvark

Depends on https://github.com/gfx-rs/wgpu/pull/226

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2019-06-18 00:18:47 +00:00
Dzmitry Malyshau
14f98aa627 [rs] Mipmap screenshot 2019-06-16 21:15:22 -07:00
Dzmitry Malyshau
f2cd0348dc [rs] Mipmap example shader and code fixes 2019-06-16 21:15:16 -07:00
Dzmitry Malyshau
2b047f996b [rs] Mipmapping example 2019-06-16 21:15:15 -07:00
bors[bot]
154ed3a9a5 [rs] Merge #21
21: Add native surface creation r=kvark a=grovesNL

- (API change) Rename `create_surface_with_metal_layer` to `create_surface_from_macos_layer` to match wgpu-native
- Expose `create_surface_from_xlib` and `create_surface_from_windows_hwnd`

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2019-06-12 03:48:56 +00:00
Joshua Groves
8653786e83 [rs] Run cargo fmt 2019-06-11 21:02:30 -04:00
Joshua Groves
e039b70cbb [rs] Add native surface creation 2019-06-11 21:02:06 -04:00
bors[bot]
004f5d9743 [rs] 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
bors[bot]
0815d99967 [rs] Merge #20
20: Update to latest wgpu-native r=kvark a=rukai



Co-authored-by: Rukai <rubickent@gmail.com>
2019-06-07 15:51:37 +00:00
Rukai
d25966f960 [rs] Update to latest wgpu-native 2019-06-07 20:36:17 +10:00
kyren
b76b81d9fa [rs] Fix merge snafu 2019-06-06 15:50:12 -04:00
kyren
95659b1843 [rs] Update for new wgpu PR, keep API slightly closer to vanilla 2019-06-06 15:46:02 -04:00
kyren
e4e30acc67 [rs] Update API for in-progress wgpu-gl PR to wgpu / gfx 2019-06-06 15:46:02 -04:00
bors[bot]
fe901fc7c2 [rs] Merge #16
16: Fix tests and run in CI r=grovesNL a=rukai

Fixes tests and enables running tests with vulkan on windows and linux.
If there are other platforms + backends I should add let me know.

Co-authored-by: Lucas Kent <rubickent@gmail.com>
2019-06-05 02:31:56 +00:00
bors[bot]
cb1b2416f6 [rs] Merge #17
17: Add GLX map PNG r=grovesNL a=paulkernfeld

Not sure if you're looking for more examples but if so, here is a 2D map

Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com>
2019-06-05 01:58:27 +00:00
Paul Kernfeld
999d79ffd0 [rs] Add GLX map PNG 2019-06-02 19:52:57 -04:00
Dzmitry Malyshau
fb3cf05be1 [rs] Native update to 803c607794 2019-05-31 15:00:12 -04:00
Dzmitry Malyshau
67914001e1 [rs] Native update to 9276cd51c0 2019-05-31 10:32:05 -04:00
Lucas Kent
50501e7a13 [rs] Fix tests and run in CI 2019-05-29 17:20:33 +10:00
bors[bot]
b9ad929785 [rs] Merge #15
15: Upgdate to latest wgpu-native r=kvark a=rukai



Co-authored-by: Lucas Kent <rubickent@gmail.com>
2019-05-28 11:56:17 +00:00
Lucas Kent
a47fa5397d [rs] Upgdate to latest wgpu-native 2019-05-28 14:44:52 +10:00
bors[bot]
b465f33f7a [rs] Merge #11
11: Add docs to most items r=kvark a=cormac-obrien

This does not include items re-exported from wgpu-native. We also still need examples, comprehensive panic documentation, etc.

Co-authored-by: Mac O'Brien <cormac@c-obrien.org>
2019-05-23 15:24:27 +00:00
Mac O'Brien
b2e126b1e2 [rs] Fix RenderPipelineDescriptor.depth_stencil_state doc 2019-05-23 09:32:00 -05:00
Mac O'Brien
26ad4c011a [rs] 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
35627ac47d [rs] Add docs to most items
This does not include items re-exported from wgpu-native.
2019-05-22 20:19:16 -05:00
bors[bot]
139b4ffc39 [rs] Merge #5
5: updated version of wgpu-native r=kvark a=jazzay



Co-authored-by: Jason Jarvis <jazzay@gmail.com>
2019-05-17 15:02:49 +00:00
Jason Jarvis
186bc56c65 [rs] updated version of wgpu-native 2019-05-17 08:01:14 -07:00
bors[bot]
5d6aa77682 [rs] Merge #4
4: Update wgpu-rs to reflect latest wgpu API r=kvark a=kyren

Not sure if everything here is correct, especially `RenderPassColorAttachmentDescriptor` and the `resolve_target` field.

Co-authored-by: kyren <kerriganw@gmail.com>
2019-05-16 14:24:44 +00:00
kyren
2910030266 [rs] Update wgpu-rs to reflect latest wgpu API 2019-05-16 03:22:20 -04:00
bors[bot]
fdef638a06 [rs] Merge #3
3: Rename hello_ examples to hello- (#2) r=kvark a=paulkernfeld



Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com>
2019-05-16 06:27:03 +00:00
Paul Kernfeld
0654d8bbb7 [rs] Rename hello_ examples to hello- (#2) 2019-05-14 21:29:31 -04:00
Dzmitry Malyshau
2c1bdbd40f [rs] Add readme and screenshots 2019-05-10 21:51:55 -04:00
Dzmitry Malyshau
d8b3372250 [rs] Move the library and examples from the original repo 2019-05-10 13:19:33 -04:00
Dzmitry Malyshau
d47f7e5bde Initial commit 2019-05-10 10:36:31 -04:00