Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/NOD_texture_evaluate.hh
- This file was added.
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | |||||
| #pragma once | |||||
| #include "BLI_array.hh" | |||||
| #include "BLI_color.hh" | |||||
| #include "BLI_index_mask.hh" | |||||
| #include "BLI_math_vec_types.hh" | |||||
| #include "BLI_span.hh" | |||||
| #include "BKE_attribute.h" | |||||
| #include "FN_field.hh" | |||||
| struct ID; | |||||
| struct Mesh; | |||||
| struct Tex; | |||||
| namespace blender::nodes { | |||||
| /* Single position texture evaluation. | |||||
| * | |||||
| * This has poor performance and exists for legacy code only. */ | |||||
| bool texture_evaluate_at_position(const Tex &texture, | |||||
| const float3 &position, | |||||
| int thread, | |||||
| float *r_value); | |||||
| bool texture_evaluate_at_position(const Tex &texture, | |||||
| const float3 &position, | |||||
| int thread, | |||||
| ColorGeometry4f *r_value); | |||||
| void texture_evaluate_at_positions(const Tex &texture, | |||||
| blender::Span<blender::float3> positions, | |||||
| blender::IndexMask mask, | |||||
| blender::MutableSpan<float> r_values); | |||||
| void texture_evaluate_at_positions(const Tex &texture, | |||||
| blender::Span<blender::float3> positions, | |||||
| blender::IndexMask mask, | |||||
| blender::MutableSpan<blender::ColorGeometry4f> r_values); | |||||
| } // namespace blender::nodes | |||||