if (test_image == nullptr)D3DXCreateTextureFromFileInMemoryEx(device
,&you_array_bytes, sizeof(you_array_bytes),
width_texture, heigh_texture, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &test_image );