Split out the Scalar
from Premultiply
to allow PreAlpha<&T>
and more
#319
Labels
definitely breaking
Issues that are known before-hand to be a breaking change
Milestone
Description
Create a separate trait (
Premultiplied
? Something more generic?) with only theScalar
type that bothPremultiply
andPreAlpha
can depend on. This is breaking because it (re)moves an associated type and changes the requirements.Motivation
Separating the operation of premultiplying from the requirements for being in
PreAlpha
allows us to constructPreAlpha<&T>
,PreAlpha<&mut T>
,PreAlpha<&mut [T]>
and so on, without having to allow them to be alpha unmasked. This is useful for struct-of-arrays algorithms, among other things.The text was updated successfully, but these errors were encountered: