描ける!WebGPUで最初のシェーダートライアングル
VISTA DE CÓDIGO
P
Prompt
Create an interactive WebGPU shader playground that renders a simple triangle using a vertex shader and a fragment shader. Include a canvas, a log panel showing shader source code, and a button to recompile. Use CDN for WebGPU polyfill if needed. Keep it beginner-friendly with comments in code.
このWebGPUチュートリアルでは、頂点シェーダーとフラグメントシェーダーを使って初めての三角形を描画します。シェーダーモジュールの作成、頂点位置をハードコードしたレンダーパイプラインの構築、キャンバスへの描画という最小限のGPUパイプライン設定を示します。余計な複雑さなしにWebGPUの核となる概念を理解するのに最適です。
¿Te resultó útil este prompt?
Comentarios
Los comentarios aparecen después de la moderación