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

Add a bit of logging to ConstantEvaluator. #2487

Closed
wants to merge 7 commits into from

Commits on Sep 15, 2023

  1. [wgsl-in] eagerly evaluate const-expressions

    [wgsl-in] support const-expressions in attributes
    
    allow `Splat` as an evaluated const-expression type
    teoxoy authored and jimblandy committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    1eb5759 View commit details
    Browse the repository at this point in the history
  2. use LocalVariable init

    teoxoy authored and jimblandy committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    ca271cc View commit details
    Browse the repository at this point in the history
  3. [glsl-in] const eval as soon as possible

    teoxoy authored and jimblandy committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    0a915ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8e3d60 View commit details
    Browse the repository at this point in the history
  5. Move front::Emitter to proc.

    With the addition of the constant evaluator to the `proc` module, it
    is now concerned with constructing expressions. Any code that
    constructs expressions will generally also need to deal with `Emit`
    statements, which are handled by the `Emitter` type. However,
    `Emitter` is private to the `front` module. This patch moves it to
    `proc` and makes it accessible to both the constant evaluator and the
    front ends.
    jimblandy committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    667208f View commit details
    Browse the repository at this point in the history
  6. Replace ConstantEvaluator's closure with optional emitter data.

    Instead of letting the user supply an arbitrary closure for appending
    expressions, instead give `ConstantEvaluator` an `Option` that holds
    an `Emitter` to interrupt, and a `block` to add any new `Emit`
    statements to.
    jimblandy committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    9a4db9b View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Configuration menu
    Copy the full SHA
    898e3e1 View commit details
    Browse the repository at this point in the history