summaryrefslogtreecommitdiff
path: root/sc/sh_helpers.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-02-09 18:50:15 +1100
committerquou <quou@disroot.org>2025-02-09 18:51:30 +1100
commit1c86bb51da99df1950124d812eabcfe15af4f771 (patch)
treee3254c9c3965b2b0d651dcc8568da3bb3148f6d8 /sc/sh_helpers.h
parent8c644dd120c63244f4b576b45cd4ae96842736f8 (diff)
support for shader int variable type
Diffstat (limited to 'sc/sh_helpers.h')
-rw-r--r--sc/sh_helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/sh_helpers.h b/sc/sh_helpers.h
index 87c6e6a..fa503dc 100644
--- a/sc/sh_helpers.h
+++ b/sc/sh_helpers.h
@@ -1,6 +1,7 @@
int svariable_type_size(SVariable_Type type) {
switch (type) {
case svariable_type_float: return 4;
+ case svariable_type_int: return 4;
case svariable_type_vec2: return 8;
case svariable_type_vec3: return 12;
case svariable_type_vec4: return 16;