-
Notifications
You must be signed in to change notification settings - Fork 969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ray-tracing] Change index offset to first index #6873
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and matches how draw calls work
Co-authored-by: Connor Fitzgerald <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with question
# Conflicts: # wgpu-core/src/command/ray_tracing.rs
I can't seem to find the question, what is it? |
That's a very interesting question.... let me look to see if I can remember what |
Connections
Mentioned on matrix as being confusing.
Description
index_buffer_offset
is validated that the offset is divisible by the size of the index type, this suggests that it is probably better - and less confusing - if this is changed to be called first index and is multiplied by the size of the index type.Testing
This is a change mostly to naming - it shouldn't need any new tests.
Checklist
cargo fmt
.taplo format
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.