github
0 of 1197 new or added lines in 69 files covered. (0.0%)
468 existing lines in 19 files now uncovered.33278 of 104849 relevant lines covered (31.74%)
48214.15 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 |
}; |