Blender V5.0
ObjectAttribute Struct Reference

#include <draw_shader_shared.hh>

Public Member Functions

ObjectAttributes
bool sync (const blender::draw::ObjectRef &ref, const GPUUniformAttr &attr)

Public Attributes

float data_x
float data_y
float data_z
float data_w
uint hash_code

Detailed Description

Definition at line 268 of file draw_shader_shared.hh.

Member Function Documentation

◆ sync()

bool ObjectAttribute::sync ( const blender::draw::ObjectRef & ref,
const GPUUniformAttr & attr )

Go through all possible source of the given object uniform attribute. Returns true if the attribute was correctly filled.

Definition at line 19 of file draw_resource.cc.

References data_x, blender::draw::ObjectRef::find_rgba_attribute(), GPUUniformAttr::hash_code, and hash_code.

Member Data Documentation

◆ data_w

float ObjectAttribute::data_w

Definition at line 271 of file draw_shader_shared.hh.

◆ data_x

float ObjectAttribute::data_x

Definition at line 271 of file draw_shader_shared.hh.

Referenced by sync().

◆ data_y

float ObjectAttribute::data_y

Definition at line 271 of file draw_shader_shared.hh.

◆ data_z

float ObjectAttribute::data_z

Definition at line 271 of file draw_shader_shared.hh.

◆ hash_code

uint ObjectAttribute::hash_code

Definition at line 272 of file draw_shader_shared.hh.

Referenced by sync().


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