-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
featureNew feature or requestNew feature or request
Milestone
Description
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:
class Graphics
{
// 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)
public static void BufferUpload(Array array);
// retrieves the array data from the gpu (only useful in compute shaders)
public static void BufferSync(Array array);
}Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request