primitives: weightUnidir primitive to support pixel or uint16 inputs