-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[hal metal] ray tracing acceleration structures #7660
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
Open
Lichtso
wants to merge
25
commits into
gfx-rs:trunk
Choose a base branch
from
Lichtso:metal/ray_tracing_acceleration_structures
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
898c357
Removes Option<> around AccelerationStructureTriangleIndices::buffer.
Lichtso 3be8c76
Removes Option<> around AccelerationStructureTriangles::vertex_buffer.
Lichtso f3e14ff
Removes Option<> around AccelerationStructureAABBs::buffer.
Lichtso 819fae2
Removes Option<> around AccelerationStructureInstances::buffer.
Lichtso 517ba01
Fixes index_buffer label in ray_traced_triangle example.
Lichtso ef47bc0
Fixes min_push_constant_size in ray_shadows example.
Lichtso 5fe6530
Updates CHANGELOG.
Lichtso 60c3576
Adds feature detection.
Lichtso 540d040
Sets raw_tlas_instance_size.
Lichtso d54f3c6
Sets ray_tracing_scratch_buffer_alignment.
Lichtso 26c5acb
Adds conv::map_index_format().
Lichtso 483bcff
Adds conv::map_acceleration_structure_descriptor().
Lichtso bd3366c
Adds AccelerationStructurePtr.
Lichtso dda8095
Implements AccelerationStructure.
Lichtso ec3d18e
Adds CommandState::acceleration_structure_builder.
Lichtso d885189
Implements CommandEncoder::copy_acceleration_structure_to_acceleratio…
Lichtso 5ccd34f
Implements CommandEncoder::build_acceleration_structures().
Lichtso b4d2b75
Implements CommandEncoder::place_acceleration_structure_barrier().
Lichtso aca2014
Implements CommandEncoder::read_acceleration_structure_compact_size().
Lichtso 2212733
Implements Device::get_acceleration_structure_build_sizes().
Lichtso 8615600
Implements Device::get_acceleration_structure_device_address().
Lichtso 438742e
Implements Device::create_acceleration_structure().
Lichtso 6902c45
Implements Device::destroy_acceleration_structure().
Lichtso 4915a8f
Implements Device::tlas_instance_to_bytes().
Lichtso 982103f
Implements resource binding.
Lichtso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It seems that metal always sends at least 16 bytes for push constants, even if we only pass in 12 bytes. And then the shader validation complains that the receiver here only expects 12 bytes.