-
Notifications
You must be signed in to change notification settings - Fork 65
Improved Scan #855
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
Improved Scan #855
Conversation
include/nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl
Outdated
Show resolved
Hide resolved
include/nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl
Outdated
Show resolved
Hide resolved
include/nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl
Outdated
Show resolved
Hide resolved
include/nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl
Outdated
Show resolved
Hide resolved
include/nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl
Outdated
Show resolved
Hide resolved
using type_t = vector<scalar_t, _ItemsPerInvocation>; | ||
|
||
NBL_CONSTEXPR_STATIC_INLINE int32_t ItemsPerInvocation = _ItemsPerInvocation; | ||
NBL_CONSTEXPR_STATIC_INLINE bool UseNativeIntrinsics = device_capabilities_traits<device_capabilities>::shaderSubgroupArithmetic /*&& /*some heuristic for when its faster*/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write a TODO to add a IHV enum to device_capabilities_traits
so we can && !is_nvidia
:P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also do a using
alias for device_traits = device_capabilities_traits<device_capabilities>
continued in #873 |
Description
Testing
TODO list: