Files
AniCraft/crates/gpu/Cargo.toml
FredApps 1897f901d2 fix(gpu): wrap repeating bitmaps without a signed remainder, undefined on GL (M3)
The fine shader wrapped a repeating bitmap's taps with ((q % size) + size) % size.
naga (30.0.1) writes WGSL's integer % as GLSL's, which is undefined for
negative operands, and the bilinear tap left of or above the edge is -1. On
the GL backend (llvmpipe in the FreeBSD VM, which has no Vulkan driver) the
edge texels came out wrong: bitmap repeated max 79, filtered bitmap max 16, so
FreeBSD x86_64 has failed since bitmap fills landed (0dae205). Vulkan, DX12
and Metal define the remainder, so Linux CI passed.

wrap() takes the unsigned remainder of |i| instead, defined on every backend.
shaders_take_no_signed_remainder parses every shader with naga and fails on a
% whose left operand is a signed integer; it fails on fine.wgsl before this.
2026-11-11 14:40:07 +01:00

30 lines
952 B
TOML

[package]
name = "anicraft-gpu"
description = "AniCraft L3: wgpu stage renderer (tile-binned analytic coverage), checked against the CPU oracle"
version.workspace = true
edition.workspace = true
license.workspace = true
publish.workspace = true
repository.workspace = true
[dependencies]
anicraft-geom.workspace = true
anicraft-doc.workspace = true
anicraft-render.workspace = true
# The same wgpu the shell's egui-wgpu already builds (one wgpu in the tree, ADR 0019).
wgpu.workspace = true
# Blocks on wgpu's adapter/device futures (already in the tree through eframe).
pollster.workspace = true
# Plain-old-data views of the upload buffers (already in the tree through wgpu and egui).
bytemuck.workspace = true
rayon.workspace = true
web-time.workspace = true
thiserror.workspace = true
[dev-dependencies]
# The shaders' types, to keep them free of what a backend leaves undefined (wgpu's own naga).
naga.workspace = true
[lints]
workspace = true