star-gs

Literate program for a geometric sensitivity calculation
git clone git://git.meso-star.fr/star-gs.git
Log | Files | Refs | README | LICENSE

commit 0fb7b007917583eb7aa41f18b5fe6918092a5192
parent 32a65b895522fc76cbe3fca83feb23608fee4f23
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon,  3 May 2021 16:26:15 +0200

Add the sgs_geometry_get_sampling_mask function

Diffstat:
Msrc/sgs_geometry.c | 7+++++++
Msrc/sgs_geometry.h | 4++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/sgs_geometry.c b/src/sgs_geometry.c @@ -225,6 +225,13 @@ sgs_geometry_ref_put(struct sgs_geometry* geom) ref_put(&geom->ref, release_geometry); } +int +sgs_geometry_get_sampling_mask(const struct sgs_geometry* geom) +{ + ASSERT(geom); + return geom->sampling_mask; +} + void sgs_geometry_trace_ray (const struct sgs_geometry* geom, diff --git a/src/sgs_geometry.h b/src/sgs_geometry.h @@ -185,6 +185,10 @@ extern LOCAL_SYM void sgs_geometry_ref_put (struct sgs_geometry* geom); +extern LOCAL_SYM int +sgs_geometry_get_sampling_mask + (const struct sgs_geometry* geom); + extern LOCAL_SYM void sgs_geometry_trace_ray (const struct sgs_geometry* geom,