github
0 of 965 new or added lines in 56 files covered. (0.0%)
33 existing lines in 8 files now uncovered.33165 of 104595 relevant lines covered (31.71%)
48487.35 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 |
}; |