Graphics: Add PredefinedSkeletalData

This commit is contained in:
SirLynix
2022-08-23 18:13:18 +02:00
committed by Jérôme Leclercq
parent 987c23c3ef
commit 7ada266917
6 changed files with 54 additions and 16 deletions

View File

@@ -1,7 +1,9 @@
[nzsl_version("1.0")]
module Engine.SkeletalData;
const MaxJointCount: u32 = u32(200); //< FIXME: Fix integral value types
// The minimum guaranteed UBO size by OpenGL and Vulkan is 16384, which is enough to store 256 4x4 matrices
// We could store a bit more using mat3x4 matrices (341) but 256 bones is already a quite high limit for now
const MaxJointCount: u32 = u32(256); //< FIXME: Fix integral value types
[export]
[layout(std140)]