BRE12
FrameUploadCBufferPerFrame.h
1 #pragma once
2 
3 #include <cstdint>
4 
5 #include <ResourceManager\UploadBuffer.h>
6 #include <SettingsManager\SettingsManager.h>
7 
8 namespace BRE {
9 // We support to have different number of queued frames.
10 // This class provides a frame constant buffer per frame.
12 public:
14  ~FrameUploadCBufferPerFrame() = default;
16  const FrameUploadCBufferPerFrame& operator=(const FrameUploadCBufferPerFrame&) = delete;
19 
20  UploadBuffer& GetNextFrameCBuffer() noexcept;
21 
22 private:
23  UploadBuffer* mFrameCBuffers[SettingsManager::sQueuedFrameCount];
24  std::uint32_t mCurrentFrameIndex{ 0U };
25 };
26 
27 }
28 
Definition: Camera.cpp:8
Definition: FrameUploadCBufferPerFrame.h:11
Definition: UploadBuffer.h:9