Webgpu Wgsl Uniformity

Use when a WGSL shader hits a uniformity or derivative_uniformity diagnostic, or when enabling optional WGSL features with enable or requires directives. Prevents shader-creation errors from calling textureSample, derivatives, or barriers in non-uniform control flow. Covers uniform control flow, the uniformity analysis, derivative_uniformity diagnostics, the diagnostic directive, and enable / requires feature gating. Keywords: WGSL uniformity, uniform control flow, derivative_uniformity, diagnostic, enable f16, requires, textureSample uniformity error, workgroupBarrier divergent, must be called from uniform control flow.

Impertio-Studio 325f517 4 files · 33.0 KB Updated

File contents

impertio-studio/webgpu-claude-skill-package/tree/main/skills/source/webgpu-wgsl/webgpu-wgsl-uniformity commit 325f517e11

Frequently asked questions

npx skillmds@latest add impertio-studio/webgpu-wgsl-uniformity