Skip to content

Commit 9c7ed51

Browse files
committed
fix compilation errors
1 parent 17331bd commit 9c7ed51

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/fg/FrameGraph.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inline const Data &FrameGraph::addCallbackPass(const std::string_view name,
2121
}
2222

2323
_VIRTUALIZABLE_CONCEPT_IMPL
24-
inline typename const T::Desc &
24+
inline const typename T::Desc &
2525
FrameGraph::getDescriptor(FrameGraphResource id) {
2626
return _getResourceEntry(id)._getModel<T>()->descriptor;
2727
}
@@ -71,7 +71,7 @@ inline T &FrameGraphPassResources::get(FrameGraphResource id) {
7171
}
7272

7373
_VIRTUALIZABLE_CONCEPT_IMPL
74-
inline typename const T::Desc &
74+
inline const typename T::Desc &
7575
FrameGraphPassResources::getDescriptor(FrameGraphResource id) const {
7676
assert(m_passNode.reads(id) || m_passNode.creates(id) ||
7777
m_passNode.writes(id));

include/fg/ResourceEntry.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ template <typename T> inline T &ResourceEntry::get() {
88
return _getModel<T>()->resource;
99
}
1010
template <typename T>
11-
inline typename const T::Desc &ResourceEntry::getDescriptor() const {
11+
inline const typename T::Desc &ResourceEntry::getDescriptor() const {
1212
return _getModel<T>()->descriptor;
1313
}
1414

tests/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct FrameGraphTexture {
3232
}
3333
void destroy(const Desc &, void *) {}
3434

35-
void preRead(uint32_t flags, void *) {}
35+
void preRead(const Desc &, uint32_t flags, void *) {}
3636
void preWrite() {}
3737

3838
static const char *toString(const Desc &desc) { return "<I>texture</I>"; }

0 commit comments

Comments
 (0)