Webgpu Wgsl Fragment Shaders

Use when writing a WGSL fragment shader: color outputs, multiple render targets, depth output, sample-rate shading, or discard. Prevents target / output mismatches and the lost-early-Z bug from writing frag_depth. Covers the @fragment entry point, @builtin position front_facing frag_depth sample_index sample_mask, MRT @location outputs, sample-rate shading, and discard. Keywords: WGSL fragment shader, @fragment, @builtin(frag_depth), @builtin(front_facing), MRT, multiple render targets, discard, sample_index, sample mask, how do I write a fragment shader, pixel shader.

Impertio-Studio 61cae24 4 files · 27.2 KB Updated

File contents

impertio-studio/webgpu-claude-skill-package/tree/main/skills/source/webgpu-wgsl/webgpu-wgsl-fragment-shaders commit 61cae24191

Frequently asked questions

npx skillmds@latest add impertio-studio/webgpu-wgsl-fragment-shaders