flâneur — a map of the web's best reading

Hello Triangle - Learn WebGPU for C++ documentation

eliemichel.github.io · 4,243 words · saved by 1 readers

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

Explore this link on the map →

related reading