| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <nn/gfx/detail/gfx_DataContainer.h> |
| 4 | #include <nn/gfx/gfx_Common.h> |
| 5 | |
| 6 | namespace nn::gfx { |
| 7 | |
| 8 | struct DescriptorSlotData { |
| 9 | uint64_t value; |
| 10 | }; |
| 11 | |
| 12 | class DescriptorSlot : public detail::DataContainer<DescriptorSlotData> { |
| 13 | static const uint64_t InvalidValue = 0xFFFFFFFFFFFFFFFF; |
| 14 | |
| 15 | public: |
| 16 | DescriptorSlot(); |
| 17 | |
| 18 | void Offset(ptrdiff_t offset) { value += offset; } |
| 19 | |
| 20 | bool IsValid() const; |
| 21 | void Invalidate(); |
| 22 | }; |
| 23 | |
| 24 | } // namespace nn::gfx |