diff options
Diffstat (limited to 'src/buffer.h')
-rw-r--r-- | src/buffer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index d867a5a..9d6f3d6 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -196,6 +196,12 @@ class Buffer { /// Returns the number of mip levels. uint32_t GetMipLevels() { return mip_levels_; } + /// Sets the file name for loading data into the buffer. + void SetDataFile(std::string data_file) { data_file_ = data_file; } + + /// Returns the file name used to load buffer data from. + std::string GetDataFile() { return data_file_; } + /// Returns a pointer to the internal storage of the buffer. std::vector<uint8_t>* ValuePtr() { return &bytes_; } /// Returns a pointer to the internal storage of the buffer. @@ -252,6 +258,7 @@ class Buffer { Format* format_ = nullptr; Sampler* sampler_ = nullptr; ImageDimension image_dim_ = ImageDimension::kUnknown; + std::string data_file_; }; } // namespace amber |