diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-05-18 23:53:11 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-05-18 23:53:11 +1000 |
commit | d79a8aa200bd64b14b85d2ec0c207601ba5c7922 (patch) | |
tree | 742c45019abe645355ec27a74924e1bec7963c7a /src/renderer/ral.h | |
parent | c69fab91c3cd8976ad660939765ca9a5e32a239a (diff) |
working on image creation
Diffstat (limited to 'src/renderer/ral.h')
-rw-r--r-- | src/renderer/ral.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/renderer/ral.h b/src/renderer/ral.h index da9eb93..48be83a 100644 --- a/src/renderer/ral.h +++ b/src/renderer/ral.h @@ -30,6 +30,7 @@ typedef struct gpu_renderpass gpu_renderpass; typedef struct gpu_cmd_encoder gpu_cmd_encoder; // Recording typedef struct gpu_cmd_buffer gpu_cmd_buffer; // Ready for submission typedef struct gpu_buffer gpu_buffer; +typedef struct gpu_texture gpu_texture; #define MAX_SHADER_DATA_LAYOUTS 5 #define MAX_BUFFERS 256 @@ -174,3 +175,9 @@ struct resource_pools { // Must be implemented by backends void resource_pools_init(arena* a, struct resource_pools* res_pools); + +void copy_buffer_to_buffer_oneshot(buffer_handle src, u64 src_offset, buffer_handle dst, u64 dst_offset, + u64 copy_size); +void copy_buffer_to_image_oneshot(buffer_handle src, texture_handle dst); + +// --- Helpers |