Skip to content

Minor WebGL->WebGPU fixes#8731

Merged
davepagurek merged 4 commits into
dev-2.0from
fix/webgpu
Apr 19, 2026
Merged

Minor WebGL->WebGPU fixes#8731
davepagurek merged 4 commits into
dev-2.0from
fix/webgpu

Conversation

@davepagurek
Copy link
Copy Markdown
Contributor

@davepagurek davepagurek commented Apr 19, 2026

This fixes a few things that came up when testing a p5.strands tutorial sketch in WebGPU mode:

  • We're logging something every frame in compute shaders
  • Framebuffers created with depth: false are broken
  • noSmooth() throws an error and doesn't work
  • We don't actually document createCanvas as needing to be awaited in WebGPU mode in the description or the types
  • textureSample doesn't work in conditional branches with uniforms as conditions
    • For this one I updated it to textureSampleLevel, which is equivalent for us rn while we don't have mipmaps, and works in uniform conditionals

This contains some small fixes for all of those oversights and adds little unit tests for each.

@p5-bot
Copy link
Copy Markdown

p5-bot Bot commented Apr 19, 2026

Continuous Release

CDN link

Published Packages

Commit hash: 6195a95

Previous deployments

44d1540


This is an automated message.

@davepagurek davepagurek merged commit 6dce90f into dev-2.0 Apr 19, 2026
8 checks passed
@davepagurek davepagurek deleted the fix/webgpu branch April 19, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant