setUniformTransform(type:transform:)
Registers a raw-data transformer closure for a uniform of type V.
Declaration
func setUniformTransform<V>(type: V.Type, transform: @escaping @_lifetime(0: copy 0) (inout MutableRawSpan, Entity) -> Void) where V : BitwiseCopyableParameters
- type:
The
BitwiseCopyabletype the transformer operates on. - transform:
A closure
(inout MutableRawSpan, Entity) -> Void.
Discussion
Use this overload when the transformation is most naturally expressed over the raw byte representation of the value.