Added generic parameter for CommandBuffer

Closes https://github.com/gfx-rs/gfx-rs/issues/321
Merge pull request #326 from bvssvni/master

Added generic parameter for CommandBuffer