Commit Graph

680 Commits

Author SHA1 Message Date
Ben Hansen
9b02850917 started threading 2020-09-25 21:27:38 -06:00
Ben Hansen
09fe8b9f91 added link to gifs showcase in tutorial5 2020-09-25 15:57:57 -06:00
Ben Hansen
4acb2d60c1 missed ops in tutorial2 2020-09-23 15:56:34 -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
sotrh
03c8ce0a59
Merge pull request #91 from lberrymage/iter-once
Use std::iter::once for encoder queue submission
2020-09-21 15:09:31 -06:00
Ben Hansen
f947ac79c8 fixed read_buffer typo 2020-09-21 12:16:12 -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
e065fd7e33 updated news for 0.6 2020-09-19 16:04:10 -06:00
Ben Hansen
cb5cfd074f fixed #86 2020-09-19 15:49:05 -06:00
Ben Hansen
801ee97038 migrated gifs 2020-09-16 00:25:40 -06:00
Ben Hansen
8d5de2d87c migrated tutorial11 2020-09-14 12:53:22 -06:00
Ben Hansen
03b1b64e55 migrated tutorial10 2020-09-11 16:19:26 -06:00
Ben Hansen
a92dd32106 forgot a note about OUT_DIR 2020-09-11 16:11:11 -06:00
Ben Hansen
02921f7ffa migrated tutorial9 2020-09-11 16:05:09 -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
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
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
3f2607e663 forgot some stuff 2020-08-28 19:59:04 -06:00
Ben Hansen
0fbb71efb6 migrated tutorial4 2020-08-28 19:47:16 -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
50a6a7d7e6 migrated tutorial2 2020-08-22 14:53:07 -06:00
Ben Hansen
b3b43dbef2 migrated tutorial1 docs 2020-08-20 13:27:51 -06:00
Ben Hansen
3ef4df6fd9 migrated tutorial1 and removed instancing examples 2020-08-20 13:26:44 -06:00
sotrh
5d1935aec4
Merge branch 'master' into vertex-use-macro 2020-08-20 13:06:54 -06:00
sotrh
dc847b99e2
Merge pull request #83 from rofrol/patch-5
frame data our -> frame data out
2020-08-20 13:02:31 -06:00
sotrh
9779c46b0b
Merge pull request #82 from rofrol/patch-4
break our your -> break out your
2020-08-20 13:00:55 -06:00
Roman Frołow
f066e57d1a
its Pong after all -> it's Pong after all 2020-08-18 17:07:57 +02:00
Roman Frołow
377d6c9489
frame data our -> frame data out 2020-08-18 17:02:55 +02:00
Roman Frołow
1fb960ffb1
break our your -> break out your
Probably this was intended.
2020-08-18 17:01:16 +02:00
Ben Hansen
3c4f8f9134 Merge branch 'master' into rework-instancing 2020-08-12 16:10:01 -06:00
Ben Hansen
540b03aded Merge branch 'master' of github.com:sotrh/learn-wgpu 2020-08-12 16:09:04 -06:00
Ben Hansen
a5c6b5ad48 finished instancing rewrite 2020-08-12 16:04:50 -06:00
Ben Hansen
0cd250d5fe started instancing examples 2020-08-11 13:17:14 -06:00
Hiroaki Yutani
0b4580ee19 Add a comment about TextureFormat for PNG 2020-08-09 13:02:21 +09:00
Alex Butler
429fd81286
Minor typo fix "now" -> "know" 2020-08-03 16:52:17 +01:00
Alex Butler
a03a57bb60
Fix some easy-win lints 2020-08-03 11:44:46 +01:00
Alex Butler
541f83f228
Remove mut queue usage in t5 2020-08-03 11:38:25 +01:00
Jan Prudil
36b44e4799
Don't use std::mem for one invocation 2020-07-30 17:36:10 +02:00
Jan Prudil
1dd4d8c694
Use vertex_attr_array 2020-07-30 17:28:46 +02:00
Jan Prudil
e4138f7973
Use vertex_attr_array 2020-07-30 17:23:33 +02:00
Jan Prudil
086c1b23c8
Use vertex_attr_array 2020-07-30 17:13:26 +02:00
Jan Prudil
4fd19939cf
Use vertex_attr_array 2020-07-30 17:10:50 +02:00
sotrh
5e9555d4f3
Merge pull request #72 from Gryff/master
Suggestion: Indent event loop code snippet in swapchain tutorial
2020-07-28 12:11:31 -06:00
sotrh
89fb9f8cf5
Merge pull request #73 from khionu/patch-1
Remove misleading section
2020-07-28 12:10:45 -06:00
Shane Handley
e20bbd7bbf Fix typo related to trait for external type. 2020-07-28 23:26:31 +10:00
Khionu Sybiern
139d2cc04d
Update README.md
Keep `set_vertex_buffer` function to not mislead readers into replacing it instead of supplement it
2020-07-26 22:50:44 -05:00
Gryff
6ba776c01e Fix typo 2020-07-26 21:49:30 +01:00
Gryff
bf20825d0d Indent code snippet for event loop in swap chain tutorial 2020-07-26 21:48:37 +01:00
Ben Hansen
252ca8b909 forgot github link, etc 2020-07-24 15:47:04 -06:00
Ben Hansen
0ae192f440 fixed missing screenshot 2020-07-24 15:36:50 -06:00
Ben Hansen
d6d6995066 finished camera changes 2020-07-24 13:24:45 -06:00
Ben Hansen
69ec7ba20b Merge branch 'master' of github.com:sotrh/learn-wgpu 2020-07-21 19:35:21 -06:00
Ben Hansen
1a6194556e working on fps camera 2020-07-21 19:35:10 -06:00
Alex G Rice
19c8c4a1e3 Clarify what the wgpu-rs's vulkan feature does on Mac OS and other platforms.
Closes #62
2020-07-06 17:26:38 -06:00
Ben Hansen
dfd96093e2 fixed #64 2020-07-01 18:51:09 -06:00
Ben Hansen
2ee06192ed fixed #65 2020-07-01 18:23:06 -06:00
Ben Hansen
a1e5f474eb fixed #67 2020-07-01 18:17:31 -06:00
Ben Hansen
168f78224f Merge branch 'cleanup' 2020-07-01 18:02:00 -06:00
Toniman20
29191eb76d
Fixed typo in beginner tutorial textures. 2020-06-27 15:17:31 +02:00
Ben Hansen
1a850cc1b1 started performance research 2020-06-21 00:49:43 -06:00
sotrh
9159a09a41
Merge pull request #60 from cedric-h/patch-2
Add an explanation of what entry_point means
2020-06-18 13:30:39 -06:00
Cedric Hutchings
36363d73f4
Add an explanation of what entry_point means
... you have no idea how much trouble this caused me
2020-06-16 10:00:44 -04:00
Hiroaki Yutani
c80c674dd5 Move the comment 2020-06-16 09:26:27 +09:00
Hiroaki Yutani
3d9edd9b3a
Add some explanations on tutorial11 2020-06-14 17:19:32 +09:00
sotrh
2eaf6a7ff0
Merge pull request #58 from yutannihilation/doc/add-description-about-img-to_rgba
Add a description about to_rgba()
2020-06-09 21:20:10 -06:00
Ben Hansen
4063cc49de fixed #46 2020-06-09 21:18:45 -06:00
Hiroaki Yutani
760ff67cd8 Add a description about to_rgba() 2020-06-09 22:19:43 +09:00
sotrh
856624f190
Merge pull request #53 from yutannihilation/patch-3
Fix a missing namespace and pub keyword in tutorial8
2020-06-07 12:50:18 -06:00
sotrh
6b90b5f7ae
Merge pull request #54 from yutannihilation/patch-4
Fix a broken link and a missing argument in tutorial9
2020-06-07 12:49:49 -06:00
sotrh
ad767c90d6
Merge pull request #57 from yutannihilation/patch-5
Improve tutorial 10
2020-06-07 12:49:09 -06:00
Hiroaki Yutani
5e0ecd91cf
Improve tutorial 10 2020-06-08 00:15:30 +09:00
Hiroaki Yutani
55d47396a4
Fix a broken link and a missing argument in tutorial9 2020-06-07 17:07:43 +09:00
Hiroaki Yutani
2e1c9a0620
Fix a missing namespace and pub keyword in tutorial8 2020-06-07 14:48:20 +09:00
Hiroaki Yutani
08dc0ff221
Fix some typos in tutorial7-instancing 2020-06-07 12:59:28 +09:00
sotrh
f163d92107
Merge pull request #49 from cedric-h/patch-1
grammar fixes
2020-06-02 17:10:30 -06:00
Ben Hansen
8461147ca0 fixed #44 fixed $48 2020-06-01 13:01:12 -06:00
Cedric Hutchings
500d84058b
Merge branch 'master' into patch-1 2020-06-01 14:55:57 -04:00
sotrh
5cdce79ffd
Merge pull request #47 from yutannihilation/patch-2
Fix a broken link
2020-06-01 12:53:48 -06:00
Cedric Hutchings
6d79a960de
grammar fixes
I acknowledge that some of these are purely subjective, but the improper `'s` irks me, heh.
2020-06-01 14:42:52 -04:00
Mark Hildreth
bd84d92766 Fixed name of package 2020-05-31 11:24:54 -04:00
Hiroaki Yutani
6fd4bdeb4c
Fix a broken link 2020-05-31 22:30:20 +09:00
Mark Hildreth
f61585f85b Some small fixes. 2020-05-30 00:08:52 -04:00
Ben Hansen
6ffa5c044c fixed #40 2020-05-28 13:57:07 -06:00
Ben Hansen
2be19f2070 updating to shaderc 2020-05-28 13:47:05 -06:00
Ben Hansen
6e369e99ee Merge branch 'master' into pong 2020-05-28 13:24:15 -06:00
Ben Hansen
c6229a7ca6 finished pong 2020-05-28 13:22:06 -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
0c3249e7f9 fixed centering and added bloops 2020-05-21 14:07:02 -06:00
sotrh
17a6af4067
Merge pull request #38 from artvinn/master
Fix some inconsistencies
2020-05-19 15:03:16 -06:00
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
57ff442834 fixed #30 2020-05-19 11:51:47 -06:00
Ben Hansen
71d85d536f added warning in depth tutorial 2020-05-19 11:47:59 -06:00
Ben Hansen
67f163aaec fixed crash in later example code 2020-05-19 11:46:04 -06:00
Ben Hansen
87f065acdd got basic game working 2020-05-14 15:03:58 -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
artvinn
fdb525fa41 Fix some inconsistencies 2020-05-11 19:24:44 +03:00
Ben Hansen
de7da878ab preparing normal mapping for deploy 2020-05-04 13:08:10 -06:00
sotrh
018c8a5ec2
Merge pull request #33 from sotrh/normal-mapping
Normal mapping
2020-05-04 13:04:37 -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
CJ Burkey
de381c070f
very -> vary 2020-04-30 02:54:53 -04:00
Ben Hansen
ec5339bd3b started normals tutorial 2020-04-29 12:31:35 -06:00
Ben Hansen
107d64a70e preparing for 0.5 deploy 2020-04-25 18:49:59 -06:00
Ben Hansen
6bd7d714e8 missed "y is down" in tutorial4 2020-04-25 18:40:07 -06:00
Ben Hansen
2fb06b49fb finishing up 2020-04-25 18:36:50 -06:00
Ben Hansen
bbeacfa923 migrated windowless 2020-04-25 17:22:26 -06:00
Ben Hansen
032253fea9 cleaning up for 0.5 2020-04-25 16:32:17 -06:00
Ben Hansen
368021047a adjusted migration to tutorial9 2020-04-25 14:10:14 -06:00
Ben Hansen
2b8e97b6fa migrated tutorial8 2020-04-25 12:21:51 -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
764f5405db updata wgpu 0.5 2020-04-22 17:39:40 +08:00
downtime
6d2d839411 Updated dependencies 2020-04-22 12:12:29 +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
6b1cd8d893 Merge branch 'master' into 0.5 2020-04-19 12:36:13 -06:00
sotrh
a58521d063
Merge pull request #24 from shika-blyat/patch-1
Fix static_tree instead of static-tree type
2020-04-18 18:39:22 -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
ab0513146d cleanup for lighting deploy 2020-04-17 21:26:17 -06:00
Ben Hansen
3b22ab9da9 finished lighting rewrite 2020-04-17 21:23:19 -06:00
shika-blyat
58b1aeb7bc
Fix static_tree instead of static-tree type 2020-04-15 03:51:32 +02:00
Ben Hansen
f66dfa61c0 updated news to include gifs 2020-03-29 20:04:37 -06:00
Ben Hansen
be23faee06 finished gif showcase 2020-03-29 19:51:50 -06:00
Ben Hansen
a7f08a1562 fixed missing res folder in lighting 2020-03-18 13:54:02 -06:00
Ben Hansen
e0d88871a5 finished lighting 2020-03-17 20:20:05 -06:00
Ben Hansen
a805bd8fa3 updated lighting tutorial to use model.rs 2020-03-12 16:57:09 -06:00
Ben Hansen
3d5740c6b1 Merge branch 'master' into lighting 2020-03-12 16:28:48 -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
0e836ca4fa updated news and tutorial 8 readme 2020-02-24 17:02:18 -07:00
Ben Hansen
cc0fc1f17f updated code to use texture.rs 2020-02-24 16:23:23 -07:00
Ben Hansen
9e30f8bc99 added "spheres" 2020-02-21 15:12:43 -07:00
sotrh
583f982924
Merge pull request #4 from rofrol/patch-2
typos
2020-01-26 14:09:51 -07:00
Roman Frołow
ba0a461e8a
it's -> its 2020-01-21 21:26:35 +01:00
Roman Frołow
870a3a44ba
Revert paragraph 2020-01-21 21:25:20 +01:00
sotrh
dabca840e2
Merge pull request #11 from adamnemecek/master
whitespace
2020-01-21 13:17:33 -07:00
sotrh
bc85bc24b5
Merge pull request #10 from rofrol/patch-3
Removed physical_size
2020-01-21 13:15:07 -07:00
sotrh
7ba3287a8c
Merge pull request #3 from rofrol/patch-1
typo - missing are
2020-01-21 13:13:36 -07:00
sotrh
31df80eedb
Merge branch 'master' into fixes 2020-01-21 13:09:46 -07:00
Ben Hansen
965ea7d7ac fixed some errors in examples 2020-01-21 13:05:34 -07:00
sotrh
2926abceba
Merge pull request #6 from AlisCode/master
Fix missing call to self.queue.submit
2020-01-20 17:16:59 -07:00
Ben Hansen
c41ed7766e fixed depth challenge 2020-01-20 17:05:13 -07:00
Adam Nemecek
9e204b8a95 in tutorial2 added missing adapter in constructor 2020-01-17 15:32:26 -08:00
Roman Frołow
4f8b143e26
Fix my mistake 2020-01-15 23:56:57 +01:00
Roman Frołow
9d5f4b5956
Removed physical_size 2020-01-15 22:40:14 +01:00
Olivier Pinon
fc8a747acf Fix missing call to self.queue.submit 2020-01-14 23:33:40 +01:00
Ben Hansen
aa45a0605f finished main.rs tutorial 8 2020-01-14 12:02:41 -07:00
Roman Frołow
3e36871773
typos 2020-01-14 00:49:48 +01:00
Roman Frołow
fc28106fb1
typo - missing are 2020-01-14 00:20:47 +01: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
b17f54b9e8 undoing changes to .gitignore 2019-11-22 16:24:22 -07:00
Ben Hansen
8ed63c03cf fixed link issue 2019-11-22 16:19:09 -07:00
Ben Hansen
58fa5be6d2 finished uniforms tutorial 2019-11-22 16:09:38 -07:00
Ben Hansen
ac1543bea6 Added SEO plugin 2019-11-14 16:41:16 -07:00
Ben Hansen
348a06ee0f reorganized project, added challenge impls 2019-11-12 23:52:09 -07:00
Ben Hansen
c9df90042f textures 2019-11-05 01:02:41 -07:00
Ben Hansen
045b960bee finished windowless 2019-11-01 01:10:33 -06:00
Ben Hansen
f6c607a6ea started windowless 2019-10-26 16:14:04 -06:00
Ben Hansen
e35d51ee7b tutorial4-buffer 2019-10-25 01:57:14 -06:00
Ben Hansen
a374e581fb put tutorial3 in a folder 2019-10-22 12:54:40 -06:00
Ben Hansen
913067a41c thindark theme and copy code plugin 2019-10-21 18:29:38 -06:00
Ben Hansen
6642ff9aff tutorial3-pipeline 2019-10-21 18:12:28 -06:00
Ben Hansen
cd341fcdae fixed typos and such 2019-10-19 16:01:59 -06:00
Ben Hansen
3aa711bccf Introduction and config stuff 2019-10-19 15:17:15 -06:00
Ben Hansen
121037a7c2 tutorial2-swapchain 2019-10-19 14:32:52 -06:00
Ben Hansen
8ecb859b9f tutorial 1 finished 2019-10-16 17:35:58 -06:00