summaryrefslogtreecommitdiff
path: root/sc/sc.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-03-10 15:31:09 +1100
committerquou <quou@disroot.org>2025-03-10 15:31:31 +1100
commitd661b9edec77a6269a5f11de53699156e1aa3d05 (patch)
tree0479784f07a313c746b4848c0f29baebaded8862 /sc/sc.cpp
parent37b929e148e5b003f68903eb9ee192d24517e683 (diff)
ivec 2, 3 & 4
Diffstat (limited to 'sc/sc.cpp')
-rw-r--r--sc/sc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/sc.cpp b/sc/sc.cpp
index 9232e10..f0ce0ff 100644
--- a/sc/sc.cpp
+++ b/sc/sc.cpp
@@ -168,14 +168,16 @@ struct Desc {
std::pair<int, int> size() const {
switch (type) {
case svariable_type_float:
- return { 4, 4 };
case svariable_type_int:
return { 4, 4 };
case svariable_type_vec2:
+ case svariable_type_ivec2:
return { 8, 8 };
case svariable_type_vec3:
+ case svariable_type_ivec3:
return { 12, 16 };
case svariable_type_vec4:
+ case svariable_type_ivec4:
return { 16, 16 };
case svariable_type_mat2:
return { 16, 16 };