|
Blender V4.3
|
#include "BLI_color.hh"#include "BLI_generic_span.hh"#include "BLI_math_quaternion_types.hh"#include "BLI_math_vector_types.hh"#include "BLI_string_ref.hh"#include "DNA_customdata_types.h"#include "GPU_vertex_format.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
| namespace | blender::draw |
Functions | |
| GPUVertFormat | blender::draw::init_format_for_attribute (const eCustomDataType data_type, const StringRefNull vbo_name) |
| void | blender::draw::vertbuf_data_extract_direct (const GSpan attribute, gpu::VertBuf &vbo) |
Variables | |
| constexpr int | COMPONENT_LEN_SCALAR = 3 |
|
constexpr |
Component length of 3 is used for scalars because implicit conversion is done by OpenGL from a scalar s will produce vec4(s, 0, 0, 1). However, following the Blender convention, it should be vec4(s, s, s, 1).
Definition at line 28 of file attribute_convert.hh.