Skip to content

Conversation

@1neskk
Copy link

@1neskk 1neskk commented Mar 24, 2025

This PR addresses the warnings generated by calls to a host function from a host device context, specifically within the glm::TMin<float> and glm::TMax<float> functors. The solution involves updating the definitions in glm/detail/func_common.inl to ensure the correct function qualifiers are applied.

The following warnings were addressed:

  • glm/detail/_vectorize.hpp(104): warning #20011-D: calling a __host__ function ("glm::TMin<float>::operator()(const float &, const float &)") from a __host__ __device__ function ("glm::detail::functor2<glm::vec,4,float,glm::qualifier>::call<glm::TMin<float>>") is not allowed
  • A similar warning for glm::TMax<float> was also addressed.

@1neskk 1neskk changed the title Fix host Function Call Issue in _vectorize.hpp Fix host Function Call Issue in _vectorize.hpp Apr 28, 2025
@christophe-lunarg christophe-lunarg merged commit 5db3b61 into g-truc:master Oct 6, 2025
68 checks passed
@christophe-lunarg
Copy link

Thanks for contributing

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