SVG offset parameters and precompiled shader projections. More...
Classes | |
| struct | donner::gpu::shader::programs::PixelShiftSplit |
| Whole-pixel base and constant blend weight of a pixel shift along one axis: output pixel x blends input pixels x - shift and x - shift + 1 by weight. The split is made once, in double precision, so every pixel of a translation uses the same weight wherever the raster sits. More... | |
| struct | donner::gpu::shader::programs::OffsetParams |
| Uniform layout for finite pixel shifts in the admitted [-4096, 4096] range, split per axis by SplitPixelShift. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| PixelShiftSplit | donner::gpu::shader::programs::SplitPixelShift (double pixels) |
| Splits a finite pixel shift in the admitted [-4096, 4096] range. | |
| OffsetParams | donner::gpu::shader::programs::MakeOffsetParams (double dx, double dy) |
Builds the uniform for a shift of (dx, dy) pixels. | |
| const CompiledShaderView & | donner::gpu::shader::programs::OffsetShader () |
| Returns the authored WGSL offset shader and its reflected resource/compute interface. Source texels outside the input extent become transparent black. Invocations outside the destination extent do not write. Callers provide finite shifts in [-4096, 4096]. | |
| const CompiledShaderView & | donner::gpu::shader::programs::OffsetNativeShader () |
| Returns only the platform's native MSL or SPIR-V projection and the reflected interface. | |
SVG offset parameters and precompiled shader projections.
| const CompiledShaderView & donner::gpu::shader::programs::OffsetNativeShader | ( | ) |
Returns only the platform's native MSL or SPIR-V projection and the reflected interface.
| const CompiledShaderView & donner::gpu::shader::programs::OffsetShader | ( | ) |
Returns the authored WGSL offset shader and its reflected resource/compute interface. Source texels outside the input extent become transparent black. Invocations outside the destination extent do not write. Callers provide finite shifts in [-4096, 4096].
|
inline |
Splits a finite pixel shift in the admitted [-4096, 4096] range.
| pixels | Shift in pixels; positive moves content toward larger coordinates. |