Skip to content

Conversation

devshgraphicsprogramming
Copy link
Member

Description

Testing

TODO list:

Comment on lines +78 to +89
//TODO: move to `truncate` header outside of cpp_compat later
template<int32_t N, typename T, int32_t M> // TODO: NBL_REQUIRE that N<=M
vector<T,N> truncate(const vector<T,M> v) // TODO: use NBL_CONST_REF_ARG(U) instead of U v (circular ref)
{
vector<T,N> retval;
#ifdef __HLSL_VERSION
[unroll(4)]
#endif
for (int32_t i=0; i<N; i++)
retval[i] = v[i];
return retval;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

note to self use #588 static_cast from @Przemog1

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.

1 participant