webgpu-compute-shaders
/webgpu-compute-shaders
Projektuje potoki obliczeniowe WebGPU z shaderami WGSL, grupami roboczymi i pamięcią współdzieloną w przeglądarce.
- Autor
- j4flmao ↗
- Repozytorium
- agent-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 10.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Projektuje potoki obliczeniowe WebGPU z shaderami WGSL, grupami roboczymi i pamięcią współdzieloną w przeglądarce.
Wyzwalacze z opisu
Oryginalny opis (EN)
Use this skill when the user says 'WebGPU', 'compute shader', 'WGSL', 'workgroup', 'GPGPU in browser', 'storage buffer'. Explains WebGPU compute pipelines, WGSL compute shaders, and workgroup/shared-memory design. Do NOT use for: WebGL rendering, or raytracing geometry math (use niche/graphics-math/raytracing-mathematics).
Jak działa
- Purpose
- Agent Protocol
- Core Mechanics
Podgląd SKILL.md
---
name: webgpu-compute-shaders
description: >
Use this skill when the user says 'WebGPU', 'compute shader', 'WGSL', 'workgroup', 'GPGPU in browser', 'storage buffer'. Explains WebGPU compute pipelines, WGSL compute shaders, and workgroup/shared-memory design. Do NOT use for: WebGL rendering, or raytracing geometry math (use niche/graphics-math/raytracing-mathematics).
version: "1.0.0"
author: "j4flmao"
license: "MIT"
tags: [niche, graphics, webgpu, wgsl, gpgpu]
---
# WebGPU & Compute Shaders
## Purpose
Explain general-purpose GPU compute in the browser via WebGPU: authoring WGSL compute shaders, dispatching workgroups, and using shared/workgroup memory and storage buffers efficiently.
## Agent Protocol
### Trigger
User phrases: "WebGPU compute", "WGSL compute shader", "workgroup size", "storage buffer binding", "GPGPU in browser".
### Input Context
- Problem to parallelize and data sizes.
- Target workgroup dimensions.
### Output Artifact
Compute pipeline + WGSL shader design.
### Response Format
```
Kernel: {operation}
Workgroup: {@workgroup_size(x,y,z)}
Buffers: {storage / uniform bindings}
```
## Core Mechanics
WebGPU is the modern successor to WebGL. It unlocks the massive parallel processing power of the GPU directly in the browser, not just for drawing triangles, but for general-purpose compute (GPGPU) like Physics simulations or Machine Learning.
### 1. Compute Shaders (WGSL)
Unlike Vertex or Fragment shaders which are tied to the rendering pipeline, a Compute Shader is just a program executed thousands of times simultaneously by the GPU. Written in WebGPU Shading Language (WGSL).
### 2. Workgroups & Shared Memory
GPU threads are organized into Workgroups. Threads within the same Workgroup can share a special, ultra-fast memory space (`var<workgroup>`) and synchronize with each other using barriers (`workgroupBarrier()`). This is critical for complex algorithms like Matrix Multiplication.
### Compute Shader Architecture Map
```mermaid
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
subgraph JS ["JavaScript (CPU)"]
A["Allocate Float32Array"]
B["Write to GPU Buffer"]
C["Dispatch Compute Pipeline"]
end
subgraph GPU_Hardware ["GPU Parallel Execution"]
subgraph Workgroup ["Workgroup (e.g., 64 Threads)"]
D["Invocation 1"]
E["Invocation 2"]
F["Invocation 64"]
G["Shared Memory (Ultra-fast)"]
end
end
subgraph Result ["Readback"]
H["Copy Buffer to CPU"]
end
A --> B
B --> C
C -->|"Spawn Threads"| D
C -->|"Spawn Threads"| E
C -->|"Spawn Threads"| F
D <--> G
E <--> G
F <--> G
Workgroup -->|"Barrier Sync"| H
```
Wersje
W bazie nie ma innych skilli o nazwie webgpu-compute-shaders.
Migawka bazy z 13.11.2026 · wersja paczki 0aa999ffa3ce (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95webgpu-webgl-rendering
Projektuje niskopoziomowe renderowanie i obliczenia GPU w przeglądarce: potoki WebGPU, bufory, bind group i rezerwę WebGL2. - 100webgpu-threejs-tsl
Dostarcza odniesienie do API WebGPU, składni TSL, materiałów węzłowych, integracji WGSL, shaderów obliczeniowych i postprocessingu w Three.js. - 100compiling-wgsl
Konwertuje shadery GLSL na WGSL i sprawdza port piksel po pikselu, a także zmniejsza shadery WebGPU i kompiluje sceny SVG. - 95raytracing-mathematics
Wyjaśnia matematykę ray tracingu: przecięcia promienia ze sferą i trójkątem oraz struktury przyspieszające, takie jak BVH. - 100threejs-impl-webgpu
Używa renderera WebGPU w Three.js, materiałów węzłowych, TSL i shaderów obliczeniowych, z zapasowym renderowaniem WebGL. - 100webgpu-tsl
Zawiera bazę wiedzy o WebGPU i Three.js TSL: WebGPURenderer, materiały węzłowe, shadery obliczeniowe przez Fn(), operatory węzłów, mosty WGSL, wykrywanie funkcji i fallback do WebGL2.