Skip to content

Commit

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

// 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.
requiredLimits.limits.minUniformBufferOffsetAlignment = supportedLimits.limits.minUniformBufferOffsetAlignment;
requiredLimits.limits.minStorageBufferOffsetAlignment = supportedLimits.limits.minStorageBufferOffsetAlignment;

return requiredLimits;
}

Expand Down

0 comments on commit 875ef4d

Please sign in to comment.