Skip to content

Conversation

keptsecret
Copy link
Contributor

No description provided.

Comment on lines +929 to 945
#define NBL_CONCEPT_TPLT_PRM_NAMES (T)
#define NBL_CONCEPT_PARAM_0 (bxdf, T)
#define NBL_CONCEPT_PARAM_1 (_sample, typename T::sample_type)
#define NBL_CONCEPT_PARAM_2 (aniso, typename T::anisotropic_interaction_type)
#define NBL_CONCEPT_PARAM_3 (anisocache, typename T::anisocache_type)
NBL_CONCEPT_BEGIN(4)
#define bxdf NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_0
#define _sample NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_1
#define aniso NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_2
#define anisocache NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_3
NBL_CONCEPT_END(
((NBL_CONCEPT_REQ_TYPE)(T::scalar_type))
((NBL_CONCEPT_REQ_TYPE)(T::isotropic_interaction_type))
((NBL_CONCEPT_REQ_TYPE)(T::anisotropic_interaction_type))
((NBL_CONCEPT_REQ_TYPE)(T::sample_type))
((NBL_CONCEPT_REQ_TYPE)(T::spectral_type))
((NBL_CONCEPT_REQ_TYPE)(T::quotient_pdf_type))
((NBL_CONCEPT_REQ_TYPE)(T::isocache_type))
((NBL_CONCEPT_REQ_TYPE)(T::anisocache_type))

Choose a reason for hiding this comment

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

why not check bxdf_common instead of all the typedefs for scalar, specral, etc. ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Functions in microfacet bxdfs also take cache. Checking bxdf_common would fail because those don't take cache (it's for the non cook torrance bxdfs). Probably a naming problem.

Choose a reason for hiding this comment

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

yeah you'd have to split bxdf_common into typedef checking and then function checking on top

@devshgraphicsprogramming devshgraphicsprogramming merged commit fb76cec into master Sep 19, 2025
19 of 20 checks passed
@devshgraphicsprogramming devshgraphicsprogramming deleted the bxdf_fixes_non_ct branch September 19, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants