PeriDyno 1.0.0
Loading...
Searching...
No Matches
VkReduce.h
Go to the documentation of this file.
1#pragma once
2#include "VkDeviceArray.h"
3#include "VkProgram.h"
4
5using uint = unsigned int;
6namespace dyno {
10 // T suport int, float and uint32_t types
11 template<typename T>
12 class VkReduce {
13
14 public:
15 VkReduce();
16 ~VkReduce();
17
18 T reduce(const std::vector<T>& input);
19 T reduce(const VkDeviceArray<T>& input);
20
21 private:
22 std::shared_ptr<VkProgram> mReduceKernel;
23 };
24}
25#include "VkReduce.inl"
unsigned int uint
Definition VkReduce.h:5
std::shared_ptr< VkProgram > mReduceKernel
Definition VkReduce.h:22
T reduce(const std::vector< T > &input)
Definition VkReduce.inl:13
#define T(t)
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25