fix 2d support in directx-hlsl, update example