Skip to content

Instantly share code, notes, and snippets.

View greggman's full-sized avatar
😁

Greggman greggman

😁
View GitHub Profile
@greggman
greggman / README.md
Last active March 22, 2024 17:36
WebGL2 - Shadows - Basic w/directional light (PCF)
@greggman
greggman / README.md
Created March 22, 2024 17:34
WebGL2 - Shadows - Basic w/spot light (PCF)
@greggman
greggman / README.md
Last active March 12, 2024 23:14
Iframe color-scheme issue
@greggman
greggman / README.md
Last active February 23, 2024 00:05
Hello Triangle - WebGPU Utils
@greggman
greggman / README.md
Created February 16, 2024 01:44
WebGPU Cube (test that manual matching bindGroupLayouts are compatible with each other)

WebGPU Cube (test that manual matching bindGroupLayouts are compatible with each other)

view on jsgist

@greggman
greggman / README.md
Last active February 15, 2024 00:40
WebGPU CTS fragment builtins multisampling sample_index triangles

WebGPU CTS fragment builtins multisampling sample_index triangles

view on jsgist

@greggman
greggman / README.md
Created February 10, 2024 01:07
WebGPU Cube (using bindGroupLayout from different layout: 'auto' pipeline doesn't generate validation error - but should!)

WebGPU Cube (using bindGroupLayout from different layout: 'auto' pipeline doesn't generate validation error - but should!)

view on jsgist

@greggman
greggman / README.md
Last active February 8, 2024 22:09
WebGPU Test - Mess up indirect draw by updating indirect buffers

WebGPU Test - Mess up indirect draw by updating indirect buffers

view on jsgist

@greggman
greggman / cts.md
Created February 8, 2024 18:32
WebGPU CTS Notes

maxBindGroupsPlusVertexBuffers

This test is not testable in Chrome as of v123 because in Chrome maxBindGroupsPlusVertexBuffers is equal to maxBindGroups + maxVertexBuffers which mean you can't generate something large enough to test.

To test the test itself though, you can paste this into the CTS and you'll also need to set the expected value of maxBindGroupsPlusVertexBuffers in capability_info.js to 12

@greggman
greggman / README.md
Created February 6, 2024 22:35
WebGPU Simple Textured Quad - Import Video through canvas 2d getImageData

WebGPU Simple Textured Quad - Import Video through canvas 2d getImageData

view on jsgist