Skip to content

Correct Metal backend's index buffer offset in indexed draw call#909

Merged
RobDangerous merged 1 commit intoKode:mainfrom
smallfx:main
Mar 7, 2026
Merged

Correct Metal backend's index buffer offset in indexed draw call#909
RobDangerous merged 1 commit intoKode:mainfrom
smallfx:main

Conversation

@smallfx
Copy link
Copy Markdown
Contributor

@smallfx smallfx commented Mar 7, 2026

Small fix for command_list_draw_indexed in the Metal backend where the indexBufferOffset isn't correctly calculated.

From Metal docs for drawIndexedPrimitives:

indexBufferOffset
An integer that represents the location that’s a multiple of the index size from the start of indexBuffer where the vertex indices begin.

@RobDangerous RobDangerous merged commit 02817d8 into Kode:main Mar 7, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants