render: request_device asks for default limits, so the atlas clamp never runs on a 2048 adapter #387
Labels
No labels
priority/P0
priority/P1
priority/P2
release/v0.1.0
status/blocked
status/planned
type/bug
type/design
type/test-gap
type/tracker
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/felis#387
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
REQ-1005/REQ-1006 (spec.md) say the atlas sizes "clamp to the adapter's reported limit", but the clamp probably never gets to run on a small adapter.
crates/felis-render-wgpu/src/lib.rs(~354-357) callsrequest_devicewithrequired_limits: wgpu::Limits::default(), which requiresmax_texture_dimension_2d = 8192.request_devicebefore any atlas clamp is computed.Unverified on real downlevel hardware. Likely fix: request
adapter.limits()(orLimits::downlevel_defaults().using_resolution(adapter.limits())) and keep the clamp. Then either confirm the spec wording or narrow it.