PeriDyno 1.0.0
Loading...
Searching...
No Matches
VkConstant.h
Go to the documentation of this file.
1#pragma once
2#include "VkVariable.h"
3
4namespace dyno {
5
6 template<typename T>
7 class VkConstant : public VkVariable
8 {
9 public:
10 VkConstant();
11 VkConstant(T val);
13
14 void setValue(const T val);
15 T getValue();
16
17 VariableType type() override;
18
19 uint32_t bufferSize() override { return sizeof(T); }
20
21 void* data() const override { return (void*)&mVal; }
22
23 protected:
25 };
26}
27
28#include "VkConstant.inl"
uint32_t bufferSize() override
Definition VkConstant.h:19
VariableType type() override
void setValue(const T val)
void * data() const override
Definition VkConstant.h:21
#define T(t)
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
VariableType
Definition VkVariable.h:14