We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae0623 commit bb6f9e5Copy full SHA for bb6f9e5
include/nbl/asset/IBuffer.h
@@ -100,6 +100,9 @@ struct SBufferRange
100
inline operator SBufferRange<const BufferType>&() {return *reinterpret_cast<SBufferRange<const BufferType>*>(this);}
101
inline operator const SBufferRange<const BufferType>&() const {return *reinterpret_cast<const SBufferRange<const BufferType>*>(this);}
102
103
+ template<typename BT> requires std::is_same_v<std::remove_const_t<BT>,BufferType>
104
+ inline operator SBufferBinding<BT>() const { return {.offset=offset,.buffer=buffer}; }
105
+
106
explicit inline operator bool() const {return isValid();}
107
108
inline bool isValid() const
0 commit comments