Skip to content

Commit 51e408b

Browse files
author
kevyuu
committed
Implement ICPUDescriptorSet::valid()
1 parent c3c50b4 commit 51e408b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/nbl/asset/ICPUDescriptorSet.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ class NBL_API2 ICPUDescriptorSet final : public IDescriptorSet<ICPUDescriptorSet
7777

7878
core::smart_refctd_ptr<IAsset> clone(uint32_t _depth = ~0u) const override;
7979

80+
inline virtual bool valid() const override {
81+
if (!m_layout->valid()) return false;
82+
return true;
83+
}
84+
8085
protected:
8186
virtual ~ICPUDescriptorSet() = default;
8287

0 commit comments

Comments
 (0)