Skip to content

Feat: Uniform float and matrix arrays - #82

Merged
Meziu merged 3 commits into
rust3ds:mainfrom
Bash-09:feat-uniform-arrays
Mar 2, 2026
Merged

Feat: Uniform float and matrix arrays#82
Meziu merged 3 commits into
rust3ds:mainfrom
Bash-09:feat-uniform-arrays

Conversation

@Bash-09

@Bash-09 Bash-09 commented Dec 30, 2025

Copy link
Copy Markdown
Contributor

This PR adds FloatArray, Float4Array variants to the Uniform enum (and also GlamFloatArray and GlamMatrixArray variants if the glam feature is enabled) for conveniently loading arrays of floats or matrices as uniforms.

This is particularly useful for e.g. skeletal animation which might involve loading several matrices for the bone transformations as uniforms.

It might be a nice idea to add an example that uses this and also demonstrates indexing registers in picasso. I may add this in the future if I get around to it.

I think this should resolve #58

@Bash-09
Bash-09 force-pushed the feat-uniform-arrays branch from d1db2c2 to 2da7ea4 Compare February 14, 2026 04:24
@Bash-09
Bash-09 force-pushed the feat-uniform-arrays branch from 2da7ea4 to 129743d Compare February 14, 2026 04:38
@Meziu
Meziu merged commit 499e697 into rust3ds:main Mar 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Converting two [f32;4] to a uniform is annoying, have a function

2 participants