Nameless Engine
Loading...
Searching...
No Matches
DirectXFrameResource.h
1#pragma once
2
3// Standard.
4#include <array>
5#include <memory>
6#include <atomic>
7#include <mutex>
8#include <variant>
9
10// Custom.
11#include "misc/Error.h"
12#include "math/GLMath.hpp"
13#include "render/general/resource/frame/FrameResource.h"
14
15// External.
16#include "directx/d3dx12.h"
17
18// OS.
19#include <wrl.h>
20
21struct ID3D12CommandAllocator;
22
23namespace ne {
24 class Renderer;
25#if defined(WIN32)
26 using namespace Microsoft::WRL;
27#endif
28
31 virtual ~DirectXFrameResource() override = default;
32
34 ComPtr<ID3D12CommandAllocator> pCommandAllocator;
35
37 unsigned long long iFence = 0;
38
39 private:
47 [[nodiscard]] virtual std::optional<Error> initialize(Renderer* pRenderer) override;
48 };
49} // namespace ne
Definition: Renderer.h:43
Definition: DirectXFrameResource.h:30
virtual std::optional< Error > initialize(Renderer *pRenderer) override
Definition: DirectXFrameResource.cpp:8
ComPtr< ID3D12CommandAllocator > pCommandAllocator
Definition: DirectXFrameResource.h:34
unsigned long long iFence
Definition: DirectXFrameResource.h:37
Definition: FrameResource.h:15