Bug 199766
Summary: | [WHLSL] Structs should be able to recursively point to each other | ||
---|---|---|---|
Product: | WebKit | Reporter: | Justin Fan <justin_fan> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 195681 |
Justin Fan
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;
}
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Justin Fan
When fixing this bug, make sure to update whlsl-recursive-structs.html.
Myles C. Maxfield
WHLSL is no longer relevant.