Added first pass on swap chain. Still needs Render Target View and various stuff.
+ Reformat all files
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
// Graphics Interface
|
||||
namespace Juliet
|
||||
{
|
||||
struct Window;
|
||||
struct GraphicsDevice;
|
||||
|
||||
// Parameters of an indirect draw command
|
||||
@@ -45,11 +46,16 @@ namespace Juliet
|
||||
};
|
||||
|
||||
// Opaque types
|
||||
struct CommandList {};
|
||||
struct CommandList;
|
||||
|
||||
extern JULIET_API GraphicsDevice* CreateGraphicsDevice(GraphicsConfig config);
|
||||
extern JULIET_API void DestroyGraphicsDevice(NonNullPtr<GraphicsDevice> device);
|
||||
|
||||
// Attach To Window
|
||||
extern JULIET_API bool AttachToWindow(NonNullPtr<GraphicsDevice> device, NonNullPtr<Window> window);
|
||||
extern JULIET_API void DetachFromWindow(NonNullPtr<GraphicsDevice> device, NonNullPtr<Window> window);
|
||||
|
||||
// Command List
|
||||
extern JULIET_API CommandList* AcquireCommandList(NonNullPtr<GraphicsDevice> device, QueueType queueType = QueueType::Graphics);
|
||||
extern JULIET_API void SubmitCommandLists(NonNullPtr<GraphicsDevice> device);
|
||||
extern JULIET_API void SubmitCommandLists(NonNullPtr<GraphicsDevice> device);
|
||||
} // namespace Juliet
|
||||
|
||||
Reference in New Issue
Block a user