Skip to content

Commit bae618d

Browse files
author
Mike Solomon
committed
Formats stuff
1 parent 316a340 commit bae618d

24 files changed

Lines changed: 23 additions & 24 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"sandbox": "spago -x sandbox.dhall build && vite build sandbox/",
8-
"format": "purs-tidy format-in-place \"src/**/*.purs\" && prettier --write \"src/**/*.js\""
8+
"format": "purs-tidy format-in-place \"src/**/*.purs sandbox/**/*.purs\" && prettier --write \"src/**/*.js\""
99
},
1010
"keywords": [],
1111
"author": "",

sandbox/Sandbox.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ fn main(@location(0) inColor: vec3<f32>) -> @location(0) vec4<f32> {
237237
(vertex :: GPUVertexState) =
238238
{ "module": vertModule
239239
, entryPoint: "main"
240-
241240
} ~ { buffers: [ positionBufferDesc, colorBufferDesc ] }
242241

243242
-- 🌀 Color/Blend State

src/Web/GPU/GPU.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export const requestAdapterImpl =
33
gpu.requestAdapter(options).then((o) => (o ? just(o) : nothing));
44

55
export const getPreferredCanvasFormatImpl = (gpu) => () =>
6-
gpu.getPreferredCanvasFormat();
6+
gpu.getPreferredCanvasFormat();

src/Web/GPU/GPUAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export const requestDeviceImpl =
1313
(just) => (nothing) => (adapter) => (options) => () =>
1414
adapter.requestDevice(options).then((o) => (o ? just(o) : nothing));
1515
export const requestAdapterInfoImpl = (adapter) => (unmaskHints) => () =>
16-
adapter.requestAdapterInfo(unmaskHints);
16+
adapter.requestAdapterInfo(unmaskHints);

src/Web/GPU/GPUBuffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ export const getMappedRangeWithOffsetAndSizeImpl =
1818
(buffer) => (offset) => (size) => () =>
1919
buffer.getMappedRange(offset, size);
2020
export const unmapImpl = (buffer) => () => buffer.unmap();
21-
export const destroyImpl = (buffer) => () => buffer.destroy();
21+
export const destroyImpl = (buffer) => () => buffer.destroy();

src/Web/GPU/GPUBufferUsage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export const indirect = window.GPUBufferUsage
2727
: 0x0000;
2828
export const queryResolve = window.GPUBufferUsage
2929
? window.GPUBufferUsage.QUERY_RESOLVE
30-
: 0x0000;
30+
: 0x0000;

src/Web/GPU/GPUCanvasContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export const configureImpl = (context) => (descriptor) => () =>
33
context.configure(descriptor);
44
export const unconfigureImpl = (context) => () => context.unconfigure();
55
export const getCurrentTextureImpl = (context) => () =>
6-
context.getCurrentTexture();
6+
context.getCurrentTexture();

src/Web/GPU/GPUColorWrite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export const red = window.GPUColorWrite ? window.GPUColorWrite.RED : 0x0000;
22
export const green = window.GPUColorWrite ? window.GPUColorWrite.GREEN : 0x0000;
33
export const blue = window.GPUColorWrite ? window.GPUColorWrite.BLUE : 0x0000;
44
export const alpha = window.GPUColorWrite ? window.GPUColorWrite.ALPHA : 0x0000;
5-
export const all = window.GPUColorWrite ? window.GPUColorWrite.ALL : 0x0000;
5+
export const all = window.GPUColorWrite ? window.GPUColorWrite.ALL : 0x0000;

src/Web/GPU/GPUCommandEncoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ export const pushDebugGroupImpl = (commandEncoder) => (groupLabel) => () =>
6161
export const popDebugGroupImpl = (commandEncoder) => () =>
6262
commandEncoder.popDebugGroup();
6363
export const insertDebugMarkerImpl = (commandEncoder) => (markerLabel) => () =>
64-
commandEncoder.insertDebugMarker(markerLabel);
64+
commandEncoder.insertDebugMarker(markerLabel);

src/Web/GPU/GPUComputePassEncoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ export const popDebugGroupImpl = (computePassEncoder) => () =>
4444
computePassEncoder.popDebugGroup();
4545
export const insertDebugMarkerImpl =
4646
(computePassEncoder) => (markerLabel) => () =>
47-
computePassEncoder.insertDebugMarker(markerLabel);
47+
computePassEncoder.insertDebugMarker(markerLabel);

0 commit comments

Comments
 (0)