Command to acquire swap chain texture

This commit is contained in:
2025-02-16 11:54:04 -05:00
parent 3e7caa2c7c
commit 7e8aaaa891
12 changed files with 145 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
#include <core/Common/NonNullPtr.h>
#include <Graphics/GraphicsConfig.h>
#include <Graphics/Texture.h>
#include <Juliet.h>
// Graphics Interface
@@ -74,6 +75,10 @@ namespace Juliet
extern JULIET_API bool AttachToWindow(NonNullPtr<GraphicsDevice> device, NonNullPtr<Window> window);
extern JULIET_API void DetachFromWindow(NonNullPtr<GraphicsDevice> device, NonNullPtr<Window> window);
// SwapChain
extern JULIET_API bool AcquireSwapChainTexture(NonNullPtr<CommandList> commandList, NonNullPtr<Window> window,
Texture** swapChainTexture);
// Command List
extern JULIET_API CommandList* AcquireCommandList(NonNullPtr<GraphicsDevice> device, QueueType queueType = QueueType::Graphics);
extern JULIET_API void SubmitCommandLists(NonNullPtr<GraphicsDevice> device);

View File

@@ -1,5 +1,4 @@
#pragma once
#include <D3D12Common.h>
namespace Juliet
{
@@ -177,4 +176,5 @@ namespace Juliet
uint32 MipLevelCount;
};
struct Texture;
} // namespace Juliet