Skip to main content

Shader Types Guide

From-v9.3

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 ShaderInputs updates and uniform-buffer packing behavior
  • canonical array descriptors for uniform buffers

Where Shader Types Show Up

The nested update is merged by schema before being packed into the backing uniform buffer.