Command to acquire swap chain texture
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include <D3D12Common.h>
|
||||
|
||||
namespace Juliet
|
||||
{
|
||||
@@ -177,4 +176,5 @@ namespace Juliet
|
||||
uint32 MipLevelCount;
|
||||
};
|
||||
|
||||
struct Texture;
|
||||
} // namespace Juliet
|
||||
|
||||
Reference in New Issue
Block a user