描ける!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
この記事が役に立ったら投げ銭で応援
Apple Pay / Google Pay / カード (Visa/Mastercard/JCB/Amex) / Link / Alipay / WeChat Pay 対応 · Stripeで安全に決済
開発者が選ぶ最強ツール集
運営者が毎日使っているツール・ガジェット 6選