Blender V5.0
CurvesInfos Struct Reference

#include <draw_shader_shared.hh>

Inherited by blender::draw::UniformBuffer< CurvesInfos >.

Public Attributes

uint4 is_point_attribute [DRW_ATTRIBUTE_PER_CURVES_MAX]
uint vertex_per_segment
uint half_cylinder_face_count
uint _pad0
uint _pad1

Detailed Description

Definition at line 251 of file draw_shader_shared.hh.

Member Data Documentation

◆ _pad0

uint CurvesInfos::_pad0

Definition at line 262 of file draw_shader_shared.hh.

◆ _pad1

uint CurvesInfos::_pad1

Definition at line 263 of file draw_shader_shared.hh.

◆ half_cylinder_face_count

uint CurvesInfos::half_cylinder_face_count

◆ is_point_attribute

uint4 CurvesInfos::is_point_attribute[DRW_ATTRIBUTE_PER_CURVES_MAX]

Per attribute scope, follows loading order.

Note
uint as bool in GLSL is 4 bytes.
GLSL pad arrays of scalar to 16 bytes (std140).

Definition at line 256 of file draw_shader_shared.hh.

Referenced by blender::draw::curves_bind_resources_implementation(), and blender::draw::set_attribute_type().

◆ vertex_per_segment

uint CurvesInfos::vertex_per_segment

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