Skip to content

Instantly share code, notes, and snippets.

View greggman's full-sized avatar
😁

Greggman greggman

😁
View GitHub Profile
@greggman
greggman / temp.js
Created November 13, 2024 08:16
Incomplete structured setting - slow
const kTypedArrayConstructors = {
i8: Int8Array,
u8: Uint8Array,
i16: Int16Array,
u16: Uint16Array,
i32: Int32Array,
u32: Uint32Array,
f32: Float32Array,
f64: Float64Array,
@greggman
greggman / temp.js
Created November 13, 2024 08:14
incomplete structured setter 2
const kTypedArrayConstructors = {
i8: Int8Array,
u8: Uint8Array,
i16: Int16Array,
u16: Uint16Array,
i32: Int32Array,
u32: Uint32Array,
f32: Float32Array,
f64: Float64Array,
@greggman
greggman / temp.js
Last active November 13, 2024 08:15
Incomplete structured setter v1
const kTypedArrayConstructors = {
i8: Int8Array,
u8: Uint8Array,
i16: Int16Array,
u16: Uint16Array,
i32: Int32Array,
u32: Uint32Array,
f32: Float32Array,
f64: Float64Array,
@greggman
greggman / README.md
Created November 13, 2024 07:43
StructuredAccessorFactory
@greggman
greggman / README.md
Created November 12, 2024 20:22
Canvas 2D: Test stroke with color vs stroke with pattern

Canvas 2D: Test stroke with color vs stroke with pattern

view on jsgist

@greggman
greggman / README.md
Created November 11, 2024 19:54
WebGPU Node/Edges (webgpu-utils) with movement
@greggman
greggman / README.md
Created November 11, 2024 17:44
WebGPU Node/Edges (webgpu-utils)
@greggman
greggman / README.md
Created November 7, 2024 00:06
WebGPU: small timestamp test
@greggman
greggman / README.md
Created November 5, 2024 22:13
WebGPU: textureGather from r16uint cubemap (filtering fixed)

WebGPU: textureGather from r16uint cubemap (filtering fixed)

view on jsgist

@greggman
greggman / README.md
Last active November 4, 2024 20:53
WebGPU: test bindGroupLayout filtering and depth