[PATCH 2/4] d3d11: Validate resource access flags for buffers and 2D textures.