public int align(int pos, int basicAlignment) {
        return pos==0?pos:FastMath.toMultipleOf(pos, basicAlignment);
    }
Align a position to the given basicAlignment

@param pos
           the position to align
@param basicAlignment
           the basic alignment
@return the aligned position
jme3-core/src/main/java/com/jme3/shader/bufferobject/layout/BufferLayout.java