mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
Ran prettier.
This commit is contained in:
@@ -103,7 +103,7 @@ const versions = {
|
|||||||
megacity: {
|
megacity: {
|
||||||
font: "megacity",
|
font: "megacity",
|
||||||
animationSpeed: 0.5,
|
animationSpeed: 0.5,
|
||||||
width: 40
|
width: 40,
|
||||||
},
|
},
|
||||||
operator: {
|
operator: {
|
||||||
bloomStrength: 0.75,
|
bloomStrength: 0.75,
|
||||||
|
|||||||
@@ -118,12 +118,12 @@ const makePass = (loaded, build, run) => ({
|
|||||||
|
|
||||||
const makePipeline = async (context, steps) => {
|
const makePipeline = async (context, steps) => {
|
||||||
steps = steps.filter((f) => f != null).map((f) => f(context));
|
steps = steps.filter((f) => f != null).map((f) => f(context));
|
||||||
await Promise.all(steps.map(step => step.loaded));
|
await Promise.all(steps.map((step) => step.loaded));
|
||||||
return {
|
return {
|
||||||
steps,
|
steps,
|
||||||
build: (canvasSize) => steps.reduce((outputs, step) => step.build(canvasSize, outputs), null),
|
build: (canvasSize) => steps.reduce((outputs, step) => step.build(canvasSize, outputs), null),
|
||||||
run: (encoder) => steps.forEach((step) => step.run(encoder))
|
run: (encoder) => steps.forEach((step) => step.run(encoder)),
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
export { getCanvasSize, makeRenderTarget, makeComputeTarget, make1DTexture, loadTexture, loadShader, makeUniformBuffer, makePass, makePipeline, makeBindGroup };
|
export { getCanvasSize, makeRenderTarget, makeComputeTarget, make1DTexture, loadTexture, loadShader, makeUniformBuffer, makePass, makePipeline, makeBindGroup };
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ const parseStructLayout = (identifier, body, structLayouts) => {
|
|||||||
.filter((s) => s.length > 0)
|
.filter((s) => s.length > 0)
|
||||||
// ...but some commas separate elements between angle brackets, rather than between lines:
|
// ...but some commas separate elements between angle brackets, rather than between lines:
|
||||||
.reduce((existingLines, line, index) => {
|
.reduce((existingLines, line, index) => {
|
||||||
|
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
return [line];
|
return [line];
|
||||||
}
|
}
|
||||||
|
|||||||
1
prettier_command.txt
Normal file
1
prettier_command.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
prettier --write --use-tabs --print-width 160 "index.html" "./js/**/**.js" "./lib/gpu-buffer.js"
|
||||||
Reference in New Issue
Block a user