Skip to content

Commit

Permalink
Add missing assertions. juj#24
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Jan 26, 2023
1 parent c1f9e58 commit 8af15e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/lib_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,9 @@ mergeInto(LibraryManager.library, {
pipelineLayoutId = HEAPU32[fragmentIdx+6],
desc;

{{{ wassert('pipelineLayoutId <= 1/*"auto"*/ || wgpu[pipelineLayoutId]'); }}}
{{{ wassert('pipelineLayoutId <= 1/*"auto"*/ || wgpu[pipelineLayoutId] instanceof GPUPipelineLayout'); }}}

// Read GPUVertexState
{{{ wassert('numVertexBuffers >= 0'); }}}
while(numVertexBuffers--) {
Expand Down

0 comments on commit 8af15e2

Please sign in to comment.