-
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
26
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
26 commits
Select commit
Hold shift + click to select a range
5b34aeb
Removes Option<> around AccelerationStructureTriangleIndices::buffer.
Lichtso 503f197
Removes Option<> around AccelerationStructureTriangles::vertex_buffer.
Lichtso 8ef0163
Removes Option<> around AccelerationStructureAABBs::buffer.
Lichtso 293d51b
Removes Option<> around AccelerationStructureInstances::buffer.
Lichtso 58a96b6
Fixes index_buffer label in ray_traced_triangle example.
Lichtso 2b4cb04
Fixes min_push_constant_size in ray_shadows example.
Lichtso 9b472f0
Updates CHANGELOG.
Lichtso 7a1c0d2
Adds feature detection.
Lichtso f0a71a8
Sets raw_tlas_instance_size.
Lichtso b4f4ddd
Sets ray_tracing_scratch_buffer_alignment.
Lichtso 59fd0d4
Adds conv::map_index_format().
Lichtso 6564edf
Adds conv::map_acceleration_structure_descriptor().
Lichtso 063667b
Adds AccelerationStructurePtr.
Lichtso 06c161a
Implements AccelerationStructure.
Lichtso f0578d5
Adds CommandState::acceleration_structure_builder.
Lichtso 681e8fa
Implements CommandEncoder::copy_acceleration_structure_to_acceleratio…
Lichtso c7456d0
Implements CommandEncoder::build_acceleration_structures().
Lichtso 0a5c426
Implements CommandEncoder::place_acceleration_structure_barrier().
Lichtso 5f47288
Implements CommandEncoder::read_acceleration_structure_compact_size().
Lichtso d5c7573
Implements Device::get_acceleration_structure_build_sizes().
Lichtso 131d60e
Implements Device::get_acceleration_structure_device_address().
Lichtso e96f73d
Implements Device::create_acceleration_structure().
Lichtso 0b64717
Implements Device::destroy_acceleration_structure().
Lichtso af4dfa6
Implements Device::tlas_instance_to_bytes().
Lichtso e2a6498
Implements resource binding.
Lichtso d8ad785
Memorizes BLAS dependencies of TLAS to call use_resource() in set_bin…
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.