MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ FieldTarget

enum class MayaFlux::Kinesis::FieldTarget : uint16_t
strong

What a Tendency drives when applied to a vertex record.

A bitmask. One field may drive several attributes from a single bind, which is a convenience on the CPU path and a requirement on the GPU one: a DualField emits exactly one GLSL function, so binding the same field twice through separate calls would be a redefinition. Binding once against a mask emits the function once and calls it per target bit.

The listed bits correspond to the vertex attributes in the offset table shared by VertexLayout::for_points, for_lines, for_meshes and for_raw. That list is not a closed set: targets outside it are expected, and an operator that cannot drive one either ignores it or rejects the bind with a diagnostic naming the bit. Validity is a property of the operator and the layout it addresses, not of the enum.

Enumerator
NONE 
POSITION 
COLOR 
NORMAL 
TANGENT 
SCALAR 
UV 

Definition at line 26 of file FieldBinding.hpp.

26 : uint16_t {
27 NONE = 0U,
28 POSITION = 1U << 0U,
29 COLOR = 1U << 1U,
30 NORMAL = 1U << 2U,
31 TANGENT = 1U << 3U,
32 SCALAR = 1U << 4U,
33 UV = 1U << 5U,
34};