Commit Graph

44 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
c21c7bd889 tutorials 12 and 13 now use wgsl 2021-05-17 21:09:39 -06:00
Ben Hansen
d2db4fa575 migrated tutorial11-normals code 2021-05-15 16:58:02 -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
a81a844bd6 tutorial11 2021-04-11 16:56:01 +09:00
Hiroaki Yutani
7293547212 Bump cgmath version 2021-04-11 16:38:53 +09: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
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
Ben Hansen
1f9024691c shaderc 1.6 -> 0.7 2021-01-26 02:02:50 -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
aa773303df cargo fmt 2020-11-18 11:48:37 -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
9a221fb2c4 migrated Light struct to use bytemuck derive 2020-11-14 14:43:29 -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
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
5409e8ea1e rogue copy paste 2020-09-22 16:02:23 -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
4186d5af45 migrated tutorial12 code 2020-09-14 13:28:50 -06:00
Ben Hansen
8d5de2d87c migrated tutorial11 2020-09-14 12:53:22 -06:00
Alex Butler
a03a57bb60
Fix some easy-win lints 2020-08-03 11:44:46 +01:00
Dzmitry Malyshau
e9ea5854ca
Fix a mismatch in light VS versus FS varying of v_color 2020-07-09 16:37:40 -04: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
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
Ben Hansen
67f163aaec fixed crash in later example code 2020-05-19 11:46:04 -06:00
Ben Hansen
752533a706 finish normal mapping 2020-05-04 13:03:39 -06:00
Ben Hansen
387e17ba5f finished normal mapping tutorial 2020-05-03 22:45:42 -06:00
Ben Hansen
a118435ba7 debugging the normal mapping 2020-05-01 14:14:10 -06:00
Ben Hansen
ec5339bd3b started normals tutorial 2020-04-29 12:31:35 -06:00