BRE12
BRE
ResourceManager
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.
11
class
FrameUploadCBufferPerFrame
{
12
public
:
13
FrameUploadCBufferPerFrame
();
14
~
FrameUploadCBufferPerFrame
() =
default
;
15
FrameUploadCBufferPerFrame
(
const
FrameUploadCBufferPerFrame
&) =
delete
;
16
const
FrameUploadCBufferPerFrame
& operator=(
const
FrameUploadCBufferPerFrame
&) =
delete
;
17
FrameUploadCBufferPerFrame
(
FrameUploadCBufferPerFrame
&&) =
default
;
18
FrameUploadCBufferPerFrame
& operator=(
FrameUploadCBufferPerFrame
&&) =
default
;
19
20
UploadBuffer
& GetNextFrameCBuffer() noexcept;
21
22
private
:
23
UploadBuffer
* mFrameCBuffers[SettingsManager::sQueuedFrameCount];
24
std::uint32_t mCurrentFrameIndex{ 0U };
25
};
26
27
}
28
BRE
Definition:
Camera.cpp:8
BRE::FrameUploadCBufferPerFrame
Definition:
FrameUploadCBufferPerFrame.h:11
BRE::UploadBuffer
Definition:
UploadBuffer.h:9
Generated by
1.8.12