Skip to content

Commit

Permalink
both.mjs now imports greeting.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
John Owens committed Nov 5, 2024
1 parent e734224 commit 0037233
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions both_webgpu/both.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { greeting } from "./greeting.mjs";

async function getDeviceAndAdapter(navigator) {
const adapter = await navigator.gpu.requestAdapter();
const hasSubgroups = adapter.features.has("subgroups");
Expand Down Expand Up @@ -26,6 +28,7 @@ async function main(navigator) {
} else {
console.log(" I'm probably running in a web browser.");
}
greeting();

const workgroupSize = 64;
const memsrcSize = 2 ** 24;
Expand Down
4 changes: 4 additions & 0 deletions both_webgpu/greeting.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function greeting() {
console.log("Secret greeting!");
}
export { greeting };

0 comments on commit 0037233

Please sign in to comment.