Bug 199766 - [WHLSL] Structs should be able to recursively point to each other
Summary: [WHLSL] Structs should be able to recursively point to each other
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 195681
  Show dependency treegraph
 
Reported: 2019-07-12 16:11 PDT by Justin Fan
Modified: 2020-05-05 00:42 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Fan 2019-07-12 16:11:13 PDT
This code does not compile but should.

        struct Foo {
            thread Bar* bar;
            int foo;
        }
        struct Bar {
            thread Foo* foo;
            int bar;
        }
        int foo()
        {
            Foo foo;
            Bar bar;
            foo.foo = 564;
            bar.bar = 53;
            return foo.bar->bar - bar.foo->foo;
        }
Comment 1 Justin Fan 2019-07-12 16:11:39 PDT
When fixing this bug, make sure to update whlsl-recursive-structs.html.
Comment 2 Myles C. Maxfield 2020-05-05 00:42:34 PDT
WHLSL is no longer relevant.