Skip to content

Commit

Permalink
Add terminateRayEXT & ignoreIntersectionEXT (#5974)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusikkala authored Dec 31, 2024
1 parent a8471a1 commit 823b6a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions source/slang/glsl.meta.slang
Original file line number Diff line number Diff line change
Expand Up @@ -5103,6 +5103,30 @@ public bool reportIntersectionEXT(float hitT, uint hitKind)
return __reportIntersection(hitT, hitKind);
}

public property int terminateRayEXT
{
[require(glsl_spirv, raytracing_anyhit)]
[ForceInline]
get
{
setupExtForRayTracingBuiltIn();
AcceptHitAndEndSearch();
return 0;
}
}

public property int ignoreIntersectionEXT
{
[require(glsl_spirv, raytracing_anyhit)]
[ForceInline]
get
{
setupExtForRayTracingBuiltIn();
IgnoreHit();
return 0;
}
}

__glsl_extension(GL_EXT_ray_tracing)
[require(glsl_spirv, raytracing_raygen_closesthit_miss_callable)]
public void executeCallableEXT(
Expand Down

0 comments on commit 823b6a8

Please sign in to comment.