| 339 | } |
| 340 | |
| 341 | void |
| 342 | Algorithm::recordBindPush(const vk::CommandBuffer& commandBuffer) |
| 343 | { |
| 344 | if (this->mPushConstantsSize) { |
| 345 | KP_LOG_DEBUG("Kompute Algorithm binding push constants memory size: {}", |
| 346 | this->mPushConstantsSize * |
| 347 | this->mPushConstantsDataTypeMemorySize); |
| 348 | |
| 349 | commandBuffer.pushConstants(*this->mPipelineLayout, |
| 350 | vk::ShaderStageFlagBits::eCompute, |
| 351 | 0, |
| 352 | this->mPushConstantsSize * |
| 353 | this->mPushConstantsDataTypeMemorySize, |
| 354 | this->mPushConstantsData); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | void |
| 359 | Algorithm::recordDispatch(const vk::CommandBuffer& commandBuffer) |