Why drawIndexed(indexCount) indexCount should > indexBuffer size? #5430
Labels
area: validation
Issues related to validation, diagnostics, and error handling
type: bug
Something isn't working
Milestone
Description
indexCount needs to be larger than indexBuffer size to operate normally, otherwise an error will be reported.
Repro steps
Uncaptured WebGPU error: In a draw command, indexed:true indirect:false, caused by: Index 36 extends beyond limit 36. Did you bind the correct index buffer?
renderBundleEncoder.drawIndexed( 37 ); or larger will work properly.
This phenomenon only occurs in Firefox, in Chrome indexCount should <= indexBuffer size.
Expected vs observed behavior
Clearly describe what you get, and how it goes across your expectations.
Extra materials
Screenshots to help explain your problem.
Validation logs can be attached in case there are warnings and errors.
Zip-compressed API traces and GPU captures can also land here.
Platform
win10, Firefox Nightly 126.0a1
The text was updated successfully, but these errors were encountered: