在GAMES201的lecture9中提到了可以使用.place(v(0))与.place(v(1))构建SOA的数据结构,但是目前好像不能这么做,只能在ti.field()中添加layout=ti.Layout.SOA参数。但是我想在空间稀疏数据结构中使用SOA应该怎么做呢,比如:
x = ti.Vector.field(2, ti.i32)
pixel = ti.root.bitmasked(ti.j, 100)
pixel.place(x(0))
pixel.place(x(1))
会提示
pixel.place(x(0))
TypeError: 'MatrixField' object is not callable