Connor Fitzgerald
a67047297c
Implement PUSH_CONSTANTS feature
2020-07-13 15:43:46 -04:00
Gabriel Majeri
e01e93a619
Use common types from wgpu-types
2020-07-13 20:12:27 +03:00
Gabriel Majeri
009d062482
Unwrap errors from transfer API
2020-07-13 14:13:23 +03:00
Dzmitry Malyshau
aef72d7fd7
Refactor examples API, improve belt documentation and logic
2020-06-23 23:51:47 -04:00
Dzmitry Malyshau
4aa7abdff8
Staging belt, use LocalSpawner for the framework
2020-06-23 23:15:47 -04:00
Dzmitry Malyshau
3f57811e7a
Another refactor of RenderPassDescriptor API
2020-06-20 19:07:06 -04:00
Dzmitry Malyshau
330986bc66
Update wgpu without peek-poke
2020-06-20 17:20:20 -04:00
Dzmitry Malyshau
65718c1e25
Add include_spirv macro
2020-06-18 01:04:42 -04:00
Dzmitry Malyshau
47cbde6782
Update with minBufferBindingSize
2020-06-17 00:13:47 -04:00
Dzmitry Malyshau
fe42169e2e
Revert "API update for RODS2"
...
This reverts commit edb3610530 .
2020-06-15 18:16:14 -04:00
Dzmitry Malyshau
edb3610530
API update for RODS2
2020-06-14 09:25:13 -04:00
Connor Fitzgerald
f8be38cc01
Implement TEXTURE_BINDING_ARRAY extension
2020-06-11 16:36:53 -04:00
Dzmitry Malyshau
9259d2e51d
Update to wgpu with shader validation
2020-06-08 20:54:39 -04:00
Connor Fitzgerald
b71c420f7a
Implement extensions interface as described in wgpu#691
2020-06-08 01:20:00 -04:00
Connor Fitzgerald
cf9d9d6656
Rustify the example's use of Extensions and SamplerDescriptor
2020-06-02 21:44:07 -04:00
Connor Fitzgerald
c4819ccf7d
Add Extension/Limit interface
2020-06-01 13:08:56 -04:00
AlphaModder
91d46ecc2b
Rename SwapChain::get_next_texture to SwapChain::get_next_frame, and have it return errors to the user.
2020-05-30 18:41:31 -07:00
Dzmitry Malyshau
686b4f71a6
Update wgpu and use write_texture
2020-05-26 10:10:32 -04:00
Dzmitry Malyshau
28c826182f
Update wgpu and use write_buffer in the examples
2020-05-14 10:12:47 -04:00
Paul Kernfeld
1172a186b1
Add Buffer.slice fn for #199
...
This fn is used for set_index_buffer, set_vertex_buffer, and
BindingResource
2020-05-10 17:37:19 -04:00
Dzmitry Malyshau
4413c4648d
Update for wgpu-core
2020-04-30 15:52:16 -04:00
Chinedu Francis Nwafili
309cc1cedd
Add screenshots of examples
...
When looking into wgpu-rs as a replacement for WebGL I went to the
examples directory on GitHub to browse for a bit.
I wanted to see some of the examples at a glance without needing to
clone the repository.
This commit enables that by adding a README to each example with a
description of the example and screenshots / example output.
In a few cases the description is a bit redundant - but my hope is that
in the future we can improve all the READMEs.
Being a web API and thus very accessible, WebGPU could end up being many
people's first introduction to graphics programming so the lower we make
the barrier the better.
2020-04-26 18:59:48 -02:30
Joshua Groves
6de7f82666
Use opaque texels in mipmap example
2020-04-19 23:38:58 -02:30
Joshua Groves
76d5855fdc
Get mipmap mostly working
...
Subresource tracking for mip levels isn't available in Canary yet, so
we can't verify that the web example output matches native
2020-04-18 01:04:28 -02:30
StarToaster
40a19ebe66
Removed zerocopy and replaced it with bytemuck.
2020-04-17 10:07:24 -04:00
Dzmitry Malyshau
1678a267cb
Update wgpu for texture descriptor changes
2020-04-14 01:13:47 -04:00
Hackpoetic
a6e81dc703
cargo fmt the code and tweak format rules
2020-04-10 22:56:24 -04:00
Joshua Groves
31e80d99b3
Update to latest wgpu
2020-03-30 07:58:06 -04:00
aloucks
d91b78bdfb
Add VertexStateDescriptor ( #221 )
...
The vertex state properties are now bundled in the VertexStateDescriptor
which matches the spec.
Fixes #220
2020-03-28 10:45:18 -04:00
bors[bot] and Aaron Loucks
7b15e24eae
Merge #210
...
210: Update WGPU deps to rev 08e8d406c1 r=kvark a=aloucks
I also moved the `path` chunks in `Cargo.toml` to a single `[patch]` section so that it's one block to commment/uncomment for local development.
Co-authored-by: Aaron Loucks <aloucks@cofront.net >
2020-03-23 01:03:33 +00:00
Rukai
111f6c4f75
Improve BufferCopyView documentation
2020-03-22 23:24:43 +11:00
Aaron Loucks
277505e9c9
Update WGPU deps to rev 08e8d406c1
2020-03-20 21:48:25 -04:00
Dzmitry Malyshau
d842432d17
Update for the latest spec changes
2020-03-15 11:25:06 -04:00
Diggory Hardy
dca51ce676
Add vertex_attr_array macro
2020-02-20 09:32:38 +00:00
Dzmitry Malyshau
8f083e54c5
Update to latest wgpu c293d6dcea
2020-01-02 01:21:08 -05:00
Jacob Greenfield
68c81df381
Update examples and tests
2019-11-21 20:35:16 -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
Dzmitry Malyshau
00c6d97dce
Return Queue separately
2019-09-10 09:26:18 -04:00
Dzmitry Malyshau
c2743c279e
Wholesome update for wgpu-0.3
2019-08-21 23:51:09 -04:00
Rukai
88965efbbf
remove usages of wgn in examples
2019-08-18 13:36:48 +10:00
Rukai
69a894e91a
Update to latest wgpu-native commit
2019-08-18 12:19:49 +10:00
Rukai
b17e85d063
Update to latest wgpu native
2019-08-11 11:44:09 +10:00
Layl
82469e13b2
Fix sampling in mipmap generation example ( #57 )
...
* Change min_filter in mipmap example to Nearest
2019-08-08 10:58:25 -04:00
Svenn-Arne Dragly
00e0996e8d
Make opengl_to_wgpu_matrix into a constant
2019-07-08 10:36:25 +02:00
Svenn-Arne Dragly
a113e5b78a
Add conversion matrix from OpenGL to wgpu
...
The matrices in the examples are given in an OpenGL-like coordinate system,
while a Vulkan-like coordinate system is used by wgpu. This was previously
partially corrected in the shader and by flipping the up axis of the camera,
but left the x-axis mirrored in the final result.
This change adds a conversion matrix to framework.rs that can be used
to convert from OpenGL to wgpu. This also allows us to set the
winding-order to counter-clockwise, which matches the ordering in the data.
2019-07-05 17:47:37 +02:00
Dzmitry Malyshau
84434103c0
Mipmap screenshot
2019-06-16 21:15:22 -07:00
Dzmitry Malyshau
3f29a6d957
Mipmap example shader and code fixes
2019-06-16 21:15:16 -07:00
Dzmitry Malyshau
e9f687014b
Mipmapping example
2019-06-16 21:15:15 -07:00