mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
Unifying the interfaces of regl and webgpu makePass and makePipeline.
This commit is contained in:
@@ -80,10 +80,10 @@ const makeBindGroup = (device, pipeline, index, entries) =>
|
||||
})),
|
||||
});
|
||||
|
||||
const makePass = (ready, setSize, getOutputs, execute) => ({
|
||||
const makePass = (getOutputs, ready, setSize, execute) => ({
|
||||
getOutputs: getOutputs ?? (() => ({})),
|
||||
ready: ready ?? Promise.resolve(),
|
||||
setSize: setSize ?? (() => {}),
|
||||
getOutputs: getOutputs ?? (() => ({})),
|
||||
execute: execute ?? (() => {}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user