Blender V4.3
blender::draw::AttributeConverter< ColorGeometry4b > Struct Reference

#include <attribute_convert.hh>

Public Types

using VBOType = ushort4
 

Static Public Member Functions

static VBOType convert (const ColorGeometry4b &value)
 

Static Public Attributes

static constexpr GPUVertCompType gpu_component_type = GPU_COMP_U16
 
static constexpr int gpu_component_len = 4
 
static constexpr GPUVertFetchMode gpu_fetch_mode = GPU_FETCH_INT_TO_FLOAT_UNIT
 

Detailed Description

Definition at line 109 of file attribute_convert.hh.

Member Typedef Documentation

◆ VBOType

Definition at line 111 of file attribute_convert.hh.

Member Function Documentation

◆ convert()

static VBOType blender::draw::AttributeConverter< ColorGeometry4b >::convert ( const ColorGeometry4b & value)
inlinestatic

Definition at line 115 of file attribute_convert.hh.

References BLI_color_from_srgb_table, and unit_float_to_ushort_clamp.

Member Data Documentation

◆ gpu_component_len

int blender::draw::AttributeConverter< ColorGeometry4b >::gpu_component_len = 4
staticconstexpr

Definition at line 113 of file attribute_convert.hh.

◆ gpu_component_type

Definition at line 112 of file attribute_convert.hh.

◆ gpu_fetch_mode


The documentation for this struct was generated from the following file: