Ben Hansen
9811c4037e
troubleshooting wasm failure
2022-02-13 13:31:00 -07:00
Ben Hansen
05767326d9
tutorial 9 working on desktop
2022-02-05 11:00:28 -07:00
Ben Hansen
3492bb703f
working on tutorial9
2022-01-25 19:54:21 -07:00
Ben Hansen
cbce0a546e
experimenting with loader on tutorial9
2022-01-25 19:54:21 -07:00
Ben Hansen
2bb9be1660
tutorials 2-8 now have working web examples
2022-01-25 19:54:21 -07:00
Ben Hansen
a6f6a492e7
tutorial1 now has a web example
2022-01-25 19:52:36 -07:00
Ben Hansen
59f0ec16f0
migrated tutorial to use lib.r
2022-01-25 19:52:33 -07:00
sotrh
4b837c08de
Merge pull request #304 from yutannihilation/remove-padding-indices
...
Remove a padding in INDICES
2022-01-15 15:15:24 -07:00
Hiroaki Yutani
8c6c491b11
Remove padding in INDICES
2022-01-11 22:50:25 +09:00
sotrh
46e8e882d4
Merge pull request #302 from yutannihilation/remove-is-updown-pressed
...
Remove is_{up,down}_pressed
2022-01-10 17:16:58 -07:00
Hiroaki Yutani
72446bc9ee
Remove is_{up,down}_pressed
2022-01-11 07:48:51 +09:00
rhysd
853d44e257
remove unused constant NUM_INSTANCES
2022-01-11 02:59:31 +09:00
TonalidadeHidrica
0b9840e1ec
Fix typo: w -> we
2022-01-04 03:44:01 +09:00
Ben Hansen
c0843b3f92
fixes #285
2021-12-29 11:57:29 -07:00
Ben Hansen
4ae6c3f89f
added 0.12.md and examples now compile
2021-12-27 13:48:52 -07:00
Ben Hansen
2073b0fbc1
updated to 0.12
2021-12-27 12:09:25 -07:00
Benoît Vermont
9ba4795d9c
Fix challenge depth buffer challenge
...
The shader.wgsl contains entry point `vs_main` and `fs_main`, but the rust code would reference them `main` and `main`
It would cause the following crash when trying to run the code:
```
[2021-11-25T14:50:43Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In Device::create_render_pipeline
note: label = `Render Pipeline`
error matching VERTEX shader requirements against the pipeline
unable to find entry point 'main'
```
This fixes it.
2021-11-25 15:56:52 +01:00
Newbyte
c189f75913
Fix challenge code for tutorial 3 crashing
...
Only one of the pipelines were actually adjusted, so let's fix that.
2021-11-22 18:46:43 +01:00
Ferdinand Schäffler
a39f95af13
Converted code examples.
2021-10-27 12:58:05 +02:00
Ben Hansen
e0e52584a6
fixed pong for 0.11
2021-10-15 12:05:03 -06:00
Ben Hansen
7cc67f5678
migrated to 0.11
2021-10-08 18:40:29 -06:00
Martino Fontana
11b24cebc5
model.rs: added "_bind_group" where appropriate
2021-09-25 21:52:42 +02:00
sotrh
316c429d2f
Merge pull request #228 from VillSnow/patch-1
...
fix type name Camera to CameraUniform
2021-09-12 11:35:44 -06:00
Ben Hansen
fd589adbe1
finished code migration
2021-09-11 15:14:31 -06:00
Ben Hansen
7c90669f89
migrated beginner tutorials
2021-09-11 11:11:30 -06:00
Ben Hansen
c0754f9dd3
migrated tutorial5
2021-09-11 10:37:05 -06:00
Ben Hansen
57d7eb763f
migrated tutorial4
2021-09-11 10:19:15 -06:00
Ben Hansen
0f618a2ff8
migrated tutorial3
2021-09-11 10:10:18 -06:00
Ben Hansen
b322b8f6b8
reworked swapchain tutorial to use surface
2021-09-11 09:34:13 -06:00
VillSnow
d13ba88020
fix type name Camera to CameraUniform
2021-09-09 18:46:43 +09:00
Ben Hansen
30c5693fb9
no more validation errors
2021-09-07 17:17:08 -06:00
Ben Hansen
2c3e2be256
changing getting surface texture to use intermediate variable
2021-09-04 17:42:09 -06:00
Ben Hansen
d47d986542
testing on master
2021-08-28 16:40:52 -06:00
Ben Hansen
822f2d6191
started 0.10
2021-08-28 16:11:33 -06:00
Martino Fontana
372082ae90
Rename "Uniform" to "Camera" in labels too
2021-08-27 00:07:50 +02:00
Martino Fontana
b2b77294f6
Change "uniform" naming to "camera"
2021-08-26 21:09:51 +02:00
Ben Hansen
70bf012641
fixed tangent/bitangent comp and cargo fmt
2021-08-15 10:44:57 -06:00
Rokonio
62a9c476f0
Add a forgoten semicolon
2021-08-10 21:54:47 +02:00
sotrh
1030f47529
Merge pull request #212 from rokonio/master
...
Fixing #200
2021-08-09 16:20:36 -06:00
Rokonio
7fb76b4e0e
Fixing #200
2021-08-09 00:46:47 +02:00
Rokonio
2e6e413d73
Fixing #200
2021-08-09 00:45:59 +02:00
Rokonio
33163b5592
Fixing #200
2021-08-09 00:42:07 +02:00
Rokonio
543ffe58f2
Fixing #200
2021-08-09 00:40:54 +02:00
Rokonio
ffe786a9ee
Fixing #200
2021-08-09 00:40:03 +02:00
Rokonio
7bbbae06dd
Fixing #200
2021-08-09 00:39:03 +02:00
Rokonio
2914e54824
Fixing #200
2021-08-09 00:34:31 +02:00
Rokonio
7f5dbe7245
Fixing #200
2021-08-09 00:32:21 +02:00
Rokonio
0a403411bf
Fixing #200
2021-08-09 00:31:11 +02:00
Rokonio
848758a792
Fixing #200
2021-08-09 00:30:15 +02:00
Rokonio
40590e35f4
Fixing #200
2021-08-09 00:28:27 +02:00
Rokonio
747b399d13
Fixing #200
2021-08-09 00:27:31 +02:00
Rokonio
7467a11b5b
Fixing #200
2021-08-09 00:25:48 +02:00
Rokonio
a0e39bf097
Fixing #200
2021-08-09 00:21:54 +02:00
Rokonio
0c1bbb686b
Fixing #200
2021-08-09 00:21:00 +02:00
Martino Fontana
2941cf7cd9
Updated dependencies where I can just change the number (not "tobj" and "gif") ("compute" can't start a trace) (didn't touch "pong" and "imgui-demo")
2021-08-04 16:25:23 +02:00
Martino Fontana
c55ea96d0d
Removed unnecessary .clone()
2021-08-04 15:13:08 +02:00
Martino Fontana
467cec5367
Removed unnecessary borrows
2021-08-04 15:06:53 +02:00
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
Joshua Barretto
12ba9bed0c
Switched to pollster
2021-07-14 13:26:05 +01:00
Ben Hansen
b5ce220c2b
upgraded to 0.9
2021-06-19 16:31:49 -06:00
Hugo Woodiwiss
8a01d0e519
Update model loading tutorial to tobj 3.0.x
2021-06-01 13:53:03 +01:00
nyx
5e52c7dc07
Removed shaderc from Cargo.toml dependencies
2021-05-25 13:54:54 +02:00
Ben Hansen
4e6c061914
fixing warnings
2021-05-18 19:20:29 -06:00
Ben Hansen
2f8bf02710
finished migrating challenge shaders and cargo fmt
2021-05-18 19:16:36 -06:00
Ben Hansen
f9ee77844d
removed shaderc from build.rs
2021-05-17 21:28:12 -06:00
Ben Hansen
8e6e6e7092
fixed #174
2021-05-17 21:15:25 -06:00
Ben Hansen
d2889cd50a
beginner tutorial code now uses wgsl
2021-05-08 14:09:28 -06:00
Ben Hansen
8a72178353
tutorial9 wgsl attempt
2021-05-04 15:31:58 -06:00
Ben Hansen
601273ec2b
debugging tutorials 9 and 10
2021-05-01 20:26:28 -06:00
Ben Hansen
add4ba7328
fixed panics in tutorials 5-8
2021-05-01 19:02:38 -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
Hiroaki Yutani
24f565ee58
Update winit to 0.24
2021-04-16 00:28:55 +09:00
Hiroaki Yutani
9c07ba5388
tutorial9
2021-04-11 16:52:38 +09:00
Hiroaki Yutani
3bf2c0f9ed
tutorial8
2021-04-11 16:48:54 +09:00
Hiroaki Yutani
156a61b459
tutorial7
2021-04-11 16:46:59 +09:00
Hiroaki Yutani
6b5d3eee87
tutorial6
2021-04-11 16:45:02 +09:00
Hiroaki Yutani
7293547212
Bump cgmath version
2021-04-11 16:38:53 +09:00
Ben Hansen
4fa3ab7b6d
migrated tutorial3 challenge
2021-03-03 02:12:42 -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
eff8418d37
cargo fmt
2021-02-18 20:04:09 -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
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
Renato Caldas
d44f216b14
Fix inconsistent position of the 'size' field in the beginner tutorials
2021-01-15 19:31:51 +00: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
aa773303df
cargo fmt
2020-11-18 11:48:37 -07:00
Ben Hansen
e462670b72
migrated docs for tutorial7
2020-11-18 11:47:13 -07:00
Ben Hansen
c770e1860f
fixed code for #116
2020-11-18 10:48:28 -07:00
Ben Hansen
aa8f9f269d
fixed #119
2020-11-14 20:07:40 -07:00
Ben Hansen
0620f0b05d
migrated ModelVertex to use bytemuck derive
2020-11-14 14:57:39 -07:00
Ben Hansen
0ccb80e7e3
updated Uniforms struct to use bytemuck derive
2020-11-12 19:28:53 -07:00
Ben Hansen
5abaa16ac1
updated bytemuck to use derive as per #109
2020-11-11 16:06:53 -07:00