Skip to content
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

Use transform_buffer_offset when initialising transform_buffer. #6864

Merged
merged 5 commits into from
Jan 7, 2025

Conversation

Vecvec
Copy link
Contributor

@Vecvec Vecvec commented Jan 6, 2025

Connections
None

Description
Previously index_buffer_offset was used instead of transform_buffer_offset in part of the initialisation call for transform_buffer, this caused the code to crash when using a transform buffer.

Testing
This adds a test that used to fail but now succeeds

Checklist

  • Run cargo fmt.
  • [n/a] Run taplo format.
  • Run cargo clippy. If applicable, add:
    • [n/a] --target wasm32-unknown-unknown
    • [n/a] --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@Vecvec Vecvec requested a review from a team as a code owner January 6, 2025 08:20
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with nit

wgpu-core/src/command/ray_tracing.rs Outdated Show resolved Hide resolved
@cwfitzgerald cwfitzgerald merged commit 6580528 into gfx-rs:trunk Jan 7, 2025
28 checks passed
@Vecvec Vecvec deleted the bind-tranform branch January 7, 2025 08:02
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