|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
The flood compute program, expressed in the donner::gpu::shader IR.
More...
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| ShaderResult< IrModule > | donner::gpu::shader::programs::BuildFloodModule () |
| Builds the flood compute program: one @compute @workgroup_size(8, 8, 1) entry point named cs_main that writes one uniform color to every texel of a write-only storage texture. | |
The flood compute program, expressed in the donner::gpu::shader IR.
| ShaderResult< IrModule > donner::gpu::shader::programs::BuildFloodModule | ( | ) |
Builds the flood compute program: one @compute @workgroup_size(8, 8, 1) entry point named cs_main that writes one uniform color to every texel of a write-only storage texture.
The program reads no texture, so the destination extent is the only thing that bounds it. The color is written exactly as the uniform carries it: whether it is premultiplied is the caller's decision, and nothing here re-associates it with the alpha channel.
Invocations outside the destination extent return without writing, so a dispatch rounded up to whole workgroups is safe.