Skip to content

Add noreturn attribute to IgnoreHit #6956

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szihs
Copy link
Contributor

@szihs szihs commented Apr 30, 2025

No description provided.

@@ -0,0 +1,9930 @@
SLANG_RAW("// TODO: These keywords are not recognized but they should be.\n")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this file included by accident?

@@ -17266,6 +17266,7 @@ bool ReportHitOptix(float tHit, uint hitKind, expand each T attribs)
/// Ignores the current intersection and continues traversal.
/// @remarks Used in any-hit shaders to reject potential intersections
/// @category raytracing
[__noReturn]
[require(cuda_glsl_hlsl_spirv, raytracing_anyhit)]
void IgnoreHit()
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't AcceptHitAndEndSearch() also be noReturn?

@juliusikkala juliusikkala added the pr: non-breaking PRs without breaking changes label Apr 30, 2025
@juliusikkala
Copy link
Contributor

Ah, just noticed that this was a draft, sorry for the overeager commentary on unfinished work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants