Lines Matching refs:sub_resource
158 struct wined3d_resource *sub_resource = texture->sub_resources[i];
160 if (sub_resource)
161 texture->texture_ops->texture_sub_resource_cleanup(sub_resource);
650 struct wined3d_resource *sub_resource;
654 if (!(sub_resource = wined3d_texture_get_sub_resource(texture, layer * texture->level_count)))
661 texture->texture_ops->texture_sub_resource_add_dirty_region(sub_resource, dirty_region);
787 static void texture2d_sub_resource_add_dirty_region(struct wined3d_resource *sub_resource,
790 surface_add_dirty_rect(surface_from_resource(sub_resource), dirty_region);
793 static void texture2d_sub_resource_cleanup(struct wined3d_resource *sub_resource)
795 struct wined3d_surface *surface = surface_from_resource(sub_resource);
817 struct wined3d_resource *sub_resource = texture->sub_resources[i];
818 struct wined3d_surface *surface = surface_from_resource(sub_resource);
820 sub_resource->resource_ops->resource_unload(sub_resource);
1431 static void texture3d_sub_resource_add_dirty_region(struct wined3d_resource *sub_resource,
1434 volume_add_dirty_box(volume_from_resource(sub_resource), dirty_region);
1437 static void texture3d_sub_resource_cleanup(struct wined3d_resource *sub_resource)
1439 struct wined3d_volume *volume = volume_from_resource(sub_resource);
1456 struct wined3d_resource *sub_resource = texture->sub_resources[i];
1457 sub_resource->resource_ops->resource_unload(sub_resource);