surface->format = surf_tmpl->format;
surface->width = texture->width0;
surface->height = texture->height0;
- surface->usage = surf_tmpl->usage;
surface->texture = texture;
surface->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
surface->u.tex.last_layer = surf_tmpl->u.tex.last_layer;