-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
809 lines (745 loc) · 27.4 KB
/
index.html
File metadata and controls
809 lines (745 loc) · 27.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>WebGPU Demos</title>
<style>
:root {
color-scheme: light dark;
--background-color: #fff;
--secondary-background-color: #f7f7f7;
--color-blue: #049EF4;
--text-color: #444;
--secondary-text-color: #9e9e9e;
--font-size: 16px;
--line-height: 26px;
--border-color: #E8E8E8;
--border-style: 1px solid var(--border-color);
--header-height: 48px;
--panel-width: 300px;
--panel-padding: 16px;
--icon-size: 20px;
}
body {
margin: 0;
/* font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; */
background: #fff;
color: #111;
line-height: 1.6;
padding: 0 20px;
font-family: 'Roboto Mono', monospace;
}
header {
padding: 40px 0 20px;
text-align: center;
border-bottom: 1px solid #ddd;
color: var(--color-blue);
}
header h1 {
font-size: 2.5em;
margin: 0 0 10px;
color: var(--color-blue);
}
header p {
max-width: 700px;
margin: 0 auto;
font-size: 1.1em;
color: #444;
}
section {
max-width: 800px;
margin: 40px auto;
padding-bottom: 40px;
border-bottom: 1px solid #eee;
}
section h2 {
font-size: 1.5em;
margin-bottom: 10px;
}
.links {
margin: 10px 0;
}
.links a {
display: inline-block;
margin-right: 15px;
color: #0066cc;
text-decoration: none;
}
iframe {
margin-top: 15px;
width: 100%;
max-width: 640px;
height: 360px;
border: none;
}
footer {
text-align: center;
font-size: 0.9em;
color: #888;
padding: 30px 0;
}
.demo-container {
display: flex;
align-items: flex-start;
gap: 20px;
flex-wrap: wrap;
}
.preview {
width: 128px;
border-radius: 8px;
border: 1px solid #ccc;
}
.demo-text {
flex: 1;
min-width: 280px;
}
.language-selector {
position: absolute;
top: 20px;
right: 20px;
z-index: 1000;
display: flex;
align-items: center;
gap: 5px;
font-size: 0.9em;
}
.language-selector select {
padding: 5px 10px;
font-size: 1em;
border-radius: 4px;
border: 1px solid #ccc;
background: #fff;
cursor: pointer;
}
.language-selector select:focus {
outline: none;
border-color: #888;
}
#contact{
display: flex;
flex-direction: row;
flex-wrap: wrap ;
justify-content :center;
/* background-color: rgb(243, 242, 1); */
margin: 10px;
}
.logo{
margin: 5px;
border: 2px solid black;
width: 48px;
height: 48px;
border-radius: 10px;
overflow: hidden;
}
.logoEmpty{
margin: 5px;
width: 48px;
height: 48px;
}
</style>
<script>
function setLanguage(lang) {
document.querySelectorAll('[data-lang-' + lang + ']').forEach(el => {
el.textContent = el.getAttribute('data-lang-' + lang);
});
}
// Установить язык по умолчанию
setLanguage('ru');
</script>
</head>
<body>
<header>
<h1>"Learn WebGPU just for fun"</h1>
<p>A collection of interactive demos dedicated to learning WebGPU.</p>
<div class="language-select">
</div>
<div id="contact">
<div class="logo">
<a href="https://www.youtube.com/channel/UCdD1kIGUO5m5C31eXLwY30w">
<img class="icon" src="img/icons/logoYoutube.png" alt="YouTube">
</a>
</div>
<div class="logo">
<a href="https://www.linkedin.com/in/konstantin-bondarenko-a91238a5/">
<img class="icon" src="img/icons/LogoLinkedin.png" alt="LinkedIn">
</a>
</div>
<div class="logo">
<a href="https://github.com/Konstantin84UKR/webgpu_examples">
<img class="icon" src="img/icons/logoGit.png" alt="Github">
</a>
</div>
<div class="logo">
<a href="https://twitter.com/Konstantin84U">
<img class="icon" src="img/icons/logoTwitter.png" alt="Twitter">
</a>
</div>
<div class="logoEmpty">
</div>
</div>
</header>
<!-- 23. ArraySum GPU -->
<section class="demo-block">
<h2>24. ArraySum GPU</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/computeArraySum/" target="_self">
<img
src="./img/preview/arraySum1.jpg"
alt="Превью демо ArraySum GPU"
class="preview"
/>
</a>
<div class="demo-text">
<p> WebGPU : calculate the sum of the array in compute shader.<br>
<!-- SSAO на WebGPU.<br><br> -->
</p>
<div class="links">
<a href="https://youtu.be/ReuAIXiWFKo" target="_self">YouTube</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/computeArraySum/" target="_self">Demo</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/computeArraySum" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 22. deferredRendering -->
<section class="demo-block">
<h2>23.SSAO</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/SSAO/" target="_self">
<img
src="./img/preview/23.jpg"
alt="Превью демо PBR"
class="preview"
/>
</a>
<div class="demo-text">
<p> Screen space ambient occlusion.<br>
<!-- SSAO на WebGPU.<br><br> -->
</p>
<div class="links">
<!--
<a href="https://www.youtube.com/watch?v=LRqRoKjEf8E" target="_self">YouTube</a> -->
<a href="https://konstantin84ukr.github.io/webgpu_examples/SSAO/" target="_self">Demo</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/SSAO" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 22. deferredRendering -->
<section class="demo-block">
<h2>22.Deferred Rendering</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/deferredRendering/" target="_self">
<img
src="./img/preview/22.jpg"
alt="Превью демо PBR"
class="preview"
/>
</a>
<div class="demo-text">
<p> Deferred Rendering.<br>
Basic implementation of deferred rendering on WebGPU.<br><br>
</p>
<div class="links">
<a href="https://www.youtube.com/watch?v=LRqRoKjEf8E" target="_self">YouTube</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/deferredRendering/" target="_self">Demo</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/deferredRendering" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 21. PBR -->
<section class="demo-block">
<h2>21.PBR</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/PBR_test_4/" target="_self">
<img
src="./img/preview/21.jpg"
alt="Превью демо PBR"
class="preview"
/>
</a>
<div class="demo-text">
<p> Physically based rendering.</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/PBR/" target="_self">Demo PBR</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/PBR_test_4/" target="_self">Demo PBR + IBL</a><br>
<!-- <a href="https://www.youtube.com/watch?v=UyUUNe8zl9I" target="_self">YouTube</a> -->
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/PBR" target="_self">Code PBR</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/PBR_test_4" target="_self">Code PBR + IBL</a>
</div>
</div>
</div>
</section>
<!-- 20. ReversedZ -->
<section class="demo-block">
<h2>20. ReversedZ</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/reversedZ/" target="_self">
<img
src="./img/preview/20.jpg"
alt="Превью демо ReversedZ"
class="preview"
/>
</a>
<div class="demo-text">
<p>The example shows the use of the inverse z method to better exploit the precision of the depth buffer.</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/reversedZ/" target="_self">Demo</a>
<!-- <a href="https://www.youtube.com/watch?v=UyUUNe8zl9I" target="_self">YouTube</a> -->
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/reversedZ" target="_self">Code</a>
</div>
</div>
------------------------------------<br>
Additional study materials <br>
<div class="links">
<a href="https://developer.nvidia.com/content/depth-precision-visualized" target="_self">depth-precision-visualized</a><br>
</div>
</div>
</div>
</section>
<!-- 19. GLTF -->
<section class="demo-block">
<h2>19. GLTF </h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/GLTF/" target="_self">
<img
src="./img/preview/19.jpg"
alt="Превью демо GLTF"
class="preview"
/>
</a>
<div class="demo-text">
<p> Example of a basic GLTF load<br><br>
Loading only one mesh without animations and other scene elements<br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/GLTF/" target="_self">Demo</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/GLTF" target="_self">Code</a><br>
</div>
------------------------------------<br>
Additional study materials<br>
<div class="links">
<a href="https://github.khronos.org/glTF-Tutorials/gltfTutorial/" target="_self">gltf Tutorial</a><br>
</div>
</div>
</div>
</section>
<!-- 18. Bloom -->
<section class="demo-block">
<h2>18. Bloom </h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/bloom/" target="_self">
<img
src="./img/preview/18.jpg"
alt="Превью демо Bloom"
class="preview"
/>
</a>
<div class="demo-text">
<p> Bloom на WebGPU<br><br>
<div class="links">
<!-- <a href="https://www.youtube.com/watch?v=YME9kVjLYNM" target="_self">YouTube</a><br> -->
<a href="https://konstantin84ukr.github.io/webgpu_examples/bloom/" target="_self">Demo</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/bloom" target="_self">Code</a><br>
</div>
</div>
</div>
</section>
<!-- 17. cube_Map -->
<section class="demo-block">
<h2>17. Cube Map </h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/cube_Map/" target="_self">
<img
src="./img/preview/17.jpg"
alt="Превью демо Shadow map"
class="preview"
/>
</a>
<div class="demo-text">
<p> ubeMap on WebGPU and WebGL<br><br>
<div class="links">
<a href="https://www.youtube.com/watch?v=YME9kVjLYNM" target="_self">YouTube</a><br>
<a href="https://konstantin84ukr.github.io/webgpu_examples/cube_Map/" target="_self">Demo1 WebGPU</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/cube_Map" target="_self">Code1 WebGPU</a><br>
<a href="https://konstantin84ukr.github.io/webgpu_examples/cube_Map_plane/" target="_self">Demo2 WebGPU</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/cube_Map_plane" target="_self">Code2 "one plane Cube Map" WebGPU</a><br>
<a href=" https://konstantin84ukr.github.io/WebGL_tutorials/CubeMaps/" target="_self">Demo3 WebGL</a>
<a href="https://github.com/Konstantin84UKR/WebGL_tutorials/tree/master/CubeMaps" target="_self">Code3 "one plane Cube Map" WebGPU</a><br>
</div>
</div>
</div>
</section>
<!-- 16. Matcap и MSAA -->
<section class="demo-block">
<h2>16. Matcap и MSAA </h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/matcapMSAA/" target="_self">
<img
src="./img/preview/16.jpg"
alt="Превью демо Shadow map"
class="preview"
/>
</a>
<div class="demo-text">
<p> Matcap implementation on WebGPU. Also uses MSAA.<br><br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/matcapMSAA/" target="_self">Demo</a>
<!-- <a href="https://www.youtube.com/watch?v=8jFTEFcCgAc" target="_self">YouTube</a> -->
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/matcapMSAA" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 15. Shadow map-->
<section class="demo-block">
<h2>15. Shadow map</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/shadow/" target="_self">
<img
src="./img/preview/15.jpg"
alt="Превью демо Shadow map"
class="preview"
/>
</a>
<div class="demo-text">
<p> Implementation of Shadow map on WebGPU<br><br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/shadow/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=8jFTEFcCgAc" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/shadow" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 14. Normal map-->
<section class="demo-block">
<h2>14. Normal map</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/normalMap/" target="_self">
<img
src="./img/preview/14.jpg"
alt="Превью демо Normal map"
class="preview"
/>
</a>
<div class="demo-text">
<p> Implementation of Normal map on WebGPU<br><br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/normalMap/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=eH_GcT-qYzo" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/normalMap" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 13. mult_obj -->
<section class="demo-block">
<h2>13. Instance & mult obj</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/multple_objects_inctance/" target="_self">
<img
src="./img/preview/13.jpg"
alt="Превью демо Point ligth Phong"
class="preview"
/>
</a>
<div class="demo-text">
<p> Implementation of Instance on WebGPU<br><br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/multple_objects/" target="_self">Demo 1</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/multple_objects_offset/" target="_self">Demo 2</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/multple_objects_offset_dimamic/" target="_self">Demo 3</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/multple_objects_inctance/" target="_self">Demo 4</a>
<a href="https://www.youtube.com/watch?v=FHesgtuMxCs" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/multple_objects" target="_self">Code 1</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/multple_objects_offset" target="_self">Code 2</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/multple_objects_offset_dimamic" target="_self">Code 3</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/multple_objects_inctance/" target="_self">Code 4</a>
</div>
</div>
</div>
</section>
<!-- 12. Point ligth Phong-->
<section class="demo-block">
<h2>12. Point ligth Phong</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/phong/" target="_self">
<img
src="./img/preview/12.jpg"
alt="Превью демо Point ligth Phong"
class="preview"
/>
</a>
<div class="demo-text">
<p> Point light Phone implementation<br><br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/phong/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=sJS0MDTYksw" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/phong" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 11. mesh_obj -->
<section class="demo-block">
<h2>11. Loading a mesh from an external file</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/mesh_obj/" target="_self">
<img
src="./img/preview/11.jpg"
alt="Превью демо mesh_obj"
class="preview"
/>
</a>
<div class="demo-text">
<p> Loading a mesh from an external file<br><br>
1.OBJ format.<br>
2.JSON format.<br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/mesh_obj/" target="_self">Demo 1</a>
<a href="https://konstantin84ukr.github.io/webgpu_examples/mesh/" target="_self">Demo 2</a>
<!-- <a href="https://www.youtube.com/watch?v=sJS0MDTYksw" target="_self">YouTube</a> -->
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/mesh_obj" target="_self">Code 1 </a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/mesh" target="_self">Code 2 </a>
</div>
</div>
</div>
</section>
<!-- 10. Post Effect -->
<section class="demo-block">
<h2>10. Post Effect</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/postEffect/" target="_self">
<img
src="./img/preview/10.jpg"
alt="Превью демо Post Effect"
class="preview"
/>
</a>
<div class="demo-text">
<p>Post Effect on WebGPU.<br><br>
1.Loading an array of data into a texture.<br>
2.Loading a fragment of a dynamic scene into another texture.<br>
3.Change the color of the pixels of the current main texture.</p><br>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/postEffect/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=sJS0MDTYksw" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/postEffect" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 9. quad_image -->
<section class="demo-block">
<h2>9.Texture pixelation of the image</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/quad_image/" target="_self">
<img
src="./img/preview/9.jpg"
alt="Превью демо quad_image "
class="preview"
/>
</a>
<div class="demo-text">
<p>Simple post effect with 2D image. <br><br>
We draw a texture on the plane and the image is pixelated<br><br>
<br>
</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/quad_image/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=sJS0MDTYksw" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/quad_image" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 8. Texture import canvas -->
<section class="demo-block">
<h2>8. Texture import canvas</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_import_canvas/" target="_self">
<img
src="./img/preview/8.jpg"
alt="Превью демо Texture import canvas"
class="preview"
/>
</a>
<div class="demo-text">
<p>Using 2D_Canvas as a texture. <br><br>
Draw on 2D_Canvas, and place the result into a WebGPU texture<br><br>
<br>
</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_import_canvas/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=mzOf9dXz-zw" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/texture_mipmap_on_GPU" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 7. Texture mipmap on GPU -->
<section class="demo-block">
<h2>7. Texture mipmap on GPU</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_mipmap_on_GPU/" target="_self">
<img
src="./img/preview/7.jpg"
alt="Превью демо Texture"
class="preview"
/>
</a>
<div class="demo-text">
<p>Example of loading mipmap and generating mipmap on the GPU side.<br><br>
Mipmap is generated by a separate shader and is loaded into the main texture for each mipmap level.<br><br>
<br>
</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_mipmap_on_GPU/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=1Ww9zxwvkAA" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/texture_mipmap_on_GPU" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 6. Texture mipmap on CPU -->
<section class="demo-block">
<h2>6. Texture mipmap on CPU</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_mipmap_on_CPU/" target="_self">
<img
src="./img/preview/6.jpg"
alt="Превью демо Texture"
class="preview"
/>
</a>
<div class="demo-text">
<p>Example of loading mipmap. <br><br>
Mipmaps loaded as separate textures for each mipmap level <br><br>
<br>
</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_mipmap_on_CPU/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=kxVfh73Uv8k" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/texture_mipmap_on_CPU " target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 5. Load texture from Uint8Array -->
<section class="demo-block">
<h2>5. Load texture from Uint8Array</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_from_Uint8Array/" target="_self">
<img
src="./img/preview/5.jpg"
alt="Превью демо Texture"
class="preview"
/>
</a>
<div class="demo-text">
<p>Example Loading texture data from an array. <br><br>
In this example, we create a texture using data from a Uint8Array. We use WebGPU to create the texture and display it on the screen. <br><br>
<br>
</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture_from_Uint8Array/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=u6iC1ZIwAOs" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/texture_from_Uint8Array" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 4. Texture -->
<section class="demo-block">
<h2>4. Texture</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture/" target="_self">
<img
src="./img/preview/4.jpg"
alt="Превью демо Texture"
class="preview"
/>
</a>
<div class="demo-text">
<p>Example of using texture. Consideration of what is sampler, texture_2d, vUV. <br><br>
Getting color from a texture using the texture Sample function.
<br>
</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/texture/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=RbQYihHzN6E" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/texture" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 3. cube_rotation -->
<section class="demo-block">
<h2>3. Cube Rotation</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/cube_rotation/" target="_self">
<img
src="./img/preview/3.jpg"
alt="Превью демо Cube Rotation"
class="preview"
/>
</a>
<div class="demo-text">
<p>An example of the application of geometry transformation matrices. Perspective, view and model matrices.</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/cube_rotation/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=xa9mZDVdMos" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/cube_rotation" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 2. quad_buffer_index -->
<section class="demo-block">
<h2>2. Quad Buffer Index</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/quad_buffer_index/" target="_self">
<img
src="./img/preview/2.jpg"
alt="Превью демо Quad Buffer Index"
class="preview"
/>
</a>
<div class="demo-text">
<p>Rendering geometry using a vertex buffer and an index buffer.</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/quad_buffer_index/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=XvVbCVWKHl8" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/cube_rotation" target="_self">Code</a>
</div>
</div>
</div>
</section>
<!-- 1. Hello Triangle -->
<section class="demo-block">
<h2>1. Hello Triangle</h2>
<div class="demo-container">
<a href="https://konstantin84ukr.github.io/webgpu_examples/triangle/" target="_self">
<img
src="./img/preview/1.jpg"
alt="Превью демо Hello Triangle"
class="preview"
/>
</a>
<div class="demo-text">
<p>Initializing WebGPU and rendering the first triangle.</p>
<div class="links">
<a href="https://konstantin84ukr.github.io/webgpu_examples/triangle/" target="_self">Demo</a>
<a href="https://www.youtube.com/watch?v=UyUUNe8zl9I" target="_self">YouTube</a>
<a href="https://github.com/Konstantin84UKR/webgpu_examples/tree/master/quad_buffer_index" target="_self">Code</a>
</div>
</div>
</div>
</section>
<footer>
© 2025 Konstantin Bondarenko | <a href="https://konstantin84ukr.github.io/CV/" target="_blank">Portfolio</a>
</footer>
</body>
</html>