From b8bb8e343555885e765470894f4e9904d5e9bf22 Mon Sep 17 00:00:00 2001 From: Vecvec Date: Mon, 10 Feb 2025 06:53:28 +1300 Subject: [PATCH] Update specs. --- etc/specs/ray_tracing.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/etc/specs/ray_tracing.md b/etc/specs/ray_tracing.md index 21a797b3e2..6daa8e7920 100644 --- a/etc/specs/ray_tracing.md +++ b/etc/specs/ray_tracing.md @@ -50,6 +50,8 @@ Naming is mostly taken from vulkan. ```wgsl // - Initializes the `ray_query` to check where (if anywhere) the ray defined by `ray_desc` hits in `acceleration_structure rayQueryInitialize(rq: ptr, acceleration_structure: acceleration_structure, ray_desc: RayDesc) +// Overload. +rayQueryInitialize(rq: ptr>, acceleration_structure: acceleration_structure, ray_desc: RayDesc) // - Traces the ray in the initialized ray_query (partially) through the scene. // - Returns true if a triangle that was hit by the ray was in a `Blas` that is not marked as opaque. @@ -62,19 +64,25 @@ rayQueryInitialize(rq: ptr, acceleration_structure: acceler // the closest hit a `Committed` intersection should be used. // - Calling this function multiple times will cause the ray traversal to continue if it was interrupted by a `Candidate` // intersection. -rayQueryProceed(rq: ptr) -> bool` +rayQueryProceed(rq: ptr) -> bool +// Overload. +rayQueryProceed(rq: ptr>) -> bool // - Returns intersection details about a hit considered `Committed`. rayQueryGetCommittedIntersection(rq: ptr) -> RayIntersection +// Overload. +rayQueryGetCommittedIntersection(rq: ptr>) -> RayIntersection // - Returns intersection details about a hit considered `Candidate`. rayQueryGetCandidateIntersection(rq: ptr) -> RayIntersection +// Overload. +rayQueryGetCandidateIntersection(rq: ptr>) -> RayIntersection // - Returns the vertices of the hit triangle considered `Committed`. -getCommittedHitVertexPositions(rq: ptr) -> array, 3> +getCommittedHitVertexPositions(rq: ptr>) -> array, 3> // - Returns the vertices of the hit triangle considered `Candidate`. -getCandidateHitVertexPositions(rq: ptr) -> array, 3> +getCandidateHitVertexPositions(rq: ptr>) -> array, 3> ``` *The API to commit a candidate intersection is not yet implemented but would be possible to be user implemented.