Shader Types Guide
luma.gl uses portable shader type descriptors across @luma.gl/core,
@luma.gl/engine, and @luma.gl/shadertools.
The canonical descriptor reference now lives in Core Shader Types.
Use that page for:
- primitive uniform descriptors like
'f32','vec3<f32>', and'mat4x4<f32>' - composite uniform descriptors for structs and fixed-size arrays
UniformTypes<T>validation rules- nested
ShaderInputsupdates and uniform-buffer packing behavior - canonical array descriptors for uniform buffers
Where Shader Types Show Up
ShaderModule.uniformTypesdeclares shader-facing layoutsShaderInputspreserves nested app-facing valuesUniformStoreandShaderBlockLayoutflatten and pack those values for upload
Related Pages
- Core Shader Types
- Shader Modules
- ShaderModule Reference
- ShaderInputs Reference
- Vertex Formats
- Texture Formats
The nested update is merged by schema before being packed into the backing uniform buffer.