Deploying to gh-pages from @ sotrh/learn-wgpu@1661c8543b 🚀

gh-pages
sotrh 1 year ago
parent 65a6855d2d
commit fbb378238c

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -4,15 +4,15 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Learn Wgpu</title>
<meta name="generator" content="VuePress 1.9.7">
<meta name="generator" content="VuePress 1.9.9">
<meta name="description" content="">
<link rel="preload" href="/learn-wgpu/assets/css/1.styles.a09ac8f8.css" as="style"><link rel="preload" href="/learn-wgpu/assets/js/app.93757fec.js" as="script"><link rel="preload" href="/learn-wgpu/assets/js/38.948c9159.js" as="script"><link rel="prefetch" href="/learn-wgpu/assets/js/0.5a1994c5.js"><link rel="prefetch" href="/learn-wgpu/assets/js/10.f154afd0.js"><link rel="prefetch" href="/learn-wgpu/assets/js/11.8f161f98.js"><link rel="prefetch" href="/learn-wgpu/assets/js/12.607f3269.js"><link rel="prefetch" href="/learn-wgpu/assets/js/13.34e13e61.js"><link rel="prefetch" href="/learn-wgpu/assets/js/15.656a9cc4.js"><link rel="prefetch" href="/learn-wgpu/assets/js/16.944ff32f.js"><link rel="prefetch" href="/learn-wgpu/assets/js/17.f6e5eada.js"><link rel="prefetch" href="/learn-wgpu/assets/js/18.4a711d00.js"><link rel="prefetch" href="/learn-wgpu/assets/js/19.4a00821d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/2.eef33181.js"><link rel="prefetch" href="/learn-wgpu/assets/js/20.4b460a5d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/21.545a7574.js"><link rel="prefetch" href="/learn-wgpu/assets/js/22.a7ceb9be.js"><link rel="prefetch" href="/learn-wgpu/assets/js/23.61a7fa04.js"><link rel="prefetch" href="/learn-wgpu/assets/js/24.5e7eb057.js"><link rel="prefetch" href="/learn-wgpu/assets/js/25.831771f8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/26.597be786.js"><link rel="prefetch" href="/learn-wgpu/assets/js/27.668124cf.js"><link rel="prefetch" href="/learn-wgpu/assets/js/28.45d5c2ae.js"><link rel="prefetch" href="/learn-wgpu/assets/js/29.1c3aba26.js"><link rel="prefetch" href="/learn-wgpu/assets/js/3.1a95b835.js"><link rel="prefetch" href="/learn-wgpu/assets/js/30.cc278829.js"><link rel="prefetch" href="/learn-wgpu/assets/js/31.53ab2bce.js"><link rel="prefetch" href="/learn-wgpu/assets/js/32.1a8914b7.js"><link rel="prefetch" href="/learn-wgpu/assets/js/33.aa0236e3.js"><link rel="prefetch" href="/learn-wgpu/assets/js/34.4bbcb16e.js"><link rel="prefetch" href="/learn-wgpu/assets/js/35.fdc32dd2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/36.bb47c9d0.js"><link rel="prefetch" href="/learn-wgpu/assets/js/37.683edede.js"><link rel="prefetch" href="/learn-wgpu/assets/js/39.c9e1a6e2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/4.39f07fe1.js"><link rel="prefetch" href="/learn-wgpu/assets/js/40.69b1aba9.js"><link rel="prefetch" href="/learn-wgpu/assets/js/41.9da478f5.js"><link rel="prefetch" href="/learn-wgpu/assets/js/42.e5816a32.js"><link rel="prefetch" href="/learn-wgpu/assets/js/43.924905ff.js"><link rel="prefetch" href="/learn-wgpu/assets/js/44.1b27deea.js"><link rel="prefetch" href="/learn-wgpu/assets/js/45.7916b834.js"><link rel="prefetch" href="/learn-wgpu/assets/js/46.55af13ca.js"><link rel="prefetch" href="/learn-wgpu/assets/js/47.58c18a75.js"><link rel="prefetch" href="/learn-wgpu/assets/js/48.2710f956.js"><link rel="prefetch" href="/learn-wgpu/assets/js/49.f1fa4ecc.js"><link rel="prefetch" href="/learn-wgpu/assets/js/5.9b0aa79a.js"><link rel="prefetch" href="/learn-wgpu/assets/js/50.c5843400.js"><link rel="prefetch" href="/learn-wgpu/assets/js/51.87e78219.js"><link rel="prefetch" href="/learn-wgpu/assets/js/52.1ec16d07.js"><link rel="prefetch" href="/learn-wgpu/assets/js/53.b3c5dfe2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/54.bfb80495.js"><link rel="prefetch" href="/learn-wgpu/assets/js/55.68bb5fe6.js"><link rel="prefetch" href="/learn-wgpu/assets/js/56.422c25ae.js"><link rel="prefetch" href="/learn-wgpu/assets/js/57.3ee192f8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/58.ac3ecb06.js"><link rel="prefetch" href="/learn-wgpu/assets/js/59.73321379.js"><link rel="prefetch" href="/learn-wgpu/assets/js/6.84fc634e.js"><link rel="prefetch" href="/learn-wgpu/assets/js/60.74728c07.js"><link rel="prefetch" href="/learn-wgpu/assets/js/61.a8ea037e.js"><link rel="prefetch" href="/learn-wgpu/assets/js/7.c65c821b.js"><link rel="prefetch" href="/learn-wgpu/assets/js/8.5700445b.js"><link rel="prefetch" href="/learn-wgpu/assets/js/9.be3100b0.js">
<link rel="stylesheet" href="/learn-wgpu/assets/css/1.styles.a09ac8f8.css">
<link rel="preload" href="/learn-wgpu/assets/css/0.styles.0ab5638a.css" as="style"><link rel="preload" href="/learn-wgpu/assets/js/app.b001ae33.js" as="script"><link rel="preload" href="/learn-wgpu/assets/js/37.721b4591.js" as="script"><link rel="prefetch" href="/learn-wgpu/assets/js/10.ab041fc2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/11.37c2e615.js"><link rel="prefetch" href="/learn-wgpu/assets/js/12.271188b8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/13.5ee5f488.js"><link rel="prefetch" href="/learn-wgpu/assets/js/14.f3020dc8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/15.c711163f.js"><link rel="prefetch" href="/learn-wgpu/assets/js/16.3630f2e2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/17.e1c167f4.js"><link rel="prefetch" href="/learn-wgpu/assets/js/18.b9892c59.js"><link rel="prefetch" href="/learn-wgpu/assets/js/19.59d66f48.js"><link rel="prefetch" href="/learn-wgpu/assets/js/2.30fcc5bd.js"><link rel="prefetch" href="/learn-wgpu/assets/js/20.0640a7b6.js"><link rel="prefetch" href="/learn-wgpu/assets/js/21.b5eb752d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/22.033ea053.js"><link rel="prefetch" href="/learn-wgpu/assets/js/23.c38ddfbf.js"><link rel="prefetch" href="/learn-wgpu/assets/js/24.23b2e362.js"><link rel="prefetch" href="/learn-wgpu/assets/js/25.058581d8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/26.be6c78ff.js"><link rel="prefetch" href="/learn-wgpu/assets/js/27.02c8cded.js"><link rel="prefetch" href="/learn-wgpu/assets/js/28.ff64a351.js"><link rel="prefetch" href="/learn-wgpu/assets/js/29.d2627f7b.js"><link rel="prefetch" href="/learn-wgpu/assets/js/3.6eca9db5.js"><link rel="prefetch" href="/learn-wgpu/assets/js/30.cd4da451.js"><link rel="prefetch" href="/learn-wgpu/assets/js/31.7a7f1ddc.js"><link rel="prefetch" href="/learn-wgpu/assets/js/32.414f3251.js"><link rel="prefetch" href="/learn-wgpu/assets/js/33.9bdb47d4.js"><link rel="prefetch" href="/learn-wgpu/assets/js/34.c1e84b65.js"><link rel="prefetch" href="/learn-wgpu/assets/js/35.8270cdd0.js"><link rel="prefetch" href="/learn-wgpu/assets/js/36.595426bd.js"><link rel="prefetch" href="/learn-wgpu/assets/js/38.22254d7d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/39.3cbce719.js"><link rel="prefetch" href="/learn-wgpu/assets/js/4.49344219.js"><link rel="prefetch" href="/learn-wgpu/assets/js/40.571de440.js"><link rel="prefetch" href="/learn-wgpu/assets/js/41.47225582.js"><link rel="prefetch" href="/learn-wgpu/assets/js/42.d5d70eb1.js"><link rel="prefetch" href="/learn-wgpu/assets/js/43.e88a8f52.js"><link rel="prefetch" href="/learn-wgpu/assets/js/44.f2594c00.js"><link rel="prefetch" href="/learn-wgpu/assets/js/45.a14e3d83.js"><link rel="prefetch" href="/learn-wgpu/assets/js/46.db783b83.js"><link rel="prefetch" href="/learn-wgpu/assets/js/47.f9b30506.js"><link rel="prefetch" href="/learn-wgpu/assets/js/48.278c6fd1.js"><link rel="prefetch" href="/learn-wgpu/assets/js/5.ac098e16.js"><link rel="prefetch" href="/learn-wgpu/assets/js/6.7f838550.js"><link rel="prefetch" href="/learn-wgpu/assets/js/7.d65b10ba.js"><link rel="prefetch" href="/learn-wgpu/assets/js/8.d0980acf.js"><link rel="prefetch" href="/learn-wgpu/assets/js/9.844ef21c.js">
<link rel="stylesheet" href="/learn-wgpu/assets/css/0.styles.0ab5638a.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>There's nothing here.</blockquote> <a href="/learn-wgpu/" class="router-link-active">Take me home.</a></div></div><div class="global-ui"><!----></div></div>
<script src="/learn-wgpu/assets/js/app.93757fec.js" defer></script><script src="/learn-wgpu/assets/js/38.948c9159.js" defer></script>
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>That's a Four-Oh-Four.</blockquote> <a href="/learn-wgpu/" class="router-link-active">Take me home.</a></div></div><div class="global-ui"><!----></div></div>
<script src="/learn-wgpu/assets/js/app.b001ae33.js" defer></script><script src="/learn-wgpu/assets/js/37.721b4591.js" defer></script>
</body>
</html>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{421:function(t,r,e){var n=e(202),i=Math.floor,o=function(t,r){var e=t.length,c=i(e/2);return e<8?u(t,r):a(t,o(n(t,0,c),r),o(n(t,c),r),r)},u=function(t,r){for(var e,n,i=t.length,o=1;o<i;){for(n=o,e=t[o];n&&r(t[n-1],e)>0;)t[n]=t[--n];n!==o++&&(t[n]=e)}return t},a=function(t,r,e,n){for(var i=r.length,o=e.length,u=0,a=0;u<i||a<o;)t[u+a]=u<i&&a<o?n(r[u],e[a])<=0?r[u++]:e[a++]:u<i?r[u++]:e[a++];return t};t.exports=o},422:function(t,r,e){var n=e(44).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},423:function(t,r,e){var n=e(44);t.exports=/MSIE|Trident/.test(n)},424:function(t,r,e){var n=e(44).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},541:function(t,r,e){"use strict";var n=e(1),i=e(2),o=e(35),u=e(15),a=e(24),c=e(14),f=e(3),s=e(421),l=e(49),v=e(422),h=e(423),d=e(47),p=e(424),g=[],m=i(g.sort),w=i(g.push),b=f((function(){g.sort(void 0)})),k=f((function(){g.sort(null)})),D=l("sort"),x=!f((function(){if(d)return d<70;if(!(v&&v>3)){if(h)return!0;if(p)return p<603;var t,r,e,n,i="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)g.push({k:r+n,v:e})}for(g.sort((function(t,r){return r.v-t.v})),n=0;n<g.length;n++)r=g[n].k.charAt(0),i.charAt(i.length-1)!==r&&(i+=r);return"DGBEFHACIJK"!==i}}));n({target:"Array",proto:!0,forced:b||!k||!D||!x},{sort:function(t){void 0!==t&&o(t);var r=u(this);if(x)return void 0===t?m(r):m(r,t);var e,n,i=[],f=a(r);for(n=0;n<f;n++)n in r&&w(i,r[n]);for(s(i,function(t){return function(r,e){return void 0===e?-1:void 0===r?1:void 0!==t?+t(r,e)||0:c(r)>c(e)?1:-1}}(t)),e=i.length,n=0;n<e;)r[n]=i[n++];for(;n<f;)delete r[n++];return r}})},542:function(t,r,e){var n=e(2),i=e(16),o=Date.prototype,u=n(o.toString),a=n(o.getTime);"Invalid Date"!=String(new Date(NaN))&&i(o,"toString",(function(){var t=a(this);return t==t?u(this):"Invalid Date"}))},572:function(t,r,e){"use strict";e.r(r);e(61),e(541),e(38),e(8),e(214),e(215),e(542);var n={name:"RecentArticles",data:function(){return{}},computed:{recentFiles:function(){return this.$site.pages.filter((function(t){return t.regularPath.includes("beginner")||t.regularPath.includes("intermediate")})).sort((function(t,r){var e=new Date(t.frontmatter.published).getTime()-new Date(r.frontmatter.published).getTime();return e<0?-1:e>0?1:0})).slice(0,5)}}},i=e(23),o=Object(i.a)(n,(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",[e("ul",t._l(t.recentFiles,(function(r,n){return e("li",{key:r},[e("a",{attrs:{href:n.path}},[t._v(t._s(n.title))])])})),0)])}),[],!1,null,null,null);r.default=o.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{446:function(t,r,e){},543:function(t,r,e){"use strict";var a=e(1),o=e(2),n=e(32),i=e(65),u=e(14),l=o("".slice),s=Math.max,c=Math.min;a({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,r){var e,a,o=u(n(this)),_=o.length,m=i(t);return m===1/0&&(m=0),m<0&&(m=s(_+m,0)),(e=void 0===r?_:i(r))<=0||e===1/0||m>=(a=c(m+e,_))?"":l(o,m,a)}})},544:function(t,r,e){var a={"./tutorial10_lighting/tutorial10_lighting.js":[547,0,2,50],"./tutorial10_lighting/tutorial10_lighting_bg.js":[363,0,2],"./tutorial11_normals/tutorial11_normals.js":[558,0,3,51],"./tutorial11_normals/tutorial11_normals_bg.js":[364,0,3],"./tutorial12_camera/tutorial12_camera.js":[559,0,4,52],"./tutorial12_camera/tutorial12_camera_bg.js":[365,0,4],"./tutorial1_window/tutorial1_window.js":[560,0,13,53],"./tutorial1_window/tutorial1_window_bg.js":[374,0,13],"./tutorial2_surface/tutorial2_surface.js":[561,0,6,54],"./tutorial2_surface/tutorial2_surface_bg.js":[367,0,6],"./tutorial3_pipeline/tutorial3_pipeline.js":[562,0,7,55],"./tutorial3_pipeline/tutorial3_pipeline_bg.js":[368,0,7],"./tutorial4_buffer/tutorial4_buffer.js":[563,0,8,56],"./tutorial4_buffer/tutorial4_buffer_bg.js":[369,0,8],"./tutorial5_textures/tutorial5_textures.js":[564,0,9,57],"./tutorial5_textures/tutorial5_textures_bg.js":[370,0,9],"./tutorial6_uniforms/tutorial6_uniforms.js":[565,0,10,58],"./tutorial6_uniforms/tutorial6_uniforms_bg.js":[371,0,10],"./tutorial7_instancing/tutorial7_instancing.js":[566,0,11,59],"./tutorial7_instancing/tutorial7_instancing_bg.js":[372,0,11],"./tutorial8_depth/tutorial8_depth.js":[567,0,12,60],"./tutorial8_depth/tutorial8_depth_bg.js":[373,0,12],"./tutorial9_models/tutorial9_models.js":[568,0,5,61],"./tutorial9_models/tutorial9_models_bg.js":[366,0,5]};function o(t){if(!e.o(a,t))return Promise.resolve().then((function(){var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=a[t],o=r[0];return Promise.all(r.slice(1).map(e.e)).then((function(){return e(o)}))}o.keys=function(){return Object.keys(a)},o.id=544,t.exports=o},545:function(t,r,e){"use strict";e(446)},573:function(t,r,e){"use strict";e.r(r);var a=e(87);e(135),e(29),e(93),e(543),e(8),e(18),e(25),e(123);var o={name:"WasmExample",props:{example:"",autoLoad:!1},data:function(){return{error:"",loading:!1,exampleStarted:!1}},computed:{exampleName:function(){return this.example.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},methods:{loadExample:function(){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,r.prev=1,r.next=4,e(544)("./".concat(t.example,"/").concat(t.example,".js"));case 4:r.next=9;break;case 6:r.prev=6,r.t0=r.catch(1),"Error: Using exceptions for control flow, don't mind me. This isn't actually an error!"!="".concat(r.t0)?(t.error='An error occurred loading "'.concat(t.example,'": ').concat(r.t0),console.error(r.t0),t.exampleStarted=!1):t.exampleStarted=!0;case 9:t.loading=!1;case 10:case"end":return r.stop()}}),r,null,[[1,6]])})))()}},mounted:function(){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$nextTick();case 2:if(!t.autoLoad){r.next=5;break}return r.next=5,t.loadExample();case 5:case"end":return r.stop()}}),r)})))()}},n=(e(545),e(23)),i=Object(n.a)(o,(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{attrs:{id:"wasm-example"}},[t.error?e("div",{staticClass:"error"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e(),t._v(" "),t.exampleStarted||t.autoLoad?t._e():e("button",{attrs:{disabled:t.loading},on:{click:function(r){return t.loadExample()}}},[t._v("Try "+t._s(t.exampleName)+"!")])])}),[],!1,null,null,null);r.default=i.exports}}]);

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{299:function(t,e,o){},372:function(t,e,o){var r={"./tutorial10_lighting/demo.js":[375,2],"./tutorial11_normals/demo.js":[377,3],"./tutorial12_camera/demo.js":[379,4],"./tutorial1_window/demo.js":[381,5],"./tutorial2_surface/demo.js":[383,6],"./tutorial3_pipeline/demo.js":[385,7],"./tutorial4_buffer/demo.js":[387,8],"./tutorial5_textures/demo.js":[389,9],"./tutorial6_uniforms/demo.js":[391,10],"./tutorial7_instancing/demo.js":[393,11],"./tutorial8_depth/demo.js":[395,12],"./tutorial9_models/demo.js":[397,13]};function a(t){if(!o.o(r,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],a=e[0];return o.e(e[1]).then((function(){return o(a)}))}a.keys=function(){return Object.keys(r)},a.id=372,t.exports=a},373:function(t,e,o){"use strict";o(299)},403:function(t,e,o){"use strict";o.r(e);var r={name:"WasmExample",props:{example:"",autoLoad:!1},data:()=>({error:"",loading:!1,exampleStarted:!1}),computed:{exampleName(){return this.example.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},methods:{async loadExample(){this.loading=!0;try{await o(372)(`./${this.example}/demo.js`)}catch(t){""+t!="Error: Using exceptions for control flow, don't mind me. This isn't actually an error!"?(this.error=`An error occurred loading "${this.example}": ${t}`,console.error(t),this.exampleStarted=!1):this.exampleStarted=!0}this.loading=!1}},async mounted(){await this.$nextTick(),this.autoLoad&&await this.loadExample()}},a=(o(373),o(7)),n=Object(a.a)(r,(function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"wasm-example"}},[t.error?e("div",{staticClass:"error"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e(),t._v(" "),t.exampleStarted||t.autoLoad?t._e():e("button",{attrs:{disabled:t.loading},on:{click:function(e){return t.loadExample()}}},[t._v("Try "+t._s(t.exampleName)+"!")])])}),[],!1,null,null,null);e.default=n.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{298:function(t,e,n){},371:function(t,e,n){"use strict";n(298)},401:function(t,e,n){"use strict";n.r(e);var i={name:"AutoGithubLink",computed:{link(){return"https://github.com/sotrh/learn-wgpu/tree/master/code"+this.$page.path}}},r=(n(371),n(7)),u=Object(r.a)(i,(function(){var t=this._self._c;return t("div",{staticClass:"auto-github-link"},[t("a",{attrs:{href:this.link,target:"_blank",rel:"noopener noreferrer"}},[this._v("Check out the code!")]),this._v(" "),t("OutboundLink")],1)}),[],!1,null,null,null);e.default=u.exports}}]);

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{300:function(t,e,n){},374:function(t,e,n){"use strict";n(300)},433:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:(t,{props:e,slots:n})=>t("span",{class:["badge",e.type],style:{verticalAlign:e.vertical}},e.text||n().default)},p=(n(374),n(7)),a=Object(p.a)(i,void 0,void 0,!1,null,"86b323a0",null);e.default=a.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{445:function(t,e,n){},540:function(t,e,n){"use strict";n(445)},571:function(t,e,n){"use strict";n.r(e);var i={name:"AutoGithubLink",computed:{link:function(){return"https://github.com/sotrh/learn-wgpu/tree/master/code"+this.$page.path}}},r=(n(540),n(23)),u=Object(r.a)(i,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"auto-github-link"},[e("a",{attrs:{href:this.link,target:"_blank",rel:"noopener noreferrer"}},[this._v("Check out the code!")]),this._v(" "),e("OutboundLink")],1)}),[],!1,null,null,null);e.default=u.exports}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{447:function(t,e,n){},546:function(t,e,n){"use strict";n(447)},603:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:function(t,e){var n=e.props,i=e.slots;return t("span",{class:["badge",n.type],style:{verticalAlign:n.vertical}},n.text||i().default)}},r=(n(546),n(23)),a=Object(r.a)(i,void 0,void 0,!1,null,"86b323a0",null);e.default=a.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{402:function(e,t,n){"use strict";n.r(t);var r={name:"RecentArticles",data:()=>({}),computed:{recentFiles(){return this.$site.pages.filter(e=>e.regularPath.includes("beginner")||e.regularPath.includes("intermediate")).sort((e,t)=>{let n=new Date(e.frontmatter.published).getTime()-new Date(t.frontmatter.published).getTime();return n<0?-1:n>0?1:0}).slice(0,5)}}},i=n(7),l=Object(i.a)(r,(function(){var e=this,t=e._self._c;return t("div",[t("ul",e._l(e.recentFiles,(function(n,r){return t("li",{key:n},[t("a",{attrs:{href:r.path}},[e._v(e._s(r.title))])])})),0)])}),[],!1,null,null,null);t.default=l.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{400:function(t,e,s){"use strict";s.r(e);const o=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."];var n={methods:{getMsg:()=>o[Math.floor(Math.random()*o.length)]}},h=s(7),i=Object(h.a)(n,(function(){var t=this._self._c;return t("div",{staticClass:"theme-container"},[t("div",{staticClass:"theme-default-content"},[t("h1",[this._v("404")]),this._v(" "),t("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),t("router-link",{attrs:{to:"/"}},[this._v("Take me home.")])],1)])}),[],!1,null,null,null);e.default=i.exports}}]);

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{404:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"introduction"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#introduction"}},[t._v("#")]),t._v(" Introduction")]),t._v(" "),e("h2",{attrs:{id:"what-is-wgpu"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#what-is-wgpu"}},[t._v("#")]),t._v(" What is wgpu?")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/gfx-rs/wgpu",target:"_blank",rel:"noopener noreferrer"}},[t._v("Wgpu"),e("OutboundLink")],1),t._v(" is a Rust implementation of the "),e("a",{attrs:{href:"https://gpuweb.github.io/gpuweb/",target:"_blank",rel:"noopener noreferrer"}},[t._v("WebGPU API spec"),e("OutboundLink")],1),t._v(". WebGPU is a specification published by the GPU for the Web Community Group. It aims to allow web code access to GPU functions in a safe and reliable manner. It does this by mimicking the Vulkan API, and translating that down to whatever API the host hardware is using (ie. DirectX, Metal, Vulkan).")]),t._v(" "),e("p",[t._v("Wgpu is still in development, so some of this doc is subject to change.")]),t._v(" "),e("h2",{attrs:{id:"why-rust"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#why-rust"}},[t._v("#")]),t._v(" Why Rust?")]),t._v(" "),e("p",[t._v("Wgpu actually has C bindings to allow you to write C/C++ code with it, as well as use other languages that interface with C. That being said, wgpu is written in Rust, and it has some convenient Rust bindings that don't have to jump through any hoops. On top of that, I've been enjoying writing in Rust.")]),t._v(" "),e("p",[t._v("You should be fairly familiar with Rust before using this tutorial as I won't go into much detail on Rust syntax. If you're not super comfortable with Rust you can review the "),e("a",{attrs:{href:"https://www.rust-lang.org/learn",target:"_blank",rel:"noopener noreferrer"}},[t._v("Rust tutorial"),e("OutboundLink")],1),t._v(". You should also be familiar with "),e("a",{attrs:{href:"https://doc.rust-lang.org/cargo/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Cargo"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[t._v("I'm using this project to learn wgpu myself, so I might miss some important details, or explain things badly. I'm always open to constructive feedback.")]),t._v(" "),e("h2",{attrs:{id:"contribution-and-support"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#contribution-and-support"}},[t._v("#")]),t._v(" Contribution and Support")]),t._v(" "),e("ul",[e("li",[t._v("I accept pull requests ("),e("a",{attrs:{href:"https://github.com/sotrh/learn-wgpu",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub repo"),e("OutboundLink")],1),t._v(") for fixing issues with this tutorial such as typos, incorrect information, and other inconsistencies.")]),t._v(" "),e("li",[t._v("Due to wgpu's rapidly changing api, I'm not accepting any new pull requests for showcase demos.")]),t._v(" "),e("li",[t._v("If you want to support me directly, check out my "),e("a",{attrs:{href:"https://www.patreon.com/sotrh",target:"_blank",rel:"noopener noreferrer"}},[t._v("patreon"),e("OutboundLink")],1),t._v("!")])]),t._v(" "),e("h2",{attrs:{id:"translations"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#translations"}},[t._v("#")]),t._v(" Translations")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"https://jinleili.github.io/learn-wgpu-zh/",target:"_blank",rel:"noopener noreferrer"}},[t._v("中文版: 增加了与 App 的集成与调试系列章节"),e("OutboundLink")],1)])]),t._v(" "),e("h2",{attrs:{id:"special-thanks-to-these-patrons"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#special-thanks-to-these-patrons"}},[t._v("#")]),t._v(" Special thanks to these patrons!")]),t._v(" "),e("ul",[e("li",[t._v("David Laban")]),t._v(" "),e("li",[t._v("Lennart")]),t._v(" "),e("li",[t._v("Ian Gowen")]),t._v(" "),e("li",[t._v("Aron Granberg")]),t._v(" "),e("li",[t._v("Bernard Llanos")]),t._v(" "),e("li",[t._v("Jan Šipr")]),t._v(" "),e("li",[t._v("Zeh Fernando")]),t._v(" "),e("li",[t._v("Youngsuk Kim")]),t._v(" "),e("li",[t._v("オリトイツキ")]),t._v(" "),e("li",[t._v("Andrea Postal")]),t._v(" "),e("li",[t._v("Julius Liu")]),t._v(" "),e("li",[t._v("Feng Liang")]),t._v(" "),e("li",[t._v("Mattia Samiolo")]),t._v(" "),e("li",[t._v("Joris Willems")]),t._v(" "),e("li",[t._v("Jani Turkia")]),t._v(" "),e("li",[t._v("papyDoctor")]),t._v(" "),e("li",[t._v("Filip")])])])}),[],!1,null,null,null);e.default=n.exports}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{570:function(t,e,s){"use strict";s.r(e);var o=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],n={methods:{getMsg:function(){return o[Math.floor(Math.random()*o.length)]}}},i=s(23),h=Object(i.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"theme-container"},[e("div",{staticClass:"theme-default-content"},[e("h1",[this._v("404")]),this._v(" "),e("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),e("router-link",{attrs:{to:"/"}},[this._v("Take me home.")])],1)])}),[],!1,null,null,null);e.default=h.exports}}]);

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{574:function(t,e,a){"use strict";a.r(e);var r=a(23),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"introduction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#introduction"}},[t._v("#")]),t._v(" Introduction")]),t._v(" "),a("h2",{attrs:{id:"what-is-wgpu"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#what-is-wgpu"}},[t._v("#")]),t._v(" What is wgpu?")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/gfx-rs/wgpu",target:"_blank",rel:"noopener noreferrer"}},[t._v("Wgpu"),a("OutboundLink")],1),t._v(" is a Rust implementation of the "),a("a",{attrs:{href:"https://gpuweb.github.io/gpuweb/",target:"_blank",rel:"noopener noreferrer"}},[t._v("WebGPU API spec"),a("OutboundLink")],1),t._v(". WebGPU is a specification published by the GPU for the Web Community Group. It aims to allow web code access to GPU functions in a safe and reliable manner. It does this by mimicking the Vulkan API, and translating that down to whatever API the host hardware is using (ie. DirectX, Metal, Vulkan).")]),t._v(" "),a("p",[t._v("Wgpu is still in development, so some of this doc is subject to change.")]),t._v(" "),a("h2",{attrs:{id:"why-rust"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#why-rust"}},[t._v("#")]),t._v(" Why Rust?")]),t._v(" "),a("p",[t._v("Wgpu actually has C bindings to allow you to write C/C++ code with it, as well as use other languages that interface with C. That being said, wgpu is written in Rust, and it has some convenient Rust bindings that don't have to jump through any hoops. On top of that, I've been enjoying writing in Rust.")]),t._v(" "),a("p",[t._v("You should be fairly familiar with Rust before using this tutorial as I won't go into much detail on Rust syntax. If you're not super comfortable with Rust you can review the "),a("a",{attrs:{href:"https://www.rust-lang.org/learn",target:"_blank",rel:"noopener noreferrer"}},[t._v("Rust tutorial"),a("OutboundLink")],1),t._v(". You should also be familiar with "),a("a",{attrs:{href:"https://doc.rust-lang.org/cargo/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Cargo"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("p",[t._v("I'm using this project to learn wgpu myself, so I might miss some important details, or explain things badly. I'm always open to constructive feedback.")]),t._v(" "),a("h2",{attrs:{id:"contribution-and-support"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#contribution-and-support"}},[t._v("#")]),t._v(" Contribution and Support")]),t._v(" "),a("ul",[a("li",[t._v("I accept pull requests ("),a("a",{attrs:{href:"https://github.com/sotrh/learn-wgpu",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub repo"),a("OutboundLink")],1),t._v(") for fixing issues with this tutorial such as typos, incorrect information, and other inconsistencies.")]),t._v(" "),a("li",[t._v("Due to wgpu's rapidly changing api, I'm not accepting any new pull requests for showcase demos.")]),t._v(" "),a("li",[t._v("If you want to support me directly, check out my "),a("a",{attrs:{href:"https://www.patreon.com/sotrh",target:"_blank",rel:"noopener noreferrer"}},[t._v("patreon"),a("OutboundLink")],1),t._v("!")])]),t._v(" "),a("h2",{attrs:{id:"translations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#translations"}},[t._v("#")]),t._v(" Translations")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"https://jinleili.github.io/learn-wgpu-zh/",target:"_blank",rel:"noopener noreferrer"}},[t._v("中文版: 增加了与 App 的集成与调试系列章节"),a("OutboundLink")],1)])]),t._v(" "),a("h2",{attrs:{id:"special-thanks-to-these-patrons"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#special-thanks-to-these-patrons"}},[t._v("#")]),t._v(" Special thanks to these patrons!")]),t._v(" "),a("ul",[a("li",[t._v("David Laban")]),t._v(" "),a("li",[t._v("Lennart")]),t._v(" "),a("li",[t._v("Ian Gowen")]),t._v(" "),a("li",[t._v("Aron Granberg")]),t._v(" "),a("li",[t._v("Bernard Llanos")]),t._v(" "),a("li",[t._v("Jan Šipr")]),t._v(" "),a("li",[t._v("Zeh Fernando")]),t._v(" "),a("li",[t._v("Youngsuk Kim")]),t._v(" "),a("li",[t._v("オリトイツキ")]),t._v(" "),a("li",[t._v("Andrea Postal")]),t._v(" "),a("li",[t._v("Julius Liu")]),t._v(" "),a("li",[t._v("Feng Liang")]),t._v(" "),a("li",[t._v("Mattia Samiolo")]),t._v(" "),a("li",[t._v("Joris Willems")]),t._v(" "),a("li",[t._v("Jani Turkia")]),t._v(" "),a("li",[t._v("papyDoctor")]),t._v(" "),a("li",[t._v("Filip")])])])}),[],!1,null,null,null);e.default=n.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{414:function(s,t,i){"use strict";i.r(t);var e=i(7),n=Object(e.a)({},(function(){var s=this._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"sources"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sources"}},[this._v("#")]),this._v(" Sources")]),this._v(" "),s("ul",[s("li",[this._v("https://www.scratchapixel.com/lessons/3d-basic-rendering/introduction-to-shading/diffuse-lambertian-shading")]),this._v(" "),s("li",[this._v("http://jimmiejohnsson84.me/pages/rendering_pbr.html")])])])}),[],!1,null,null,null);t.default=n.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{584:function(t,s,e){"use strict";e.r(s);var i=e(23),n=Object(i.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"sources"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sources"}},[this._v("#")]),this._v(" Sources")]),this._v(" "),s("ul",[s("li",[this._v("https://www.scratchapixel.com/lessons/3d-basic-rendering/introduction-to-shading/diffuse-lambertian-shading")]),this._v(" "),s("li",[this._v("http://jimmiejohnsson84.me/pages/rendering_pbr.html")])])])}),[],!1,null,null,null);s.default=n.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{424:function(e,t,o){"use strict";o.r(t);var s=o(7),r=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"foreword"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#foreword"}},[e._v("#")]),e._v(" Foreword")]),e._v(" "),t("p",[e._v("The articles in this section are not meant to be tutorials. They are showcases of the various things you can do with "),t("code",[e._v("wgpu")]),e._v(". I won't go over the specifics of creating "),t("code",[e._v("wgpu")]),e._v(" resources, as those will be covered elsewhere. The code for these examples is still available however and will be accessible on Github.")])])}),[],!1,null,null,null);t.default=r.exports}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{594:function(e,t,o){"use strict";o.r(t);var s=o(23),r=Object(s.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"foreword"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#foreword"}},[e._v("#")]),e._v(" Foreword")]),e._v(" "),o("p",[e._v("The articles in this section are not meant to be tutorials. They are showcases of the various things you can do with "),o("code",[e._v("wgpu")]),e._v(". I won't go over the specifics of creating "),o("code",[e._v("wgpu")]),e._v(" resources, as those will be covered elsewhere. The code for these examples is still available however and will be accessible on Github.")])])}),[],!1,null,null,null);t.default=r.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save