Blender V5.0
gpu_vertex_format_normals.cc File Reference
#include "BLI_math_vector_types.hh"
#include "BLI_span.hh"
#include "BLI_task.hh"
#include "GPU_attribute_convert.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::gpu

Functions

template<typename GPUType>
static void blender::gpu::convert_normals_impl (const Span< float3 > src, MutableSpan< GPUType > dst)
template<>
void blender::gpu::convert_normals (const Span< float3 > src, MutableSpan< PackedNormal > dst)
template<>
void blender::gpu::convert_normals (const Span< float3 > src, MutableSpan< short4 > dst)