diff options
Diffstat (limited to 'src/abi.zig')
| -rw-r--r-- | src/abi.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/abi.zig b/src/abi.zig index a7a5cce..77a737d 100644 --- a/src/abi.zig +++ b/src/abi.zig @@ -335,6 +335,10 @@ pub const Command = union(enum) { /// is unused. Native samples nearest; the web antialiases the edges of /// a turned image. image: struct { image: Image, dst: Rect, src: Rect = .{}, tint: Color = .white, corners: ?Corners = null }, + /// Filter the canvas underneath `dst`. Native GPU renderer only; other + /// renderers leave the backdrop unchanged. The fragment shader receives + /// color at location 0, UV at 1, sampler at set 2/binding 0 and uniforms at set 3. + backdrop: struct { dst: Rect, fragment: []const u8, uniforms: []const u8 }, /// Where the 2D commands after it draw: an image made by /// `Host.newImage` (an offscreen target, kept between frames), or /// `.none` for the canvas. Each frame starts on the canvas. Switching |
