mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-16 06:12:55 +00:00
Deploying to gh-pages from @ sotrh/learn-wgpu@0a083a9c12 🚀
This commit is contained in:
parent
5f92ad46d5
commit
e211ab02ca
BIN
06b54b2e43c0f1344e7a.module.wasm
Normal file
BIN
06b54b2e43c0f1344e7a.module.wasm
Normal file
Binary file not shown.
BIN
2a1ba3864f23488d0380.module.wasm
Normal file
BIN
2a1ba3864f23488d0380.module.wasm
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
10
404.html
10
404.html
@ -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.9">
|
||||
<meta name="generator" content="VuePress 1.9.10">
|
||||
|
||||
<meta name="description" content="">
|
||||
|
||||
<link rel="preload" href="/learn-wgpu/assets/css/0.styles.0ab5638a.css" as="style"><link rel="preload" href="/learn-wgpu/assets/js/app.3e98631e.js" as="script"><link rel="preload" href="/learn-wgpu/assets/js/38.846d8927.js" as="script"><link rel="prefetch" href="/learn-wgpu/assets/js/10.b1421561.js"><link rel="prefetch" href="/learn-wgpu/assets/js/11.cd137f40.js"><link rel="prefetch" href="/learn-wgpu/assets/js/12.6eda677c.js"><link rel="prefetch" href="/learn-wgpu/assets/js/13.caf63307.js"><link rel="prefetch" href="/learn-wgpu/assets/js/14.5a6b4b11.js"><link rel="prefetch" href="/learn-wgpu/assets/js/15.ca628c84.js"><link rel="prefetch" href="/learn-wgpu/assets/js/16.6a8b93eb.js"><link rel="prefetch" href="/learn-wgpu/assets/js/17.858cd35e.js"><link rel="prefetch" href="/learn-wgpu/assets/js/18.cd2c1180.js"><link rel="prefetch" href="/learn-wgpu/assets/js/19.6b89d919.js"><link rel="prefetch" href="/learn-wgpu/assets/js/2.b7b52812.js"><link rel="prefetch" href="/learn-wgpu/assets/js/20.b14b99cf.js"><link rel="prefetch" href="/learn-wgpu/assets/js/21.520c4557.js"><link rel="prefetch" href="/learn-wgpu/assets/js/22.0d900177.js"><link rel="prefetch" href="/learn-wgpu/assets/js/23.fbf82829.js"><link rel="prefetch" href="/learn-wgpu/assets/js/24.1d2a6439.js"><link rel="prefetch" href="/learn-wgpu/assets/js/25.0f6b8f9f.js"><link rel="prefetch" href="/learn-wgpu/assets/js/26.cf3ae491.js"><link rel="prefetch" href="/learn-wgpu/assets/js/27.8c1ec0e8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/28.f85d9918.js"><link rel="prefetch" href="/learn-wgpu/assets/js/29.baeb06d3.js"><link rel="prefetch" href="/learn-wgpu/assets/js/3.e53c5016.js"><link rel="prefetch" href="/learn-wgpu/assets/js/30.c1e0f78c.js"><link rel="prefetch" href="/learn-wgpu/assets/js/31.3ba018fb.js"><link rel="prefetch" href="/learn-wgpu/assets/js/32.be78bd80.js"><link rel="prefetch" href="/learn-wgpu/assets/js/33.ecf06f2d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/34.fc9981cf.js"><link rel="prefetch" href="/learn-wgpu/assets/js/35.2994fc1f.js"><link rel="prefetch" href="/learn-wgpu/assets/js/36.51739ce9.js"><link rel="prefetch" href="/learn-wgpu/assets/js/37.6aa0da29.js"><link rel="prefetch" href="/learn-wgpu/assets/js/39.72c64069.js"><link rel="prefetch" href="/learn-wgpu/assets/js/4.bce88ab4.js"><link rel="prefetch" href="/learn-wgpu/assets/js/40.c799615a.js"><link rel="prefetch" href="/learn-wgpu/assets/js/41.7a974d44.js"><link rel="prefetch" href="/learn-wgpu/assets/js/42.cceeaabc.js"><link rel="prefetch" href="/learn-wgpu/assets/js/43.c7fddd4a.js"><link rel="prefetch" href="/learn-wgpu/assets/js/44.4508ba41.js"><link rel="prefetch" href="/learn-wgpu/assets/js/45.139302a3.js"><link rel="prefetch" href="/learn-wgpu/assets/js/46.5c9d2d5d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/47.48f8085d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/48.1ee8e943.js"><link rel="prefetch" href="/learn-wgpu/assets/js/49.b611d762.js"><link rel="prefetch" href="/learn-wgpu/assets/js/5.0074b8a1.js"><link rel="prefetch" href="/learn-wgpu/assets/js/50.2554ae93.js"><link rel="prefetch" href="/learn-wgpu/assets/js/51.d8dfe631.js"><link rel="prefetch" href="/learn-wgpu/assets/js/6.e49ddda8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/7.fac421da.js"><link rel="prefetch" href="/learn-wgpu/assets/js/8.31c95235.js"><link rel="prefetch" href="/learn-wgpu/assets/js/9.e55a456e.js">
|
||||
<link rel="stylesheet" href="/learn-wgpu/assets/css/0.styles.0ab5638a.css">
|
||||
<link rel="preload" href="/learn-wgpu/assets/css/0.styles.81cb5453.css" as="style"><link rel="preload" href="/learn-wgpu/assets/js/app.853796dc.js" as="script"><link rel="preload" href="/learn-wgpu/assets/js/5.7b991c18.js" as="script"><link rel="prefetch" href="/learn-wgpu/assets/js/1.538e5cd6.js"><link rel="prefetch" href="/learn-wgpu/assets/js/10.513fe175.js"><link rel="prefetch" href="/learn-wgpu/assets/js/11.ae744d89.js"><link rel="prefetch" href="/learn-wgpu/assets/js/12.1a160229.js"><link rel="prefetch" href="/learn-wgpu/assets/js/13.3aa50eb8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/14.040e47bb.js"><link rel="prefetch" href="/learn-wgpu/assets/js/15.3684b41d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/16.f82fa59e.js"><link rel="prefetch" href="/learn-wgpu/assets/js/17.953361b1.js"><link rel="prefetch" href="/learn-wgpu/assets/js/18.540bc20e.js"><link rel="prefetch" href="/learn-wgpu/assets/js/19.3de7a278.js"><link rel="prefetch" href="/learn-wgpu/assets/js/2.fed03679.js"><link rel="prefetch" href="/learn-wgpu/assets/js/20.c330850d.js"><link rel="prefetch" href="/learn-wgpu/assets/js/21.f957d003.js"><link rel="prefetch" href="/learn-wgpu/assets/js/22.a3ea1732.js"><link rel="prefetch" href="/learn-wgpu/assets/js/23.8be92585.js"><link rel="prefetch" href="/learn-wgpu/assets/js/24.cea0077c.js"><link rel="prefetch" href="/learn-wgpu/assets/js/25.215be0d6.js"><link rel="prefetch" href="/learn-wgpu/assets/js/26.78ecfdd9.js"><link rel="prefetch" href="/learn-wgpu/assets/js/27.a689a020.js"><link rel="prefetch" href="/learn-wgpu/assets/js/28.be89b347.js"><link rel="prefetch" href="/learn-wgpu/assets/js/29.d7128785.js"><link rel="prefetch" href="/learn-wgpu/assets/js/3.741318f9.js"><link rel="prefetch" href="/learn-wgpu/assets/js/30.384d2fa8.js"><link rel="prefetch" href="/learn-wgpu/assets/js/31.d35e75b2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/32.5c9384a2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/33.62652b70.js"><link rel="prefetch" href="/learn-wgpu/assets/js/34.9dcb59e1.js"><link rel="prefetch" href="/learn-wgpu/assets/js/35.2f24ff1a.js"><link rel="prefetch" href="/learn-wgpu/assets/js/36.5a6bab0c.js"><link rel="prefetch" href="/learn-wgpu/assets/js/37.0f1fc5e6.js"><link rel="prefetch" href="/learn-wgpu/assets/js/38.d91c68da.js"><link rel="prefetch" href="/learn-wgpu/assets/js/39.c90a384b.js"><link rel="prefetch" href="/learn-wgpu/assets/js/4.a9493435.js"><link rel="prefetch" href="/learn-wgpu/assets/js/40.67a1269b.js"><link rel="prefetch" href="/learn-wgpu/assets/js/41.780c8091.js"><link rel="prefetch" href="/learn-wgpu/assets/js/42.1eea4a23.js"><link rel="prefetch" href="/learn-wgpu/assets/js/43.e739df4e.js"><link rel="prefetch" href="/learn-wgpu/assets/js/44.6da5ded4.js"><link rel="prefetch" href="/learn-wgpu/assets/js/45.cb28e2a2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/46.b31a2075.js"><link rel="prefetch" href="/learn-wgpu/assets/js/47.7d0e765f.js"><link rel="prefetch" href="/learn-wgpu/assets/js/48.446ce5f2.js"><link rel="prefetch" href="/learn-wgpu/assets/js/49.628bfb2c.js"><link rel="prefetch" href="/learn-wgpu/assets/js/50.7b2c0038.js"><link rel="prefetch" href="/learn-wgpu/assets/js/51.51f28b40.js"><link rel="prefetch" href="/learn-wgpu/assets/js/52.deb6b0f5.js"><link rel="prefetch" href="/learn-wgpu/assets/js/53.333749ae.js"><link rel="prefetch" href="/learn-wgpu/assets/js/54.f0c43650.js"><link rel="prefetch" href="/learn-wgpu/assets/js/55.e3185ec6.js"><link rel="prefetch" href="/learn-wgpu/assets/js/56.df7f1c90.js"><link rel="prefetch" href="/learn-wgpu/assets/js/57.5ac040fc.js"><link rel="prefetch" href="/learn-wgpu/assets/js/58.01169067.js"><link rel="prefetch" href="/learn-wgpu/assets/js/59.7a83ab1b.js"><link rel="prefetch" href="/learn-wgpu/assets/js/60.1954d8be.js"><link rel="prefetch" href="/learn-wgpu/assets/js/61.9f54b08c.js"><link rel="prefetch" href="/learn-wgpu/assets/js/62.8786794f.js"><link rel="prefetch" href="/learn-wgpu/assets/js/63.e349b241.js"><link rel="prefetch" href="/learn-wgpu/assets/js/64.53aac5a5.js"><link rel="prefetch" href="/learn-wgpu/assets/js/8.f6570430.js"><link rel="prefetch" href="/learn-wgpu/assets/js/9.86202446.js"><link rel="prefetch" href="/learn-wgpu/assets/js/vendors~docsearch.7f669ac7.js">
|
||||
<link rel="stylesheet" href="/learn-wgpu/assets/css/0.styles.81cb5453.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.3e98631e.js" defer></script><script src="/learn-wgpu/assets/js/38.846d8927.js" defer></script>
|
||||
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>How did we get 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.853796dc.js" defer></script><script src="/learn-wgpu/assets/js/5.7b991c18.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
BIN
48670b18270075242b93.module.wasm
Normal file
BIN
48670b18270075242b93.module.wasm
Normal file
Binary file not shown.
BIN
5c144ff696c1b63f2ccb.module.wasm
Normal file
BIN
5c144ff696c1b63f2ccb.module.wasm
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
8ccab73cfca80aa11bbc.module.wasm
Normal file
BIN
8ccab73cfca80aa11bbc.module.wasm
Normal file
Binary file not shown.
Binary file not shown.
BIN
a84e4d2f508bf32b15be.module.wasm
Normal file
BIN
a84e4d2f508bf32b15be.module.wasm
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
1
assets/css/0.styles.81cb5453.css
Normal file
1
assets/css/0.styles.81cb5453.css
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/1.538e5cd6.js
Normal file
1
assets/js/1.538e5cd6.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/10.513fe175.js
Normal file
1
assets/js/10.513fe175.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/11.ae744d89.js
Normal file
1
assets/js/11.ae744d89.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/12.1a160229.js
Normal file
1
assets/js/12.1a160229.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/13.3aa50eb8.js
Normal file
1
assets/js/13.3aa50eb8.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/14.040e47bb.js
Normal file
1
assets/js/14.040e47bb.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/15.3684b41d.js
Normal file
1
assets/js/15.3684b41d.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/16.f82fa59e.js
Normal file
1
assets/js/16.f82fa59e.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/17.953361b1.js
Normal file
1
assets/js/17.953361b1.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/18.540bc20e.js
Normal file
1
assets/js/18.540bc20e.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/19.3de7a278.js
Normal file
1
assets/js/19.3de7a278.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/2.fed03679.js
Normal file
1
assets/js/2.fed03679.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/20.c330850d.js
Normal file
1
assets/js/20.c330850d.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/21.f957d003.js
Normal file
1
assets/js/21.f957d003.js
Normal file
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{298:function(e,t,o){},371:function(e,t,o){var r={"./pong/demo.js":[374,3],"./tutorial10_lighting/demo.js":[376,4],"./tutorial11_normals/demo.js":[378,5],"./tutorial12_camera/demo.js":[380,6],"./tutorial1_window/demo.js":[382,7],"./tutorial2_surface/demo.js":[384,8],"./tutorial3_pipeline/demo.js":[386,9],"./tutorial4_buffer/demo.js":[388,10],"./tutorial5_textures/demo.js":[390,11],"./tutorial6_uniforms/demo.js":[392,12],"./tutorial7_instancing/demo.js":[394,13],"./tutorial8_depth/demo.js":[396,14],"./tutorial9_models/demo.js":[398,15]};function a(e){if(!o.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],a=t[0];return o.e(t[1]).then((function(){return o(a)}))}a.keys=function(){return Object.keys(r)},a.id=371,e.exports=a},372:function(e,t,o){"use strict";o(298)},404:function(e,t,o){"use strict";o.r(t);var r={name:"WasmExample",props:{example:"",autoLoad:!1},data:()=>({error:"",loading:!1,exampleStarted:!1}),computed:{exampleName(){return this.example.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}},methods:{async loadExample(){this.loading=!0;try{await o(371)(`./${this.example}/demo.js`)}catch(e){""+e!="Error: Using exceptions for control flow, don't mind me. This isn't actually an error!"?(this.error=`An error occurred loading "${this.example}": ${e}`,console.error(e),this.exampleStarted=!1):this.exampleStarted=!0}this.loading=!1}},async mounted(){await this.$nextTick(),this.autoLoad&&await this.loadExample()}},a=(o(372),o(7)),n=Object(a.a)(r,(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"wasm-example"}},[e.error?t("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e(),e._v(" "),e.exampleStarted||e.autoLoad?e._e():t("button",{attrs:{disabled:e.loading},on:{click:function(t){return e.loadExample()}}},[e._v("Try "+e._s(e.exampleName)+"!")])])}),[],!1,null,null,null);t.default=n.exports}}]);
|
File diff suppressed because one or more lines are too long
1
assets/js/23.8be92585.js
Normal file
1
assets/js/23.8be92585.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/24.cea0077c.js
Normal file
1
assets/js/24.cea0077c.js
Normal file
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{299:function(t,e,n){},373:function(t,e,n){"use strict";n(299)},436: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(373),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
File diff suppressed because one or more lines are too long
1
assets/js/27.a689a020.js
Normal file
1
assets/js/27.a689a020.js
Normal file
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
assets/js/3.741318f9.js
Normal file
1
assets/js/3.741318f9.js
Normal file
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
assets/js/31.d35e75b2.js
Normal file
1
assets/js/31.d35e75b2.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{316:function(e,t,o){},383:function(e,t,o){var r={"./pong/demo.js":[385,8],"./tutorial10_lighting/demo.js":[387,9],"./tutorial11_normals/demo.js":[389,10],"./tutorial12_camera/demo.js":[391,11],"./tutorial1_window/demo.js":[393,12],"./tutorial2_surface/demo.js":[395,13],"./tutorial3_pipeline/demo.js":[397,14],"./tutorial4_buffer/demo.js":[399,15],"./tutorial5_textures/demo.js":[401,16],"./tutorial6_uniforms/demo.js":[403,17],"./tutorial7_instancing/demo.js":[405,18],"./tutorial8_depth/demo.js":[407,19],"./tutorial9_models/demo.js":[409,20]};function a(e){if(!o.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],a=t[0];return o.e(t[1]).then((function(){return o(a)}))}a.keys=function(){return Object.keys(r)},a.id=383,e.exports=a},384:function(e,t,o){"use strict";o(316)},419:function(e,t,o){"use strict";o.r(t);var r={name:"WasmExample",props:{example:"",autoLoad:!1},data:()=>({error:"",loading:!1,exampleStarted:!1}),computed:{exampleName(){return this.example.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}},methods:{async loadExample(){this.loading=!0;try{await o(383)(`./${this.example}/demo.js`)}catch(e){""+e!="Error: Using exceptions for control flow, don't mind me. This isn't actually an error!"?(this.error=`An error occurred loading "${this.example}": ${e}`,console.error(e),this.exampleStarted=!1):this.exampleStarted=!0}this.loading=!1}},async mounted(){await this.$nextTick(),this.autoLoad&&await this.loadExample()}},a=(o(384),o(7)),n=Object(a.a)(r,(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"wasm-example"}},[e.error?t("div",{staticClass:"error"},[e._v("\n "+e._s(e.error)+"\n ")]):e._e(),e._v(" "),e.exampleStarted||e.autoLoad?e._e():t("button",{attrs:{disabled:e.loading},on:{click:function(t){return e.loadExample()}}},[e._v("Try "+e._s(e.exampleName)+"!")])])}),[],!1,null,null,null);t.default=n.exports}}]);
|
1
assets/js/32.5c9384a2.js
Normal file
1
assets/js/32.5c9384a2.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/33.62652b70.js
Normal file
1
assets/js/33.62652b70.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{260:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"i",(function(){return s})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"b",(function(){return p})),n.d(e,"e",(function(){return f})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return d})),n.d(e,"c",(function(){return b})),n.d(e,"j",(function(){return g}));n(93);const r=/#.*$/,i=/\.(md|html)$/,a=/\/$/,s=/^(https?:|mailto:|tel:|[a-zA-Z]{4,}:)/;function u(t){return decodeURI(t).replace(r,"").replace(i,"")}function o(t){return s.test(t)}function c(t){return/^mailto:/.test(t)}function l(t){return/^tel:/.test(t)}function p(t){if(o(t))return t;const e=t.match(r),n=e?e[0]:"",i=u(t);return a.test(i)?t:i+".html"+n}function f(t,e){const n=t.hash,i=function(t){const e=t.match(r);if(e)return e[0]}(e);if(i&&n!==i)return!1;return u(t.path)===u(e)}function h(t,e,n){if(o(e))return{type:"external",path:e};n&&(e=function(t,e,n){const r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;const i=e.split("/");n&&i[i.length-1]||i.pop();const a=t.replace(/^\//,"").split("/");for(let t=0;t<a.length;t++){const e=a[t];".."===e?i.pop():"."!==e&&i.push(e)}""!==i[0]&&i.unshift("");return i.join("/")}(e,n));const r=u(e);for(let e=0;e<t.length;e++)if(u(t[e].regularPath)===r)return Object.assign({},t[e],{type:"page",path:p(t[e].path)});return console.error(`[vuepress] No matching page found for sidebar item "${e}"`),{}}function d(t,e,n,r){const{pages:i,themeConfig:a}=n,s=r&&a.locales&&a.locales[r]||a;if("auto"===(t.frontmatter.sidebar||s.sidebar||a.sidebar))return function(t){const e=b(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}(t);const u=s.sidebar||a.sidebar;if(u){const{base:t,config:n}=function(t,e){if(Array.isArray(e))return{base:"/",config:e};for(const r in e)if(0===(n=t,/(\.html|\/)$/.test(n)?n:n+"/").indexOf(encodeURI(r)))return{base:r,config:e[r]};var n;return{}}(e,u);return n?n.map(e=>function t(e,n,r,i=1){if("string"==typeof e)return h(n,e,r);if(Array.isArray(e))return Object.assign(h(n,e[0],r),{title:e[1]});{i>3&&console.error("[vuepress] detected a too deep nested sidebar group.");const a=e.children||[];return 0===a.length&&e.path?Object.assign(h(n,e.path,r),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,children:a.map(e=>t(e,n,r,i+1)),collapsable:!1!==e.collapsable}}}(e,i,t)):[]}return[]}function b(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function g(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},289:function(t,e,n){},293:function(t,e,n){"use strict";n(289)},296:function(t,e,n){"use strict";n.r(e);var r=n(260);function i(t,e,n,r){return t("router-link",{props:{to:e,activeClass:"",exactActiveClass:""},class:{active:r,"sidebar-link":!0}},n)}function a(t,e,n,s,u,o=1){return!e||o>u?null:t("ul",{class:"sidebar-sub-headers"},e.map(e=>{const c=Object(r.e)(s,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[i(t,n+"#"+e.slug,e.title,c),a(t,e.children,n,s,u,o+1)])}))}var s={functional:!0,props:["item","sidebarDepth"],render(t,{parent:{$page:e,$site:n,$route:s,$themeConfig:u,$themeLocaleConfig:o},props:{item:c,sidebarDepth:l}}){const p=Object(r.e)(s,c.path),f="auto"===c.type?p||c.children.some(t=>Object(r.e)(s,c.basePath+"#"+t.slug)):p,h="external"===c.type?function(t,e,n){return t("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[n,t("OutboundLink")])}(t,c.path,c.title||c.path):i(t,c.path,c.title||c.path,f),d=e.frontmatter.sidebarDepth||l||o.sidebarDepth||u.sidebarDepth,b=null==d?1:d,g=o.displayAllHeaders||u.displayAllHeaders;if("auto"===c.type)return[h,a(t,c.children,c.basePath,s,b)];if((f||g)&&c.headers&&!r.d.test(c.path)){return[h,a(t,Object(r.c)(c.headers),c.path,s,b)]}return h}},u=(n(293),n(7)),o=Object(u.a)(s,void 0,void 0,!1,null,null,null);e.default=o.exports}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{297:function(t,e,n){},370:function(t,e,n){"use strict";n(297)},402: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(370),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}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{315:function(t,e,n){},382:function(t,e,n){"use strict";n(315)},417: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(382),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}}]);
|
1
assets/js/36.5a6bab0c.js
Normal file
1
assets/js/36.5a6bab0c.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{309:function(t,i,s){},321:function(t,i,s){"use strict";s(309)},414:function(t,i,s){"use strict";s.r(i);var a={props:["options"],mounted(){this.initialize(this.options,this.$lang)},methods:{initialize(t,i){Promise.all([Promise.all([s.e(0),s.e(7)]).then(s.t.bind(null,412,7)),Promise.all([s.e(0),s.e(7)]).then(s.t.bind(null,413,7))]).then(([s])=>{s=s.default;const{algoliaOptions:a={}}=t;s(Object.assign({},t,{inputSelector:"#algolia-search-input",algoliaOptions:Object.assign({facetFilters:["lang:"+i].concat(a.facetFilters||[])},a)}))})},update(t,i){this.$el.innerHTML='<input id="algolia-search-input" class="search-query">',this.initialize(t,i)}},watch:{$lang(t){this.update(this.options,t)},options(t){this.update(t,this.$lang)}}},e=(s(321),s(7)),n=Object(e.a)(a,(function(){this._self._c;return this._m(0)}),[function(){var t=this._self._c;return t("form",{staticClass:"algolia-search-wrapper search-box",attrs:{id:"search-form",role:"search"}},[t("input",{staticClass:"search-query",attrs:{id:"algolia-search-input"}})])}],!1,null,null,null);i.default=n.exports}}]);
|
1
assets/js/37.0f1fc5e6.js
Normal file
1
assets/js/37.0f1fc5e6.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{284:function(t,e,n){},286:function(t,e,n){"use strict";n.r(e);var s={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},i=(n(287),n(7)),o=Object(i.a)(s,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=o.exports},287:function(t,e,n){"use strict";n(284)}}]);
|
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{401: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}}]);
|
1
assets/js/38.d91c68da.js
Normal file
1
assets/js/38.d91c68da.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{299:function(t,c,n){},306:function(t,c,n){"use strict";n(299)},320:function(t,c,n){"use strict";n.r(c);n(306);var i=n(7),s=Object(i.a)({},(function(){var t=this,c=t._self._c;return c("div",{staticClass:"sidebar-button",on:{click:function(c){return t.$emit("toggle-sidebar")}}},[c("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[c("path",{attrs:{fill:"currentColor",d:"M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"}})])])}),[],!1,null,null,null);c.default=s.exports}}]);
|
1
assets/js/39.c90a384b.js
Normal file
1
assets/js/39.c90a384b.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/4.a9493435.js
Normal file
1
assets/js/4.a9493435.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{312:function(t,e,n){},324:function(t,e,n){"use strict";n(312)},420: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(324),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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/43.e739df4e.js
Normal file
1
assets/js/43.e739df4e.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{260:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"i",(function(){return l})),n.d(e,"f",(function(){return a})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"e",(function(){return p})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return d})),n.d(e,"c",(function(){return b})),n.d(e,"j",(function(){return g}));n(93);const r=/#.*$/,i=/\.(md|html)$/,s=/\/$/,l=/^(https?:|mailto:|tel:|[a-zA-Z]{4,}:)/;function o(t){return decodeURI(t).replace(r,"").replace(i,"")}function a(t){return l.test(t)}function u(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function f(t){if(a(t))return t;const e=t.match(r),n=e?e[0]:"",i=o(t);return s.test(i)?t:i+".html"+n}function p(t,e){const n=t.hash,i=function(t){const e=t.match(r);if(e)return e[0]}(e);if(i&&n!==i)return!1;return o(t.path)===o(e)}function h(t,e,n){if(a(e))return{type:"external",path:e};n&&(e=function(t,e,n){const r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;const i=e.split("/");n&&i[i.length-1]||i.pop();const s=t.replace(/^\//,"").split("/");for(let t=0;t<s.length;t++){const e=s[t];".."===e?i.pop():"."!==e&&i.push(e)}""!==i[0]&&i.unshift("");return i.join("/")}(e,n));const r=o(e);for(let e=0;e<t.length;e++)if(o(t[e].regularPath)===r)return Object.assign({},t[e],{type:"page",path:f(t[e].path)});return console.error(`[vuepress] No matching page found for sidebar item "${e}"`),{}}function d(t,e,n,r){const{pages:i,themeConfig:s}=n,l=r&&s.locales&&s.locales[r]||s;if("auto"===(t.frontmatter.sidebar||l.sidebar||s.sidebar))return function(t){const e=b(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}(t);const o=l.sidebar||s.sidebar;if(o){const{base:t,config:n}=function(t,e){if(Array.isArray(e))return{base:"/",config:e};for(const r in e)if(0===(n=t,/(\.html|\/)$/.test(n)?n:n+"/").indexOf(encodeURI(r)))return{base:r,config:e[r]};var n;return{}}(e,o);return n?n.map(e=>function t(e,n,r,i=1){if("string"==typeof e)return h(n,e,r);if(Array.isArray(e))return Object.assign(h(n,e[0],r),{title:e[1]});{i>3&&console.error("[vuepress] detected a too deep nested sidebar group.");const s=e.children||[];return 0===s.length&&e.path?Object.assign(h(n,e.path,r),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,children:s.map(e=>t(e,n,r,i+1)),collapsable:!1!==e.collapsable}}}(e,i,t)):[]}return[]}function b(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function g(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},285:function(t,e,n){"use strict";n.r(e);var r=n(260),i={props:{item:{required:!0}},computed:{link(){return Object(r.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link}},methods:{isExternal:r.f,isMailto:r.g,isTel:r.h}},s=n(7),l=Object(s.a)(i,(function(){var t=this,e=t._self._c;return t.isExternal(t.link)?e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.isMailto(t.link)||t.isTel(t.link)?null:"_blank",rel:t.isMailto(t.link)||t.isTel(t.link)?null:"noopener noreferrer"}},[t._v("\n "+t._s(t.item.text)+"\n "),e("OutboundLink")],1):e("router-link",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact}},[t._v(t._s(t.item.text))])}),[],!1,null,null,null);e.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
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
assets/js/5.7b991c18.js
Normal file
1
assets/js/5.7b991c18.js
Normal file
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{415: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}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{403: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}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{418: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}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{405: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}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{421: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}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{415: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}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{431: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
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 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{425:function(t,s,e){"use strict";e.r(s);var a=e(7),o=Object(a.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"update-to-0-17"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#update-to-0-17"}},[this._v("#")]),this._v(" Update to 0.17")]),this._v(" "),t("p",[this._v("No changes needed to the tutorial!")])])}),[],!1,null,null,null);s.default=o.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{441:function(t,s,e){"use strict";e.r(s);var a=e(7),o=Object(a.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"update-to-0-17"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#update-to-0-17"}},[this._v("#")]),this._v(" Update to 0.17")]),this._v(" "),t("p",[this._v("No changes needed to the tutorial!")])])}),[],!1,null,null,null);s.default=o.exports}}]);
|
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{427: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}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{443: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}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{435:function(t,s,n){"use strict";n.r(s);var o=n(7),e=Object(o.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"coming-soon"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#coming-soon"}},[this._v("#")]),this._v(" Coming Soon!")]),this._v(" "),t("p",[this._v("This section has not yet been completed.")])])}),[],!1,null,null,null);s.default=e.exports}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{451:function(t,s,n){"use strict";n.r(s);var o=n(7),e=Object(o.a)({},(function(){var t=this._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"coming-soon"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#coming-soon"}},[this._v("#")]),this._v(" Coming Soon!")]),this._v(" "),t("p",[this._v("This section has not yet been completed.")])])}),[],!1,null,null,null);s.default=e.exports}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/js/8.f6570430.js
Normal file
1
assets/js/8.f6570430.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/js/9.86202446.js
Normal file
1
assets/js/9.86202446.js
Normal file
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
16
assets/js/app.853796dc.js
Normal file
16
assets/js/app.853796dc.js
Normal file
File diff suppressed because one or more lines are too long
3
assets/js/vendors~docsearch.7f669ac7.js
Normal file
3
assets/js/vendors~docsearch.7f669ac7.js
Normal file
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…
Reference in New Issue
Block a user