github
0 of 954 new or added lines in 46 files covered. (0.0%)
38 existing lines in 8 files now uncovered.33169 of 104588 relevant lines covered (31.71%)
48214.11 hits per line
1 |
#pragma once
|
|
2 |
|
|
3 |
#include <QString> |
|
4 |
|
|
5 |
#include "rendergraph/types.h" |
|
6 |
|
|
7 |
namespace rendergraph { |
|
8 |
struct Uniform;
|
|
9 |
} |
|
10 |
|
|
11 |
struct rendergraph::Uniform {
|
|
12 |
const Type m_type;
|
|
13 |
const QString m_name;
|
|
14 |
|
|
NEW
|
Uniform(Type type) |
× |
NEW
|
: m_type{type} { |
× |
NEW
|
} |
× |
18 |
|
|
NEW
|
Uniform(Type type, QString name) |
× |
NEW
|
: m_type{type}, |
× |
NEW
|
m_name{std::move(name)} { |
× |
NEW
|
} |
× |
23 |
|
|
24 |
template<typename T> |
|
NEW
|
static Uniform create() {
|
× |
NEW
|
return Uniform(typeOf<T>());
|
× |
27 |
} |
|
28 |
}; |