Hello Triangle - Learn WebGPU for C++ documentation
With webgpu.hpp Resulting code: step030 Vanilla webgpu.h Resulting code: step030-vanilla In its overall outline, drawing a triangle is as simple as this: With webgpu.hpp Vanilla webgpu.h What is a ...
Hello Triangle 🟢 ¶ With webgpu.hpp Resulting code: step030 Vanilla webgpu.h Resulting code: step030-vanilla In its overall outline, drawing a triangle is as simple as this: With webgpu.hpp // Select which render pipeline to use renderPass . setPipeline ( pipeline ); // Draw 1 instance of a 3-vertices shape renderPass . draw ( 3 , 1 , 0 , 0 ); Vanilla webgpu.h // Select which render pipeline to use wgpuRenderPassEncoderSetPipeline ( renderPass , pipeline ); // Draw 1 instance of a 3-vertices shape wgpuRenderPassEncoderDraw ( renderPass , 3 , 1 , 0 , 0 ); What is a bit verbose is the configurat
related reading
- LearnOpenGL - Hello Trianglelearnopengl.com
- First Color 🟢 - Learn WebGPU for C++ documentationeliemichel.github.io
- Why Rendering a Triangle is Complicated | LiamHzliamhz.com
- Ray Tracing in One Weekendraytracing.github.io
- A case for learning GPU programming with a compute-first mindset – Maister's Graphics Adventuresthemaister.net
- OpenGL - Drawing polygonsopen.gl
- Wayback Machinecohost.org
- GitHub - adam-maj/tiny-gpu: A minimal GPU design in Verilog to learn how GPUs work from the ground up · GitHubgithub.com
- Teaching GPU programming in p5.js: now with compute shaders - Dave Pagurekdavepagurek.com
- Shadersshaders.com
- Thousands of Styled Rectangles in 120FPS on GPU - tchayen.comtchayen.com
- The Blog of Maxime Heckelblog.maximeheckel.com