File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -62,19 +62,19 @@ struct NBL_API SBufferBinding
62
62
template <typename BufferType>
63
63
struct NBL_API SBufferRange
64
64
{
65
- SBufferRange ( const size_t & _offset, const size_t _size, core::smart_refctd_ptr<BufferType>&& _buffer)
66
- : offset( _offset), size( _size), buffer( core::smart_refctd_ptr<BufferType>( _buffer)) {}
67
-
68
- SBufferRange () : offset(0ull ), size(0ull ), buffer(nullptr ) {}
65
+ // Temp Fix, If you want to uncomment this then fix every example having compile issues -> add core::smart_refctd_ptr around the buffer to be an r-value ref
66
+ // SBufferRange(const size_t& _offset, const size_t& _size, core::smart_refctd_ptr<BufferType>&& _buffer)
67
+ // : offset(_offset), size(_size), buffer(core::smart_refctd_ptr<BufferType>(_buffer)) {}
68
+ // SBufferRange() : offset(0ull), size(0ull), buffer(nullptr) {}
69
69
70
70
inline bool isValid () const
71
71
{
72
72
return buffer && size && (offset+size<=buffer->getSize ());
73
73
}
74
74
75
- size_t offset;
76
- size_t size ;
77
- core::smart_refctd_ptr<BufferType> buffer;
75
+ size_t offset = 0ull ;
76
+ size_t size = 0ull ;
77
+ core::smart_refctd_ptr<BufferType> buffer = nullptr ;
78
78
79
79
inline bool operator ==(const SBufferRange<BufferType>& rhs) const { return buffer==rhs.buffer && offset==rhs.offset && size==rhs.size ; }
80
80
inline bool operator !=(const SBufferRange<BufferType>& rhs) const { return !operator ==(rhs); }
You can’t perform that action at this time.
0 commit comments