Skip to content

Raster reorg#410

Merged
mkeeter merged 4 commits into
mainfrom
raster-reorg
May 9, 2026
Merged

Raster reorg#410
mkeeter merged 4 commits into
mainfrom
raster-reorg

Conversation

@mkeeter
Copy link
Copy Markdown
Owner

@mkeeter mkeeter commented May 9, 2026

This PR is a big reorganiaztion of fidget::raster; this is a step towards merging the WebGPU backend, which wants a similar module organization for the WebGPU backend.

  • render2d and render3d modules are renamed to pixel and voxel, respectively
  • Types from fidget::raster::config are moved to either pixel or voxel modules
  • ImageRenderConfig and VoxelRenderConfig are both renamed to RenderConfig (in different namespaces)
  • Similarly, each namespace contains an Image and RenderSize type definition. voxel::Image replaces GeometryBuffer; pixel::Image is equivalent to fidget::raster::Image<DistancePixel>.
  • Renamed DistancePixel to RawDistancePixel; added an unpacked enum DistancePixel (instead of using Result<f32, PixelFill> as a weird Either type
  • The tile sizes member of RenderConfig is now optional and will fall back to the evaluator's tile size if not populated
    • This adds a F: RenderHints trait bound for many functions in fidget::raster

This comment was marked as resolved.

@mkeeter mkeeter force-pushed the raster-reorg branch 2 times, most recently from 186a784 to 2f8497c Compare May 9, 2026 19:05
@mkeeter mkeeter merged commit bd8da5c into main May 9, 2026
13 checks passed
@mkeeter mkeeter deleted the raster-reorg branch May 9, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants