| 40 | } |
| 41 | |
| 42 | static bool on_create_texture(device *device, resource_desc &desc, subresource_data *initial_data, resource_usage) |
| 43 | { |
| 44 | if (!filter_texture(device, desc, nullptr)) |
| 45 | return false; |
| 46 | |
| 47 | return initial_data != nullptr && load_texture_image(desc, *initial_data, s_data_to_delete); |
| 48 | } |
| 49 | static void on_after_create_texture(device *, const resource_desc &, const subresource_data *, resource_usage, resource) |
| 50 | { |
| 51 | // Free the memory allocated via the 'load_texture_image' call above during the preceding 'create_resource' event that called in the 'on_create_texture' callback |
nothing calls this directly
no test coverage detected