Skip to content

Commit fbdbbf5

Browse files
committed
chore: fmt
1 parent fd76f3d commit fbdbbf5

File tree

873 files changed

+80737
-19802
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

873 files changed

+80737
-19802
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ deno run --unstable --allow-ffi <file>
4747

4848
Extensions:
4949

50-
- [Babylon](https://www.babylonjs.com/) (Use
51-
`ext/babylon.ts` for an easy to use wrapper)
50+
- [Babylon](https://www.babylonjs.com/) (Use `ext/babylon.ts` for an easy to use
51+
wrapper)
5252

5353
## Maintainers
5454

api/ext/GL_3DFX_multisample.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

api/ext/GL_3DFX_tbuffer.ts

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

@@ -78,5 +92,8 @@ export function TbufferMask3DFX(
7892

7993
/** Loads all OpenGL API function pointers. */
8094
export function load(proc: (name: string) => Deno.PointerValue): void {
81-
fn_glTbufferMask3DFX = new Deno.UnsafeFnPointer(proc("glTbufferMask3DFX")!, def_glTbufferMask3DFX);
95+
fn_glTbufferMask3DFX = new Deno.UnsafeFnPointer(
96+
proc("glTbufferMask3DFX")!,
97+
def_glTbufferMask3DFX,
98+
);
8299
}

api/ext/GL_3DFX_texture_compression_FXT1.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

api/ext/GL_AMD_blend_minmax_factor.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

api/ext/GL_AMD_compressed_3DC_texture.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

api/ext/GL_AMD_compressed_ATC_texture.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

api/ext/GL_AMD_conservative_depth.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

api/ext/GL_AMD_debug_output.ts

+45-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

@@ -82,7 +96,9 @@ export const def_glDebugMessageEnableAMD = {
8296
result: "void",
8397
} as const;
8498

85-
let fn_glDebugMessageEnableAMD!: Deno.UnsafeFnPointer<typeof def_glDebugMessageEnableAMD>;
99+
let fn_glDebugMessageEnableAMD!: Deno.UnsafeFnPointer<
100+
typeof def_glDebugMessageEnableAMD
101+
>;
86102

87103
export function DebugMessageEnableAMD(
88104
category: GLenum,
@@ -105,7 +121,9 @@ export const def_glDebugMessageInsertAMD = {
105121
result: "void",
106122
} as const;
107123

108-
let fn_glDebugMessageInsertAMD!: Deno.UnsafeFnPointer<typeof def_glDebugMessageInsertAMD>;
124+
let fn_glDebugMessageInsertAMD!: Deno.UnsafeFnPointer<
125+
typeof def_glDebugMessageInsertAMD
126+
>;
109127

110128
export function DebugMessageInsertAMD(
111129
category: GLenum,
@@ -128,7 +146,9 @@ export const def_glDebugMessageCallbackAMD = {
128146
result: "void",
129147
} as const;
130148

131-
let fn_glDebugMessageCallbackAMD!: Deno.UnsafeFnPointer<typeof def_glDebugMessageCallbackAMD>;
149+
let fn_glDebugMessageCallbackAMD!: Deno.UnsafeFnPointer<
150+
typeof def_glDebugMessageCallbackAMD
151+
>;
132152

133153
export function DebugMessageCallbackAMD(
134154
callback: GLDEBUGPROCAMD,
@@ -145,7 +165,9 @@ export const def_glGetDebugMessageLogAMD = {
145165
result: "u32",
146166
} as const;
147167

148-
let fn_glGetDebugMessageLogAMD!: Deno.UnsafeFnPointer<typeof def_glGetDebugMessageLogAMD>;
168+
let fn_glGetDebugMessageLogAMD!: Deno.UnsafeFnPointer<
169+
typeof def_glGetDebugMessageLogAMD
170+
>;
149171

150172
export function GetDebugMessageLogAMD(
151173
count: GLuint,
@@ -169,8 +191,20 @@ export function GetDebugMessageLogAMD(
169191

170192
/** Loads all OpenGL API function pointers. */
171193
export function load(proc: (name: string) => Deno.PointerValue): void {
172-
fn_glDebugMessageEnableAMD = new Deno.UnsafeFnPointer(proc("glDebugMessageEnableAMD")!, def_glDebugMessageEnableAMD);
173-
fn_glDebugMessageInsertAMD = new Deno.UnsafeFnPointer(proc("glDebugMessageInsertAMD")!, def_glDebugMessageInsertAMD);
174-
fn_glDebugMessageCallbackAMD = new Deno.UnsafeFnPointer(proc("glDebugMessageCallbackAMD")!, def_glDebugMessageCallbackAMD);
175-
fn_glGetDebugMessageLogAMD = new Deno.UnsafeFnPointer(proc("glGetDebugMessageLogAMD")!, def_glGetDebugMessageLogAMD);
194+
fn_glDebugMessageEnableAMD = new Deno.UnsafeFnPointer(
195+
proc("glDebugMessageEnableAMD")!,
196+
def_glDebugMessageEnableAMD,
197+
);
198+
fn_glDebugMessageInsertAMD = new Deno.UnsafeFnPointer(
199+
proc("glDebugMessageInsertAMD")!,
200+
def_glDebugMessageInsertAMD,
201+
);
202+
fn_glDebugMessageCallbackAMD = new Deno.UnsafeFnPointer(
203+
proc("glDebugMessageCallbackAMD")!,
204+
def_glDebugMessageCallbackAMD,
205+
);
206+
fn_glGetDebugMessageLogAMD = new Deno.UnsafeFnPointer(
207+
proc("glGetDebugMessageLogAMD")!,
208+
def_glGetDebugMessageLogAMD,
209+
);
176210
}

api/ext/GL_AMD_depth_clamp_separate.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
/// This file is auto-generated. Do not edit.
22

33
/// Util
4-
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
5-
const isTypedArray = (arr: unknown) => arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
4+
export type TypedArray =
5+
| Int8Array
6+
| Uint8Array
7+
| Int16Array
8+
| Uint16Array
9+
| Int32Array
10+
| Uint32Array
11+
| Float32Array
12+
| Float64Array;
13+
const isTypedArray = (arr: unknown) =>
14+
arr instanceof Int8Array || arr instanceof Uint8Array ||
15+
arr instanceof Int16Array || arr instanceof Uint16Array ||
16+
arr instanceof Int32Array || arr instanceof Uint32Array ||
17+
arr instanceof Float32Array || arr instanceof Float64Array;
618
export type Buffer = TypedArray | ArrayBuffer | null | Deno.PointerValue;
719

820
export function bufferToFFI(buf: Buffer): Uint8Array | null {
@@ -12,7 +24,9 @@ export function bufferToFFI(buf: Buffer): Uint8Array | null {
1224
} else if (isTypedArray(buf)) {
1325
return new Uint8Array((buf as TypedArray).buffer);
1426
} else {
15-
return new Uint8Array(Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1));
27+
return new Uint8Array(
28+
Deno.UnsafePointerView.getArrayBuffer((buf as Deno.PointerValue)!, 1),
29+
);
1630
}
1731
}
1832

0 commit comments

Comments
 (0)