You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now when using arrays (buffers) in shaders, arrays are automatically synced before each shader invocation. this can lead to a lot of unnecessary copying, but is required to prevent desyncs. SF should offer an opt-in solution for manual array-buffer syncing:
classGraphics{// sends the current buffer data to the gpu, any changes after a call to this method will *not* be reflected in shaders (unless the method is called again)publicstaticvoidBufferUpload(Arrayarray);// retrieves the array data from the gpu (only useful in compute shaders)publicstaticvoidBufferSync(Arrayarray);}
The text was updated successfully, but these errors were encountered:
Right now when using arrays (buffers) in shaders, arrays are automatically synced before each shader invocation. this can lead to a lot of unnecessary copying, but is required to prevent desyncs. SF should offer an opt-in solution for manual array-buffer syncing:
The text was updated successfully, but these errors were encountered: