Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/release-content/migration-guides/set_index_buffer.md
7223 views
---
title: "`TrackedRenderPass::set_index_buffer` no longer takes buffer offset" pull_requests: [20468]
---

TrackedRenderPass::set_index_buffer no longer takes a separate buffer offset argument, which wasn't actually forwarded to wgpu. You have already needed to pass a BufferSlice that is sliced to the desired offset/size.

// Before: pass.set_index_buffer(indices.slice(1..), 1, IndexFormat::Uint32); // After: pass.set_index_buffer(indices.slice(1..), IndexFormat::Uint32);