| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <nn/gfx/detail/gfx_DataContainer.h> |
| 4 | #include <nn/gfx/gfx_MemoryPoolInfoData.h> |
| 5 | |
| 6 | namespace nn::gfx { |
| 7 | |
| 8 | class MemoryPoolInfo : public detail::DataContainer<MemoryPoolInfoData> { |
| 9 | public: |
| 10 | MemoryPoolInfo() {} |
| 11 | |
| 12 | void SetDefault(); |
| 13 | |
| 14 | void SetMemoryPoolProperty(int value) { memoryPoolProperty = value; } |
| 15 | |
| 16 | void SetPoolMemory(void* value, size_t size) { |
| 17 | pMemory = value; |
| 18 | memorySize = size; |
| 19 | } |
| 20 | |
| 21 | int GetMemoryPoolProperty() const { return memoryPoolProperty; } |
| 22 | void* GetPoolMemory() const { return pMemory; } |
| 23 | size_t GetPoolMemorySize() const { return memorySize; } |
| 24 | }; |
| 25 | |
| 26 | } // namespace nn::gfx |