a5kin / xentica

GPU-accelerated engine for multi-dimensional cellular automata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Direct buffer assign fails

a5kin opened this issue · comments

When assigning integer directly to buffer as:

def emit(self):
    self.buffers[i].state = 0

we got following error:

AttributeError: 'int' object has no attribute 'code'

We have to cast any assigning value to DeferredExpression automatically.

Direct buffer assignments now works as expected.