Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2331197 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Mar 31, 2024
1 parent 11893ab commit 378b0b1
Show file tree
Hide file tree
Showing 102 changed files with 1,230 additions and 420 deletions.
2 changes: 1 addition & 1 deletion CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### 1.5.0

* support other resource types, storageTextures, textures, samplers, externalTextures
* Add support for storage textures, external textures, and samplers

### 1.4.0

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

See [here](https://greggman.github.io/webgpu-utils/docs)

* [ChangeList](https://github.com/greggman/webgpu-utils/CHANGELIST.md)
* [Migration Notes](https://github.com/greggman/webgpu-utils/migration.md)
* [ChangeList](https://greggman.github.io/webgpu-utils/CHANGELIST.html)
* [Migration Notes](https://greggman.github.io/webgpu-utils/migration.html)

## Random useful things for WebGPU

Expand Down
2 changes: 2 additions & 0 deletions dist/1.x/attribute-utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export type BuffersAndAttributes = {
indexBuffer?: GPUBuffer;
indexFormat?: GPUIndexFormat;
};
export declare function makeTypedArrayFromArrayUnion(array: ArrayUnion, name: string): TypedArray;
export declare function getNumComponents(array: ArrayUnion, arrayName: string): number;
type TypedArrayWithOffsetAndStride = {
data: TypedArray;
offset: number; /** In elements not bytes */
Expand Down
36 changes: 9 additions & 27 deletions dist/1.x/primitives.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,33 +160,6 @@ export declare function createTruncatedConeVertices({ bottomRadius, topRadius, h
export declare function create3DFVertices(): {
[k: string]: Uint8Array | Uint16Array | Float32Array;
};
/**
* Creates crescent vertices.
*
* @param params
* @param params.verticalRadius The vertical radius of the crescent. Default = 2
* @param params.outerRadius The outer radius of the crescent. Default = 1
* @param params.innerRadius The inner radius of the crescent. Default = 0
* @param params.thickness The thickness of the crescent. Default = 1
* @param params.subdivisionsDown number of steps around the crescent. Default = 12
* @param params.startOffset Where to start arc. Default 0. Default = 0
* @param params.endOffset Where to end arg. Default 1. Default = 1
* @return The created vertices.
*/
export declare function createCrescentVertices({ verticalRadius, outerRadius, innerRadius, thickness, subdivisionsDown, startOffset, endOffset, }?: {
verticalRadius?: number | undefined;
outerRadius?: number | undefined;
innerRadius?: number | undefined;
thickness?: number | undefined;
subdivisionsDown?: number | undefined;
startOffset?: number | undefined;
endOffset?: number | undefined;
}): {
position: Float32Array;
normal: Float32Array;
texcoord: Float32Array;
indices: Uint16Array;
};
/**
* Creates cylinder vertices. The cylinder will be created around the origin
* along the y-axis.
Expand Down Expand Up @@ -275,3 +248,12 @@ export declare function createDiscVertices({ radius, divisions, stacks, innerRad
texcoord: Float32Array;
indices: Uint16Array;
};
/**
* Given indexed vertices creates a new set of vertices un-indexed by expanding the vertices by index.
*/
export declare function deindex(arrays: Arrays): Arrays;
/**
* Generate triangle normals from positions.
* Assumes every 3 values is a position and every 3 positions come from the same triangle
*/
export declare function generateTriangleNormals(positions: Float32Array): Float32Array;
167 changes: 80 additions & 87 deletions dist/1.x/webgpu-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/1.x/webgpu-utils.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/1.x/webgpu-utils.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/1.x/webgpu-utils.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 378b0b1

Please sign in to comment.