Commit Graph

15 Commits

Author SHA1 Message Date
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