Skip to content

Commit

Permalink
Add missing maxInterStageShaderComponents limit
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Jul 11, 2024
1 parent 875ef4d commit e93c829
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ WGPURequiredLimits Application::GetRequiredLimits(WGPUAdapter adapter) const {
requiredLimits.limits.maxVertexBufferArrayStride = 5 * sizeof(float);
// ^ This was a 2

// There is a maximum of 3 float forwarded from vertex to fragment shader
requiredLimits.limits.maxInterStageShaderComponents = 3;

// These two limits are different because they are "minimum" limits,
// they are the only ones we are may forward from the adapter's supported
// limits.
Expand Down

0 comments on commit e93c829

Please sign in to comment.