summaryrefslogtreecommitdiff
path: root/src/render/shader_layouts.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 12:48:05 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 12:48:05 +1000
commitdfb6adbcbcc7d50b770b6d5ea82efdd8f8c32e25 (patch)
treea470b91a90716d7ea46fde53ed395449c24583a2 /src/render/shader_layouts.h
parent54354e32c6498cc7f8839ab4deb1208d37216cc5 (diff)
delete documentation workflow
Diffstat (limited to 'src/render/shader_layouts.h')
-rw-r--r--src/render/shader_layouts.h70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/render/shader_layouts.h b/src/render/shader_layouts.h
deleted file mode 100644
index ef94c89..0000000
--- a/src/render/shader_layouts.h
+++ /dev/null
@@ -1,70 +0,0 @@
-#pragma once
-#include "maths_types.h"
-#include "ral_types.h"
-
-/** @brief shader layout for camera matrices */
-typedef struct Binding_Camera {
- Mat4 view;
- Mat4 projection;
- Vec4 viewPos;
-} Binding_Camera;
-
-typedef struct Binding_Model {
- Mat4 model;
-} Binding_Model;
-
-/** @brief data that is handy to have in any shader */
-typedef struct Binding_Globals {
-} Binding_Globals;
-
-typedef struct pbr_point_light {
- Vec3 pos;
- f32 pad;
- Vec3 color;
- f32 pad2;
-} pbr_point_light;
-
-typedef struct Binding_Lights {
- pbr_point_light pointLights[4];
-} Binding_Lights;
-
-static ShaderDataLayout Binding_Camera_GetLayout(void* data) {
- Binding_Camera* d = data;
- bool has_data = data != NULL;
-
- ShaderBinding b1 = { .label = "Camera",
- .kind = BINDING_BYTES,
- .data.bytes = { .size = sizeof(Binding_Camera) } };
- if (has_data) {
- b1.data.bytes.data = d;
- }
- return (ShaderDataLayout){ .bindings = { b1 }, .binding_count = 1 };
-}
-
-static ShaderDataLayout Binding_Model_GetLayout(void* data) {
- Binding_Model* d = data;
- bool has_data = data != NULL;
-
- ShaderBinding b1 = { .label = "Model",
- .kind = BINDING_BYTES,
- .vis = VISIBILITY_VERTEX,
- .data.bytes = { .size = sizeof(Binding_Model) } };
- if (has_data) {
- b1.data.bytes.data = d;
- }
- return (ShaderDataLayout){ .bindings = { b1 }, .binding_count = 1 };
-}
-
-static ShaderDataLayout Binding_Lights_GetLayout(void* data) {
- Binding_Lights* d = data;
- bool has_data = data != NULL;
-
- ShaderBinding b1 = { .label = "Lights",
- .kind = BINDING_BYTES,
- .vis = VISIBILITY_FRAGMENT,
- .data.bytes = { .size = sizeof(Binding_Lights) } };
- if (has_data) {
- b1.data.bytes.data = d;
- }
- return (ShaderDataLayout){ .bindings = { b1 }, .binding_count = 1 };
-}