This patch adds a new Image Coordinates node for the compositor. The Texture Coordinates and Pixel Coordinates outputs were removed from the Image Info node and were added to the new node instead. Additionally, a new Normalized Coordinates output was added. The Pixel Coordinates output now no longer includes half pixel offsets. Pull Request: https://projects.blender.org/blender/blender/pulls/138935
40 lines
950 B
C++
40 lines
950 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "COM_static_cache_manager.hh"
|
|
|
|
namespace blender::compositor {
|
|
|
|
void StaticCacheManager::reset()
|
|
{
|
|
if (should_skip_next_reset_) {
|
|
should_skip_next_reset_ = false;
|
|
return;
|
|
}
|
|
|
|
symmetric_blur_weights.reset();
|
|
symmetric_separable_blur_weights.reset();
|
|
morphological_distance_feather_weights.reset();
|
|
cached_textures.reset();
|
|
cached_masks.reset();
|
|
smaa_precomputed_textures.reset();
|
|
ocio_color_space_conversion_shaders.reset();
|
|
distortion_grids.reset();
|
|
keying_screens.reset();
|
|
cached_shaders.reset();
|
|
bokeh_kernels.reset();
|
|
cached_images.reset();
|
|
deriche_gaussian_coefficients.reset();
|
|
van_vliet_gaussian_coefficients.reset();
|
|
fog_glow_kernels.reset();
|
|
image_coordinates.reset();
|
|
}
|
|
|
|
void StaticCacheManager::skip_next_reset()
|
|
{
|
|
should_skip_next_reset_ = true;
|
|
}
|
|
|
|
} // namespace blender::compositor
|