From c3aac9026951e2a6e35e76b9c7d36e114a281453 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 5 May 2026 00:43:54 +0200 Subject: Remove old api and move api-test content to src and include dirs --- include/dx12-command-buffer.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/dx12-command-buffer.hpp (limited to 'include/dx12-command-buffer.hpp') diff --git a/include/dx12-command-buffer.hpp b/include/dx12-command-buffer.hpp new file mode 100644 index 0000000..e9de39a --- /dev/null +++ b/include/dx12-command-buffer.hpp @@ -0,0 +1,28 @@ +#include + +#include "handle.hpp" +#include "dx12-device-types.hpp" + +namespace dx12 { + struct command_buffer { + void start() const; + void stop() const; + + // void barrier(handle texture_handle, VkPipelineStageFlags2 stage, VkAccessFlags2 access, VkImageLayout layout) const; + + void copy(handle src_buffer, handle dst_texture, uint64_t offset = 0) const; + + ID3D12CommandAllocator* command_allocator; + ID3D12GraphicsCommandList* dx12_command_buffer; + dx12::QueueType queue_type; + }; + + struct graphics_command_buffer: public command_buffer { + // void dispatch(const dispatch_params& params) const; + + // void begin_renderpass(const renderpass_params& params) const; + // void draw(const draw_params& params) const; + // void draw_indexed(const draw_indexed_params& params) const; + // void end_renderpass() const; + }; +} -- cgit v1.3