add validation for buffers
update 2d support for dx11