Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working Compute Blit #780

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

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