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; }
When fixing this bug, make sure to update whlsl-recursive-structs.html.
WHLSL is no longer relevant.