Fixing the names of shaders in the passes. The loadShader utility function now returns the code and the module, since I'm hoping to parse uniform buffer layouts from the code.

This commit is contained in:
Rezmason
2021-11-07 00:40:50 -07:00
parent bade1667ad
commit bd3d0c76d2
8 changed files with 39 additions and 32 deletions

View File

@@ -42,7 +42,8 @@ Bind groups let you bind a bunch of resources at once
Render bundles let you reissue commands
You can only use up to FOUR bind groups on your laptop's device!
Here's an annoying gotcha: uniform buffers are like classic UBOs, and have esoteric ("std140") layout requirements!
Here's an annoying gotcha: uniform buffers have layout requirements listed in the WGSL spec
https://gpuweb.github.io/gpuweb/wgsl/#structure-layout-rules
Texture lookup in vertex shader
You can only sample textures in fragment stages