updated dx11 resource wrap and resource states