staging_buffer_cache: Remove [[nodiscard]]

This commit is contained in:
ReinUsesLisp
2019-07-15 19:57:42 -03:00
parent f0161d2799
commit b65871407e

View File

@@ -23,15 +23,15 @@ public:
explicit StagingBufferCache(bool can_flush_aot) : can_flush_aot{can_flush_aot} {} explicit StagingBufferCache(bool can_flush_aot) : can_flush_aot{can_flush_aot} {}
virtual ~StagingBufferCache() = default; virtual ~StagingBufferCache() = default;
[[nodiscard]] StagingBufferType& GetWriteBuffer(std::size_t size) { StagingBufferType& GetWriteBuffer(std::size_t size) {
return GetBuffer(size, false); return GetBuffer(size, false);
} }
[[nodiscard]] StagingBufferType& GetReadBuffer(std::size_t size) { StagingBufferType& GetReadBuffer(std::size_t size) {
return GetBuffer(size, true); return GetBuffer(size, true);
} }
[[nodiscard]] bool CanFlushAheadOfTime() const { bool CanFlushAheadOfTime() const {
return can_flush_aot; return can_flush_aot;
} }