16 constexpr static uint8_t g_NumFrames = 3;
18 Microsoft::WRL::ComPtr<IDXGISwapChain4> swapchain;
19 const std::shared_ptr<DeviceD3D12> owningDevice;
20 Microsoft::WRL::ComPtr<ID3D12Resource> backbuffers[g_NumFrames];
21 std::vector<TextureD3D12> backbufferTextures;
22 D3D12DynamicDescriptorHeap<0>::index_t rtvIndices[g_NumFrames];
24 bool tearingSupported =
false;
25 bool initialized =
false;
27 SwapchainD3D12(
decltype(owningDevice), std::shared_ptr<SurfaceD3D12>,
int width,
int height, std::shared_ptr<CommandQueueD3D12> presentQueue);
28 void UpdateRenderTargetViews(Microsoft::WRL::ComPtr<ID3D12Device2> device,
34 void Resize(uint32_t width, uint32_t height)
final;
35 void GetNextImage(uint32_t* index)
final;
36 ITexture* ImageAtIndex(uint32_t index)
final;
38 void SetVsyncMode(
bool mode)
final;
Definition Texture.hpp:168