Blender V5.3
blender::nodes::node_fn_bit_math_cc Namespace Reference

Classes

class  SocketSearchOp

Enumerations

enum  BitMathOperation : int16_t {
  And = 0 , Or = 1 , Xor = 2 , Not = 3 ,
  Shift = 4 , Rotate = 5
}

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_layout (ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_gather_link_searches (GatherLinkSearchOpParams &params)
static void node_label (const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
static const mf::MultiFunction * get_multi_function (const bNode &bnode)
static void node_build_multi_function (NodeMultiFunctionBuilder &builder)
static const char * gpu_shader_get_name (const BitMathOperation operation)
static int node_gpu_material (GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_rna (StructRNA *srna)
static void node_register ()

Variables

const std::array< EnumPropertyItem, 7 > bit_math_operation_items
static constexpr int32_t max_shift = sizeof(int32_t) * CHAR_BIT - 1
static constexpr int32_t min_shift = -max_shift

Enumeration Type Documentation

◆ BitMathOperation

Enumerator
And 
Or 
Xor 
Not 
Shift 
Rotate 

Definition at line 27 of file node_fn_bit_math.cc.

Function Documentation

◆ get_multi_function()

const mf::MultiFunction * blender::nodes::node_fn_bit_math_cc::get_multi_function ( const bNode & bnode)
static

◆ gpu_shader_get_name()

const char * blender::nodes::node_fn_bit_math_cc::gpu_shader_get_name ( const BitMathOperation operation)
static

◆ node_build_multi_function()

void blender::nodes::node_fn_bit_math_cc::node_build_multi_function ( NodeMultiFunctionBuilder & builder)
static

◆ node_declare()

void blender::nodes::node_fn_bit_math_cc::node_declare ( NodeDeclarationBuilder & b)
static

Definition at line 75 of file node_fn_bit_math.cc.

References b, ELEM, max_shift, min, min_shift, node, node_declare(), Not, Rotate, and Shift.

Referenced by node_declare(), and node_register().

◆ node_gather_link_searches()

◆ node_gpu_material()

◆ node_label()

void blender::nodes::node_fn_bit_math_cc::node_label ( const bNodeTree * ,
const bNode * node,
char * label,
int label_maxncpy )
static

◆ node_layout()

void blender::nodes::node_fn_bit_math_cc::node_layout ( ui::Layout & layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 91 of file node_fn_bit_math.cc.

References node_layout(), blender::ui::Layout::prop(), and UI_ITEM_NONE.

Referenced by node_layout(), and node_register().

◆ node_register()

◆ node_rna()

Variable Documentation

◆ bit_math_operation_items

const std::array<EnumPropertyItem, 7> blender::nodes::node_fn_bit_math_cc::bit_math_operation_items

Definition at line 36 of file node_fn_bit_math.cc.

Referenced by node_gather_link_searches(), node_label(), and node_rna().

◆ max_shift

int32_t blender::nodes::node_fn_bit_math_cc::max_shift = sizeof(int32_t) * CHAR_BIT - 1
staticconstexpr

Definition at line 72 of file node_fn_bit_math.cc.

Referenced by node_declare().

◆ min_shift

int32_t blender::nodes::node_fn_bit_math_cc::min_shift = -max_shift
staticconstexpr

Definition at line 73 of file node_fn_bit_math.cc.

Referenced by node_declare().