summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-17 15:06:22 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-17 15:06:22 +1100
commitbbe1950e893bed6a9e39954b75dc6aa23f84d59c (patch)
treedc44ad4878b1d73ff763000e5e0f0b2bbf251c6b
parent8b75f00918958ca174fb1e77c60d4dfb18cbc923 (diff)
changing names
-rw-r--r--TODO.md3
-rw-r--r--include/celeritas.h25
2 files changed, 15 insertions, 13 deletions
diff --git a/TODO.md b/TODO.md
index a374d06..6e255fa 100644
--- a/TODO.md
+++ b/TODO.md
@@ -7,4 +7,5 @@
- [ ] Consolidate down to a handful of examples
- [x] Get rid of doxygen
- [ ] Move to Vulkan-first rendering
-- [ ] Build in pipeline (needs vulkan) \ No newline at end of file
+- [ ] Build in pipeline (needs vulkan)
+- [ ] Incorporate vma \ No newline at end of file
diff --git a/include/celeritas.h b/include/celeritas.h
index b7a6683..185ab09 100644
--- a/include/celeritas.h
+++ b/include/celeritas.h
@@ -195,35 +195,36 @@ inlined vec3 Vec3_div(vec3 u, f32 s);
// --- RAL
-DEFINE_HANDLE(BufHandle);
-DEFINE_HANDLE(TexHandle);
-DEFINE_HANDLE(PipelineHandle);
+DEFINE_HANDLE(buf_handle);
+DEFINE_HANDLE(tex_handle);
+DEFINE_HANDLE(pipeline_handle);
#define MAX_VERTEX_ATTRIBUTES 16
#define MAX_SHADER_BINDINGS 16
// Backend-specific structs
-typedef struct GPU_Swapchain GPU_Swapchain;
-typedef struct GPU_Pipeline GPU_Pipeline;
-typedef struct GPU_CmdEncoder GPU_CmdEncoder;
+typedef struct gpu_swapchain GPU_Swapchain;
+typedef struct gpu_compute_pipeline gpu_compute_pipeline;
+typedef struct gpu_gfx_pipeline gpu_gfx_pipeline;
+typedef struct gpu_encoder gpu_encoder; // Command encoder
// NOTE: Can we just use Storage buffer for everything?
-// typedef enum GPU_BufferType {} GPU_BufferType;
+typedef enum gpu_buf_type {} gpu_buf_type;
-typedef enum GPU_TextureType {
+typedef enum gpu_tex_type {
TEXTURE_TYPE_2D,
TEXTURE_TYPE_3D,
TEXTURE_TYPE_2D_ARRAY,
TEXTURE_TYPE_CUBE_MAP,
TEXTURE_TYPE_COUNT
-} GPU_TextureType;
+} gpu_tex_type;
/** @brief Texture Description - used by texture creation functions */
-typedef struct TextureDesc {
- GPU_TextureType tex_type;
+typedef struct texture_desc {
+ gpu_tex_type tex_type;
// GPU_TextureFormat format;
int width, height, num_channels;
-} TextureDesc;
+} texture_desc;
/// @strip_prefix(ATTR_)
typedef enum VertexAttribType {