29 const std::vector<T>& pushConstants = {})
noexcept
31 KP_LOG_DEBUG(
"Kompute OpAlgoDispatch constructor");
33 this->mAlgorithm = algorithm;
35 if (pushConstants.size()) {
36 uint32_t memorySize =
sizeof(
decltype(pushConstants.back()));
37 uint32_t size = pushConstants.size();
38 uint32_t totalSize = size * memorySize;
39 this->mPushConstantsData = malloc(totalSize);
40 memcpy(this->mPushConstantsData, pushConstants.data(), totalSize);
41 this->mPushConstantsDataTypeMemorySize = memorySize;
42 this->mPushConstantsSize = size;