Skip to content

Support fuller-featured pointers (as per #3276) #3546

Description

@kdashg

In #3276, we agreed to restrict pointers for v1.0, but more fully implement them in v1.1.

Activity

  1. added
    wgsl
    on Oct 25, 2022
  2. added this to the V1.1 milestone on Oct 25, 2022
  3. dneto0 commented on Mar 16, 2023

    @dneto0
    Contributor

    @ben-clayton calls this "unrestricted pointer parameters".

    Without looking, and relying on my fuzzy memory it is:

    • pointer parameters to user-declared functions have the same address space restrictions as for builtin functions, and
    • pointer parameters may point to the interior of a root identifier. That is, delete the clause:
    • "Each argument of pointer type to a user-defined function must have the same memory view as its root identifier."

    This should be modeled as a "software extension" because the transform Ben demonstrated should make this work theoretically as a WGSL to WGSL transform. (barring the usual bugs we find in underlying drivers).

    Note that the aliasing restrictions still are retained.

  4. dneto0 commented on Sep 27, 2023

    @dneto0
    Contributor

    I think this is "resolved needs spec"

  5. added
    wgsl resolved
    on Sep 27, 2023
  6. modified the milestones: Milestone 2, Milestone 1 on Oct 2, 2023
  7. added a commit that references this issue on Oct 2, 2023
    3113843
  8. added a commit that references this issue on Oct 6, 2023
    9298d2f
  9. added 2 commits that reference this issue on Nov 20, 2023
    ecdaabd
    1b0ca0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslwgsl resolved

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions