mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
A little reorganization of methods in the passes.
This commit is contained in:
@@ -100,6 +100,10 @@ export default (context, getInputs) => {
|
||||
let paletteBuffer;
|
||||
let output;
|
||||
|
||||
const getOutputs = () => ({
|
||||
primary: output,
|
||||
});
|
||||
|
||||
const assets = [loadShader(device, "shaders/wgsl/palettePass.wgsl")];
|
||||
|
||||
const ready = (async () => {
|
||||
@@ -134,10 +138,6 @@ export default (context, getInputs) => {
|
||||
output = makePassFBO(device, width, height, canvasFormat);
|
||||
};
|
||||
|
||||
const getOutputs = () => ({
|
||||
primary: output,
|
||||
});
|
||||
|
||||
const execute = (encoder) => {
|
||||
const inputs = getInputs();
|
||||
const tex = inputs.primary;
|
||||
|
||||
Reference in New Issue
Block a user