Blender
V5.3
source
blender
blenkernel
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
13
namespace
blender::bke::bake
{
14
20
class
DeferredTypeAttributeFieldInput
:
public
fn::FieldInput
{
21
public
:
22
std::string
attribute_name
;
23
using
DummyT
=
float
;
24
25
DeferredTypeAttributeFieldInput
(std::string
attribute_name
)
26
:
fn
::
FieldInput
(
CPPType
::get<
DummyT
>()),
attribute_name
(std::move(
attribute_name
))
27
{
28
}
29
30
GVArray
get_varray_for_context
(
const
fn::FieldContext
&
/*context*/
,
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
FN_field.hh
blender::CPPType
Definition
BLI_cpp_type.hh:106
blender::GVArray
Definition
BLI_generic_virtual_array.hh:158
blender::ResourceScope
Definition
BLI_resource_scope.hh:37
blender::VArray::from_single
static VArray from_single(T value, const int64_t size)
Definition
BLI_virtual_array.hh:759
blender::bke::bake::DeferredTypeAttributeFieldInput::attribute_name
std::string attribute_name
Definition
BKE_bake_attribute_field.hh:22
blender::bke::bake::DeferredTypeAttributeFieldInput::DeferredTypeAttributeFieldInput
DeferredTypeAttributeFieldInput(std::string attribute_name)
Definition
BKE_bake_attribute_field.hh:25
blender::bke::bake::DeferredTypeAttributeFieldInput::DummyT
float DummyT
Definition
BKE_bake_attribute_field.hh:23
blender::bke::bake::DeferredTypeAttributeFieldInput::get_varray_for_context
GVArray get_varray_for_context(const fn::FieldContext &, const IndexMask &mask, ResourceScope &) const override
Definition
BKE_bake_attribute_field.hh:30
blender::fn::FieldContext
Definition
FN_field.hh:291
blender::fn::FieldInput
Definition
FN_field.hh:339
blender::fn::FieldInput::FieldInput
FieldInput(const CPPType &type, std::string debug_name="")
Definition
field.cc:19
blender::index_mask::IndexMask
Definition
BLI_index_mask.hh:218
blender::bke::bake
Definition
BKE_bake_attribute_field.hh:13
blender::ed::sculpt_paint::mask
Definition
paint_mask.cc:50
blender::fn
Definition
BKE_attribute.hh:30
float
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
Definition
shadow_state_template.h:80
Generated on
for Blender by
doxygen
1.18.0