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

Add support for SPV_KHR_ray_tracing #563

Merged
merged 7 commits into from
Apr 16, 2021
Merged

Add support for SPV_KHR_ray_tracing #563

merged 7 commits into from
Apr 16, 2021

Conversation

XAMPPRocky
Copy link
Member

@XAMPPRocky XAMPPRocky commented Mar 31, 2021

This PR adds initial support for ray tracing in Rust-GPU.

Currently the tests don't pass because I ran into some ICE's when testing OpTerminateRayKHR. Filed as #564

@XAMPPRocky
Copy link
Member Author

cc @hrydgard @repi

@repi
Copy link
Contributor

repi commented Mar 31, 2021

Cool!

@hrydgard
Copy link
Contributor

hrydgard commented Mar 31, 2021

Very cool!

To actually do real shading once we hit stuff with rays though, we need to be able to look up mesh data by mesh ID, which will likely end up requiring some of #450 or preferably #569 .

@XAMPPRocky XAMPPRocky force-pushed the ray-tracing-khr branch 2 times, most recently from 5fe8d7a to 7a4b997 Compare March 31, 2021 11:34
@XAMPPRocky XAMPPRocky force-pushed the ray-tracing-khr branch 2 times, most recently from 5747b73 to 04c3476 Compare March 31, 2021 13:37
crates/rustc_codegen_spirv/Cargo.toml Outdated Show resolved Hide resolved
crates/spirv-std/src/ray_tracing.rs Outdated Show resolved Hide resolved
@XAMPPRocky XAMPPRocky force-pushed the ray-tracing-khr branch 5 times, most recently from a567b5d to e11a269 Compare April 15, 2021 10:23
crates/spirv-std/src/arch/ray_tracing.rs Outdated Show resolved Hide resolved
crates/spirv-std/src/arch/ray_tracing.rs Outdated Show resolved Hide resolved
crates/spirv-std/src/arch/ray_tracing.rs Show resolved Hide resolved
@XAMPPRocky XAMPPRocky force-pushed the ray-tracing-khr branch 3 times, most recently from d864cff to 82d8250 Compare April 15, 2021 13:01
Copy link
Contributor

@khyperia khyperia left a comment

Choose a reason for hiding this comment

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

LGTM, I'd also like a review from @eddyb

@XAMPPRocky
Copy link
Member Author

r? @eddyb

@XAMPPRocky XAMPPRocky requested a review from eddyb April 16, 2021 05:48
@eddyb eddyb enabled auto-merge (squash) April 16, 2021 07:53
@XAMPPRocky XAMPPRocky requested a review from eddyb April 16, 2021 10:43
@eddyb eddyb merged commit a42a9f2 into main Apr 16, 2021
@eddyb eddyb deleted the ray-tracing-khr branch April 16, 2021 13:59
XAMPPRocky added a commit that referenced this pull request May 3, 2021
* Add support for SPV_KHR_ray_tracing

* Update spirv_type_constraints.rs

* Update spirv_type_constraints.rs

* Update spirv_type_constraints.rs
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.

7 participants