github
0 of 1108 new or added lines in 68 files covered. (0.0%)
37 existing lines in 9 files now uncovered.33281 of 104907 relevant lines covered (31.72%)
48143.57 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 |
}; |