Skip to content

Working Compute Blit #780

New issue

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

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

Already on GitHub? # to your account

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant