Commit Graph

380 Commits

Author SHA1 Message Date
Martino Fontana
2c811f43a4 Truncated excessive float precision 2021-08-04 14:58:23 +02:00
Martino Fontana
c80b5a9ae2 Collapsed event_loop match 2021-08-04 14:17:21 +02:00
Martino Fontana
b5af53b272 Simplify DrawModel and DrawLight lifetimes 2021-08-04 13:20:15 +02:00
Ben Hansen
12c7ba6de8 fixed #182 2021-07-20 17:48:23 -06:00
Ben Hansen
f46b2f6d74 fixed #142 2021-07-20 17:40:06 -06:00
Ben Hansen
87c6fa9971 fixed #158 2021-07-20 17:25:47 -06:00
sotrh
0dce068dcc
Merge pull request #205 from hwoodiwiss/fix-tutorial-10
fix: Tutorial 10 Docs Specular Lighting Shader Problems
2021-07-20 12:27:04 -06:00
Hugo Woodiwiss
87d74d104f
Fix type issue when using pow in wgsl 2021-07-18 20:44:46 +01:00
Hugo Woodiwiss
af11f05523
Fix errors in tutorial for specular lighting
Also minor fix to file name
2021-07-18 20:36:11 +01:00
Joshua Barretto
12ba9bed0c Switched to pollster 2021-07-14 13:26:05 +01:00
sotrh
02994d1eb6
Merge pull request #197 from sotrh/0.9
0.9
2021-07-10 12:27:02 -06:00
Ari
df21a35be1 Why'll should be While 2021-07-10 03:04:39 -05:00
Ben Hansen
0813fd03a4 Merge branch 'master' into 0.9 2021-06-28 09:24:39 -06:00
Rokonio
0f63cee02e
Update README.md
When the vertex class is updated, the `bytemuck`s trait were missing
2021-06-26 14:47:59 +02:00
Ben Hansen
b5ce220c2b upgraded to 0.9 2021-06-19 16:31:49 -06:00
Ben Hansen
c22808f17a fixed #162 2021-06-19 15:27:55 -06:00
Gwenhwyfar Hartshaw
55c9a7f44c
Add missing fields in PrimitiveState
The render pipeline page was missing the `clamp_depth` and `conservative` fields of the `wgpu::PrimitiveState` struct, added with wgpu 0.8.  These were correct in the full code, but not the snippets in the doc.
2021-06-18 13:59:09 -04:00
Ben Hansen
5f77f40ec1 fixes #191 2021-06-16 19:14:00 -06:00
Ben Hansen
53a019b902 fixed #189 2021-06-09 12:55:00 -06:00
Aevyrie
2eeffbb84a
Rename RenderPassDepthStencilAttachmentDescriptor
Rename RenderPassDepthStencilAttachmentDescriptor -> RenderPassDepthStencilAttachment

See: https://docs.rs/wgpu/0.8.1/wgpu/struct.RenderPassDepthStencilAttachment.html
2021-06-08 00:19:51 -07:00
Aevyrie
e16efae327
Remove clamp_depth from DepthStencilState
clamp_depth no longer exists on DepthStencilState, and is instead only on PrimitiveState.
2021-06-08 00:01:59 -07:00
sotrh
0585ca5ca5
Merge pull request #188 from aevyrie/patch-2
wgpu 0.8 corrections
2021-06-07 17:24:47 -06:00
sotrh
f2dd260ce6
Merge pull request #187 from aevyrie/patch-1
Update README.md
2021-06-07 17:24:17 -06:00
Aevyrie
5cd42e231c
Missing qualifier 2021-06-06 10:32:38 -07:00
Aevyrie
adc729747b
Fix grammatical error 2021-06-06 10:30:46 -07:00
Ben Hansen
72cd5e9eb4 fixed broken demos 2021-06-06 11:13:38 -06:00
Aevyrie
c9003caa9f
ImageDataLayout change 2021-06-06 01:40:12 -07:00
Aevyrie
b8853689fe
wgpu 0.8 BlendState change 2021-06-05 23:52:02 -07:00
Aevyrie
382f12383e
Update README.md
Small typo.
2021-06-05 21:09:10 -07:00
sotrh
dd7d48929f
Merge pull request #181 from al-tameemi/e6029cb
Updated the use of RenderPassColorAttachmentDescriptor to RenderPassColorAttachment
2021-06-01 11:57:27 -06:00
Hugo Woodiwiss
67c9246b2f
Updated tutorial to work with tobj 3.0.x 2021-06-01 14:19:32 +01:00
Mohammed Al-Tameemi
17ca6e5a3e Updated to the new color attachment method 2021-05-25 20:21:56 -04:00
nyx
7755e16a4b Changed wgpu version in example
Removed shaderc from example
2021-05-25 13:56:38 +02:00
sotrh
e6029cb259
Merge pull request #171 from lukeKonopka/fix-readme-typo
Fix typo in README.md
2021-05-24 14:46:55 -06:00
Ben Hansen
2dd8d7bf82 fixes #176 2021-05-24 14:45:15 -06:00
Ben Hansen
de57cdf4ea fixes #173 2021-05-24 14:23:53 -06:00
Ben Hansen
9baae51fe3 finishing up 0.8 2021-05-24 13:14:17 -06:00
Ben Hansen
63e0d9c6b8 intermediate tutorials migrated 2021-05-24 11:44:10 -06:00
Ben Hansen
b160f28d48 tutorials 6-9 migrated 2021-05-20 17:53:47 -06:00
Ben Hansen
f1c7536668 migrated tutorial 4 and 5 2021-05-18 20:38:15 -06:00
Ben Hansen
68b563b8e6 updated tutorial3-pipeline docs 2021-05-18 20:28:08 -06:00
Ben Hansen
8e6e6e7092 fixed #174 2021-05-17 21:15:25 -06:00
Łukasz Konopka
10760a73de Fix typo 2021-05-11 11:41:31 +02:00
Ben Hansen
d2889cd50a beginner tutorial code now uses wgsl 2021-05-08 14:09:28 -06:00
Ben Hansen
f3ebc0e666 fixed panic in tutorials 3 and 4 2021-05-01 18:10:01 -06:00
Ben Hansen
46eb5eb139 code now builds on 0.8 2021-05-01 15:55:26 -06:00
sotrh
d8a861b515
Merge branch 'master' into cgmath-0.18 2021-04-18 19:36:12 -06:00
sotrh
c5c3e907c7
Merge pull request #163 from segalll/master
Fix typos in beginner window tutorial
2021-04-18 19:33:45 -06:00
Hiroaki Yutani
24f565ee58 Update winit to 0.24 2021-04-16 00:28:55 +09:00
Henry Segal
18dff8f171
Fix typos 2021-04-14 20:56:28 -05:00
Hiroaki Yutani
1bb374c89e docs 2021-04-11 17:09:10 +09:00
Hiroaki Yutani
7293547212 Bump cgmath version 2021-04-11 16:38:53 +09:00
Sergii Penner
597c37b8b1
Fix typo
Fixed typo 'upc close' -> 'up close'.
2021-04-02 20:10:18 -06:00
sotrh
674312d3b2
Merge pull request #147 from yutannihilation/tutorial1-use
use winit:🪟:Window
2021-03-29 09:02:09 -06:00
sotrh
d5ab40ade1
Merge pull request #151 from vigdail/patch-1
Tutorial 9. Texture::load() return type fix
2021-03-29 09:00:36 -06:00
sotrh
220366adcc
Merge pull request #152 from pop/edits/misc-typos
Misc typo and code fixes.
2021-03-29 08:59:30 -06:00
Chris
0926c253e5
Rename OUTPUT_ATTACHMENT to RENDER_ATTACHMENT 2021-03-27 11:59:08 +01:00
Elijah C. Voigt
bcc79b5e41 Misc typo and code fixes.
009: impl Vertex for ModelVertex was using the vertex_attr_array! macro.
009: RenderPipelineDescriptor has a `vertex` member not  `vertex_state`.
009: to_rgba() should be to_rgba8(), to_rgba is set to be deprecated.

010: BindGroupDescriptor has a `entries` member not `bindings`.
010: Remove re-declaration of mat4 model_matrix;
010: Prefer hard-coded [#.#; #] instead of `Foo::fn().into()`.
010: Clarify which shader frag/vert file changes are in.

011: Change Model::load return type to Result<Self>.
011: TextureDescriptor does not have a array_layer_count member.

012: Add .into() to calls in Uniforms::update_view_proj().
012: Dereference delta variable in State::input().

013: Add more changed lines to Model::load to avoid compiler yelling.
2021-03-26 09:46:37 -07:00
vigdail
9f254cc794
Tutorial 9. Texture::load() return type fix 2021-03-24 16:07:31 +00:00
Hiroaki Yutani
f0f1ec0e12 Fix module path 2021-03-22 08:19:24 +09:00
Hiroaki Yutani
e5bea6e29f Move comment 2021-03-22 08:17:21 +09:00
sotrh
80ecaade61
Merge pull request #146 from yutannihilation/doc/link-to-github
Add a link to GitHub repo
2021-03-21 16:36:27 -06:00
sotrh
195945083b
Merge pull request #149 from yutannihilation/patch-7
Minor fixes on tutorial 6
2021-03-21 16:26:16 -06:00
Hiroaki Yutani
b09302f23e Remove & from set_vertex_buffer() 2021-03-21 23:01:00 +09:00
Hiroaki Yutani
0da538190a
Minor fixes on tutorial 6 2021-03-21 19:06:48 +09:00
Hiroaki Yutani
a13c43f6b2 use winit::Window; 2021-03-20 22:45:14 +09:00
Hiroaki Yutani
79ecc1643b Add a link to GitHub repo 2021-03-20 22:35:03 +09:00
Raphael Van Hoffelen
1699be127d
Fixed spelling mistake 2021-03-15 23:29:14 -04:00
Ben Hansen
37a7e12cea updated patron list 2021-03-10 20:36:23 -07:00
Ben Hansen
3e1f1a8a8a Merge branch '0.7' 2021-03-10 20:19:53 -07:00
Ben Hansen
e833a50c44 updated news md 2021-03-10 20:19:09 -07:00
Linden Krouse
f6f6fa29c4
Fixed some spelling and grammar errors 2021-03-08 17:28:27 -05:00
sotrh
a86a0cc7dc
Merge pull request #138 from dakizu/patch-1
Fix a broken link
2021-03-03 10:21:47 -07:00
[redacted]
3bd1534016
Fix a broken link
Existing link wasn't pointing to normals page.
2021-02-27 20:49:24 -08:00
Ben Hansen
5029aa196d migrated gifs showcase 2021-02-23 21:04:42 -07:00
Ben Hansen
fb73851e5d migrated imgui showcase 2021-02-22 10:20:00 -07:00
Ben Hansen
87d0a97404 migrated intermediate tutorial docs 2021-02-21 10:26:16 -07:00
Ben Hansen
e3592e2809 migrated docs for tutorials 4-9 2021-02-18 21:30:18 -07:00
Ben Hansen
e7318530d4 migrated docs for tutorials 1-3 and cargo fmt 2021-02-18 20:56:47 -07:00
Ben Hansen
361bee3c58 migrated windowless docs 2021-02-18 20:13:23 -07:00
Ben Hansen
b4dd4654e4 intermediate tutorial code migrated 2021-02-13 01:30:42 -07:00
Ben Hansen
3901419a58 beginner tutorial code done 2021-02-12 00:18:27 -07:00
Ben Hansen
91879d405b code up to 7 migrated 2021-02-11 23:29:40 -07:00
Ben Hansen
47fd27669e migrated tutorials 1 and 2 2021-02-07 12:17:22 -07:00
Aleksey Halahan
ad0515bdfb
Fix a type in the code example
Was missing the `slice` method
2021-01-29 00:02:16 +01:00
Ben Hansen
19c99e28d0 Merge branch 'master' of https://github.com/sotrh/learn-wgpu 2021-01-26 02:03:31 -07:00
Ben Hansen
1f9024691c shaderc 1.6 -> 0.7 2021-01-26 02:02:50 -07:00
Fisher Darling
5547528cf0
Fixed small typo in beginner/tutorial8-depth 2021-01-21 19:14:01 +00:00
Renato Caldas
d44f216b14 Fix inconsistent position of the 'size' field in the beginner tutorials 2021-01-15 19:31:51 +00:00
Renato Caldas
e61b939889 Remove stray field 'colour' from State 2021-01-15 19:12:44 +00:00
Renato Caldas
67635a5fad Fix typos in beginner tutorial 4 2021-01-15 18:42:34 +00:00
Ben Hansen
a6883b59f9 Added patrons to the intro page 2021-01-14 23:50:55 -07:00
paq
6302a2372c
Fix syntax error in tutorial 6 2021-01-03 15:58:12 +09:00
DevJac
468807e8a3 Link to Cargo Book for more info about build scripts 2020-12-31 19:22:54 -07:00
Ben Hansen
733683cf6f removed camera research 2020-12-21 13:33:42 -07:00
Ben Hansen
99fd6523d7 travis build failing 2020-12-20 21:05:18 -07:00
Ben Hansen
8608460977 fixed #129 2020-12-12 15:53:42 -07:00
Ben Hansen
c92d2a528e modified camera tutorial to use DeviceEvent 2020-11-25 16:51:22 -07:00
sotrh
7b1a81ccfe
Merge pull request #123 from kanerogers/patch-4
Clarify changes to State struct
2020-11-23 23:37:16 -07:00
sotrh
68e06ea4a4
Merge pull request #125 from dannyfritz/patch-1
Texture: BufferInitDescriptor fields.
2020-11-23 23:36:09 -07:00