Blender V5.3
BKE_bake_attribute_field.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "FN_field.hh"
12
14
21 public:
22 std::string attribute_name;
23 using DummyT = float;
24
29
31 const IndexMask &mask,
32 ResourceScope & /*scope*/) const override
33 {
34 return VArray<DummyT>::from_single({}, mask.min_array_size());
35 }
36};
37
38} // namespace blender::bke::bake
static VArray from_single(T value, const int64_t size)
GVArray get_varray_for_context(const fn::FieldContext &, const IndexMask &mask, ResourceScope &) const override
FieldInput(const CPPType &type, std::string debug_name="")
Definition field.cc:19
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float