Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy #248

Merged
merged 21 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0b7645b
Fix standalone editor
davidar Jan 2, 2025
e435587
Bump actions/checkout from 3 to 4
dependabot[bot] Jan 3, 2025
5aa3ab6
Merge pull request #220 from compute-toys/dependabot/github_actions/a…
davidar Jan 3, 2025
73b4311
Bump the typescript group across 1 directory with 3 updates
dependabot[bot] Jan 3, 2025
456fa7b
Merge pull request #231 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Jan 3, 2025
11e680e
Bump uuid from 10.0.0 to 11.0.3
dependabot[bot] Jan 3, 2025
6ae1673
Bump @mui/lab from 5.0.0-alpha.173 to 5.0.0-alpha.175
dependabot[bot] Jan 3, 2025
96251f7
Merge pull request #224 from compute-toys/dependabot/npm_and_yarn/uui…
davidar Jan 3, 2025
e5e0bbf
Merge pull request #225 from compute-toys/dependabot/npm_and_yarn/mui…
davidar Jan 3, 2025
5fe802f
Bump @mui/icons-material from 5.16.7 to 5.16.13
dependabot[bot] Jan 3, 2025
c09c724
Bump the nextjs group across 1 directory with 5 updates
dependabot[bot] Jan 3, 2025
5e71054
Merge pull request #228 from compute-toys/dependabot/npm_and_yarn/mui…
davidar Jan 3, 2025
70913e7
Merge pull request #232 from compute-toys/dependabot/npm_and_yarn/nex…
davidar Jan 3, 2025
6b89829
Fix code scanning alert no. 1: Use of `Kernel.open` or `IO.read` or s…
davidar Jan 3, 2025
43b7004
Merge pull request #233 from compute-toys/alert-autofix-1
davidar Jan 3, 2025
21b231c
Improve explainer
munrocket Jan 12, 2025
ab9bab6
Reorder little more
munrocket Jan 13, 2025
3850510
Merge pull request #239 from munrocket/main
davidar Jan 18, 2025
74ba6e9
Port engine to typescript (#218)
davidar Jan 28, 2025
ed713fe
Workaround BetaHuhn/deploy-to-vercel-action#393
davidar Jan 28, 2025
88c4253
Enable optional webgpu features
davidar Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
build/
lib/wgputoy
types/supabase.ts
2 changes: 1 addition & 1 deletion .github/workflows/cf-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-requests: write
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: echo Deploying ${{ github.event.pull_request.head.sha }}
- name: Await CF Pages
id: cf-pages
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
cache: 'yarn'
- run: yarn
- run: yarn build
- run: npm install -g vercel
- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "wgpu-compute-toy"]
path = wgpu-compute-toy
url = https://github.com/compute-toys/wgpu-compute-toy.git
28 changes: 0 additions & 28 deletions components/banner.tsx

This file was deleted.

72 changes: 57 additions & 15 deletions components/editor/explainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ const ExplainerBody = () => {
</pre>
Timing information is in the <HiLite>time</HiLite> struct:
<pre style={{ color: theme.palette.neutral.main }}>
time.frame: u32
<br />
time.elapsed: f32
<br />
time.delta: f32
<br />
time.frame: u32
</pre>
Custom uniforms are in the <HiLite>custom</HiLite> struct:
<pre style={{ color: theme.palette.neutral.main }}>
Expand Down Expand Up @@ -109,9 +111,17 @@ const ExplainerBody = () => {
<HiLite>#dispatch_count ENTRYPOINT N</HiLite> for dispatching an entrypoint
multiple times in a row
</li>
<li>
<HiLite>#dispatch_once ENTRYPOINT</HiLite> for initialization purposes, ensuring
the entrypoint is dispatched only once
</li>
<li>
<HiLite>#storage NAME TYPE</HiLite> for declaring a storage buffer
</li>
<li>
<HiLite>SCREEN_WIDTH</HiLite> and <HiLite>SCREEN_HEIGHT</HiLite> are predefined
variables for accessing the canvas dimensions
</li>
</ul>
<h1>Storage</h1>
Read-write storage buffers can be declared using the <HiLite>#storage</HiLite>{' '}
Expand All @@ -130,31 +140,53 @@ const ExplainerBody = () => {
storage texture, which displays the result in the canvas on this page.
<br />
<br />
{/*
Debugging assertions are supported with an <HiLite>assert</HiLite> helper function:
<pre style={{ color: theme.palette.neutral.main }}>
assert(0, isfinite(col.x))
<br />
assert(1, isfinite(col.y))
</pre>
*/}
<h1>Examples</h1>
<div style={{ fontWeight: 'bold', fontSize: '0.8rem' }}>
<Link href={'https://compute.toys/view/46'} target="_blank">
Preprocessor #include
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/76'} target="_blank">
Storage usage
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/1334'} target="_blank">
Texture usage
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/77'} target="_blank">
Simple single pass shader
Texture pass
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/46'} target="_blank">
Preprocessor #include
<Link href={'https://compute.toys/view/1586'} target="_blank">
Custom uniforms
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/59'} target="_blank">
Terminal overlay
<Link href={'https://compute.toys/view/47'} target="_blank">
Preprocessor #workgroup_count
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/76'} target="_blank">
Storage usage
<Link href={'https://compute.toys/view/528'} target="_blank">
Preprocessor #dispatch_once
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/48'} target="_blank">
Preprocessor #dispatch_count
</Link>
<br />
<br />
Expand All @@ -163,18 +195,28 @@ const ExplainerBody = () => {
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/48'} target="_blank">
Preprocessor #dispatch_count
<Link href={'https://compute.toys/view/210'} target="_blank">
Threads execution order
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/47'} target="_blank">
Preprocessor #workgroup_count
<Link href={'https://compute.toys/view/1199'} target="_blank">
Enable WGSL extension
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/59'} target="_blank">
Terminal text overlay
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/459'} target="_blank">
Simple raymarcher
</Link>
<br />
<br />
<Link href={'https://compute.toys/view/17'} target="_blank">
Assert
<Link href={'https://compute.toys/view/1361'} target="_blank">
Simple rasterizer
</Link>
<br />
<br />
Expand Down
10 changes: 7 additions & 3 deletions components/wgputoy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { canvasElAtom, wgpuAvailabilityAtom } from 'lib/atoms/wgputoyatoms';
import dynamic from 'next/dynamic';
import { Suspense, useCallback, useState } from 'react';
import { theme } from 'theme/theme';
import Logo from './global/logo';

export const WgpuToyWrapper = props => {
const setCanvasEl = useSetAtom(canvasElAtom);
Expand Down Expand Up @@ -68,8 +67,13 @@ export const WgpuToyWrapper = props => {
</Typography>
<Typography>WebGPU support was not detected in your browser.</Typography>
<Typography>
For information on how to set up your browser to run WebGPU code, please see
the instructions linked on the <Logo /> homepage.
<a
href="https://github.com/gpuweb/gpuweb/wiki/Implementation-Status"
style={{ textDecoration: 'underline' }}
>
Click here
</a>{' '}
for further information about supported browsers.
</Typography>
</Stack>
)}
Expand Down
Loading
Loading