Commit Graph

206 Commits

Author SHA1 Message Date
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
Ben Hansen
8ad575f750 finished #121 2020-11-11 15:41:06 -07:00
Ben Hansen
df1d2c412f applied change to main tutorials 2020-11-10 16:52:55 -07:00
Ben Hansen
eee5c32f8f started #121 2020-11-10 16:38:04 -07:00
Ben Hansen
6f29ba738b fixes #108 2020-10-17 14:51:41 -06:00
Ben Hansen
73aed6c6bd rustfmt 2020-09-27 23:24:43 -06:00
Ben Hansen
9d15abf7ee fixing issues in tutorial3 for #92 2020-09-23 15:38:01 -06:00
Ben Hansen
2ab37aa9b7 some fixes 2020-09-22 16:00:46 -06:00
lberrymage
fa418b2c60
Use std::iter::once for encoder queue submission
`std::iter::once` is more idiomatic for passing single-value iterators
than Some(value), and it's even intended for this case according to the
docs.
2020-09-19 22:17:36 -08:00
Ben Hansen
02921f7ffa migrated tutorial9 2020-09-11 16:05:09 -06:00
Ben Hansen
cfd36577bb migrated tutorial10 code 2020-09-11 15:03:19 -06:00
Ben Hansen
3dbb6570b7 migrated tutorial9 code 2020-09-10 22:45:32 -06:00
Ben Hansen
7274f37019 migrated tutorial8 2020-09-10 20:50:51 -06:00
Ben Hansen
f1d43b9829 env_logger::init() 2020-09-09 20:48:08 -06:00
Ben Hansen
5e4324d0ce env_logger 2020-09-08 00:42:52 -06:00
Ben Hansen
92285689ac migrated tutorial8 code 2020-09-06 23:21:40 -06:00
Ben Hansen
1e8a6ba0a5 migrated tutorial7 2020-09-05 16:45:52 -06:00
Ben Hansen
75d92c523c migrated tutorial6 2020-09-05 15:54:07 -06:00
Ben Hansen
bc6277e0f0 squashing warnings 2020-09-05 13:47:53 -06:00
Ben Hansen
6827fb5572 migrated tutorial5 2020-09-05 13:46:15 -06:00
Ben Hansen
e9e325459d using anyhow instead of failure 2020-08-29 15:22:06 -06:00
Ben Hansen
0fbb71efb6 migrated tutorial4 2020-08-28 19:47:16 -06:00
Ben Hansen
b3a6d3163d migrated tutorial4 code 2020-08-27 12:21:53 -06:00
Ben Hansen
08fa40dccc changed tutorial3 to use build script and migrated doc to 0.6 2020-08-24 13:34:37 -06:00
Ben Hansen
2abc38c769 migrated tutorial3 code 2020-08-22 18:35:12 -06:00
Ben Hansen
50a6a7d7e6 migrated tutorial2 2020-08-22 14:53:07 -06:00
Ben Hansen
3ef4df6fd9 migrated tutorial1 and removed instancing examples 2020-08-20 13:26:44 -06:00
Ben Hansen
3c4f8f9134 Merge branch 'master' into rework-instancing 2020-08-12 16:10:01 -06:00
Ben Hansen
ae1564117f fixed #75 2020-08-12 16:06:14 -06:00
Ben Hansen
a5c6b5ad48 finished instancing rewrite 2020-08-12 16:04:50 -06:00
Ben Hansen
b543c16492 started instancing rework 2020-08-11 15:28:50 -06:00
Alex Butler
a03a57bb60
Fix some easy-win lints 2020-08-03 11:44:46 +01:00
Ben Hansen
a1e5f474eb fixed #67 2020-07-01 18:17:31 -06:00
Ben Hansen
4063cc49de fixed #46 2020-06-09 21:18:45 -06:00
Ben Hansen
6ffa5c044c fixed #40 2020-05-28 13:57:07 -06:00
Ebrahim Byagowi
3555c713cb Use shaderc instead the deprecated glsl-to-spirv
I was getting lots of these errors,

glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/../Include/Common.h:99:
.../registry/src/github.com-1ecc6299db9ec823/glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/PoolAlloc.h:314:54: error: 'operator=' is a private member of 'glslang::TPoolAllocator'
    void setAllocator(TPoolAllocator* a) { allocator = *a; }
                                           ~~~~~~~~~ ^ ~~
.../registry/src/github.com-1ecc6299db9ec823/glsl-to-spirv-0.1.7/glslang/hlsl/../glslang/MachineIndependent/../Public/../Include/PoolAlloc.h:244:21: note: declared private here
    TPoolAllocator& operator=(const TPoolAllocator&);  // don't allow assignment operator
                    ^

And had to replace the apparently now deprecated glsl-to-spirv with shaderc-rs in order to
see the tutorial and thought would be useful for others also.
2020-05-27 00:05:41 +04:30
sotrh
dea850863e
Merge pull request #39 from CleanCut/tutorial1-2-improvements
Fixed some things I noticed while doing tutorial 1 and tutorial 2.
2020-05-19 15:01:59 -06:00
Ben Hansen
67f163aaec fixed crash in later example code 2020-05-19 11:46:04 -06:00
Nathan Stocks
e247decf46 Fixed some things I noticed while doing tutorial 1 and tutorial 2. 2020-05-12 22:45:23 -06:00
Ben Hansen
2fb06b49fb finishing up 2020-04-25 18:36:50 -06:00
Ben Hansen
368021047a adjusted migration to tutorial9 2020-04-25 14:10:14 -06:00
sotrh
a5bdad14ab
Merge pull request #28 from Pointime/0.5
fix async style
2020-04-25 12:24:44 -06:00
Ben Hansen
2b8e97b6fa migrated tutorial8 2020-04-25 12:21:51 -06:00
Pointu
13cbe0ca68
Update main.rs 2020-04-24 12:09:50 +08:00
Ben Hansen
baf4377930 forgot to add examples 2020-04-23 21:18:03 -06:00
Ben Hansen
a7833f3c16 migrated tutorial7 2020-04-23 21:17:41 -06:00
Ben Hansen
66eeae019c migrated tutorial6 2020-04-22 16:21:31 -06:00
downtime
311fd9000d fix my Commit error 2020-04-22 17:48:58 +08:00
downtime
764f5405db updata wgpu 0.5 2020-04-22 17:39:40 +08:00
Ben Hansen
1205f18443 migrated tutorial5 2020-04-21 13:05:48 -06:00
Ben Hansen
82048bcc31 migrated tutorial4 2020-04-19 13:57:01 -06:00
Ben Hansen
baa9e2656a tutorial3 migrated 2020-04-18 18:34:30 -06:00
Ben Hansen
f8738e4850 migrated tutorial2 2020-04-18 17:57:16 -06:00
Ben Hansen
4fb7d39bcf tutorial1 updated 2020-04-18 16:48:18 -06:00
Ben Hansen
a805bd8fa3 updated lighting tutorial to use model.rs 2020-03-12 16:57:09 -06:00
Ben Hansen
426e78dc9d fixed missing parts of model tutorial 2020-03-12 15:56:43 -06:00
Ben Hansen
994870fed1 finished model tutorial 2020-03-11 22:14:56 -06:00
Ben Hansen
84fa9fcc9d debugging adding bind groups to material 2020-03-10 21:53:46 -06:00
Ben Hansen
e6d402047f started model tutorial 2020-03-06 13:19:12 -07:00
Ben Hansen
cc0fc1f17f updated code to use texture.rs 2020-02-24 16:23:23 -07:00
sotrh
dabca840e2
Merge pull request #11 from adamnemecek/master
whitespace
2020-01-21 13:17:33 -07:00
Ben Hansen
c41ed7766e fixed depth challenge 2020-01-20 17:05:13 -07:00
Adam Nemecek
077f1b740e whitespace 2020-01-16 13:13:50 -08:00
Ben Hansen
aa45a0605f finished main.rs tutorial 8 2020-01-14 12:02:41 -07:00
Ben Hansen
da4c268fbc updated winit to 0.20 2020-01-11 15:55:08 -07:00
Ben Hansen
ab225f2725 finished instancing challenge 2020-01-09 13:08:01 -07:00
Ben Hansen
caf75336e9 finishe most of instance tutorial 2020-01-01 22:29:29 -07:00
Ben Hansen
2c57618925 created examples for loop and array 2019-12-30 17:04:38 -07:00
Ben Hansen
4daa013ecf fixing crate structure 2019-12-30 13:35:01 -07:00
Ben Hansen
df7840a3ca added AutoGithubLink and fixed uniforms challenge 2019-11-26 15:46:46 -07:00
Ben Hansen
58fa5be6d2 finished uniforms tutorial 2019-11-22 16:09:38 -07:00
Ben Hansen
348a06ee0f reorganized project, added challenge impls 2019-11-12 23:52:09 -07:00