Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New "style" encoding to replace "linewidth" #389

Merged
merged 5 commits into from
Oct 27, 2023
Merged

Commits on Oct 27, 2023

  1. [encoding] Added a f32->f16 conversion utility

    This will be used to pack the f64 miter_limit field in `kurbo::Stroke`
    into a 16-bit encoding for GPU consumption.
    armansito committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    db53ff4 View commit details
    Browse the repository at this point in the history
  2. [encoding] Introduce the "Style" object

    Style encodes stroke vs fill style and their related parameters in an
    8-byte data structure as described in vello#303. This data structure
    will replace the existing "linewidth" stream.
    armansito committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    2896cd4 View commit details
    Browse the repository at this point in the history
  3. [test_scenes] fill_type scene

    Added a test scene specifically for fill rules, drawing a star shape
    and intersecting arcs with opposite winding.
    armansito committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    216ecce View commit details
    Browse the repository at this point in the history
  4. [encoding] Replace linewidth stream with the new style encoding

    * The linewidth stream is now the "style" stream. This has been wired up
      all the way up to the `flatten` pipeline which uses the new encoding
      to extract the fill rule.
    
    * Pipelines downstream of `flatten` still use the old linewidth scheme.
      They will be fixed up in a follow-up change.
    armansito committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    fb14961 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a6b3f23 View commit details
    Browse the repository at this point in the history