diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-26 17:20:13 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-26 17:20:13 +1000 |
commit | aa1eeebb1c05edc22335cbb48af5d42be20750c0 (patch) | |
tree | cc0ef4dc620cb8621fd1a3762b7205b7a16401dc /src/ral | |
parent | f083cacb259054ce996b70f8b9dc0d9eb0bdbfb8 (diff) |
moving some maths functions to implementation file
Diffstat (limited to 'src/ral')
-rw-r--r-- | src/ral/backends/opengl/backend_opengl.c | 3 | ||||
-rw-r--r-- | src/ral/ral_impl.h | 3 | ||||
-rw-r--r-- | src/ral/ral_types.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/ral/backends/opengl/backend_opengl.c b/src/ral/backends/opengl/backend_opengl.c index 9122e15..ad9969f 100644 --- a/src/ral/backends/opengl/backend_opengl.c +++ b/src/ral/backends/opengl/backend_opengl.c @@ -57,7 +57,8 @@ bool GPU_Backend_Init(const char* window_name, struct GLFWwindow* window, } // All of these are no-ops in OpenGL -void GPU_Backend_Shutdown() { /* TODO */ } +void GPU_Backend_Shutdown() { /* TODO */ +} bool GPU_Device_Create(GPU_Device* out_device) { return true; } void GPU_Device_Destroy(GPU_Device* device) {} bool GPU_Swapchain_Create(GPU_Swapchain* out_swapchain) { return true; } diff --git a/src/ral/ral_impl.h b/src/ral/ral_impl.h index 6e0ccc0..20b9757 100644 --- a/src/ral/ral_impl.h +++ b/src/ral/ral_impl.h @@ -79,7 +79,8 @@ PUB void GPU_EncodeSetVertexBuffer(GPU_CmdEncoder* encoder, BufferHandle buf); PUB void GPU_EncodeSetIndexBuffer(GPU_CmdEncoder* encoder, BufferHandle buf); PUB void GPU_EncodeDraw(GPU_CmdEncoder* encoder, u64 count); PUB void GPU_EncodeDrawIndexed(GPU_CmdEncoder* encoder, u64 index_count); -PUB void GPU_EncodeDrawInstanced(GPU_CmdEncoder* encoder, u64 index_count, u64 instance_count); // TODO: implement instanced rendering +PUB void GPU_EncodeDrawInstanced(GPU_CmdEncoder* encoder, u64 index_count, + u64 instance_count); // TODO: implement instanced rendering // --- Frame cycle PUB bool GPU_Backend_BeginFrame(); diff --git a/src/ral/ral_types.h b/src/ral/ral_types.h index 56fa141..fa93cd5 100644 --- a/src/ral/ral_types.h +++ b/src/ral/ral_types.h @@ -55,7 +55,7 @@ typedef enum GPU_TextureType { } GPU_TextureType; static const char* texture_type_names[] = { - "RAL Texture 2D", "RAL Texture 3D", "RAL Texture 2D Array", + "RAL Texture 2D", "RAL Texture 3D", "RAL Texture 2D Array", "RAL Texture Cubemap", "RAL Texture Count", }; |