Lugdunum  0.1.0
SubBuffer.inl
Go to the documentation of this file.
1 inline SubBuffer::SubBuffer(const API::Buffer* buffer, uint32_t offset, uint32_t size) : _buffer(buffer), _offset(offset), _size(size) {}
2 
3 inline const API::Buffer* SubBuffer::getBuffer() const {
4  return _buffer;
5 }
6 
7 inline uint32_t SubBuffer::getOffset() const {
8  return _offset;
9 }
10 
11 inline uint32_t SubBuffer::getSize() const {
12  return _size;
13 }
14 
15 inline size_t SubBuffer::getHash() const {
16  return _hash;
17 }
18 
19 inline void SubBuffer::setHash(size_t hash) {
20  _hash = hash;
21 }