Blender V5.3
LayerAttribute Struct Reference

#include <draw_shader_shared.hh>

Public Member Functions

LayerAttributes
bool sync (const Scene *scene, const ViewLayer *layer, const GPULayerAttr &attr)

Public Attributes

float4 data
uint hash_code
uint buffer_length
uint _pad1
uint _pad2

Detailed Description

Note
we only align to 4 bytes and fetch data manually so make sure C++ compiler gives us the same size.

Definition at line 644 of file draw_shader_shared.hh.

Member Function Documentation

◆ sync()

bool LayerAttribute::sync ( const Scene * scene,
const ViewLayer * layer,
const GPULayerAttr & attr )

Definition at line 47 of file draw_resource.cc.

References blender::BKE_view_layer_find_rgba_attribute(), data, hash_code, and layer.

Member Data Documentation

◆ _pad1

uint LayerAttribute::_pad1

Definition at line 648 of file draw_shader_shared.hh.

◆ _pad2

uint LayerAttribute::_pad2

Definition at line 649 of file draw_shader_shared.hh.

◆ buffer_length

uint LayerAttribute::buffer_length

Definition at line 647 of file draw_shader_shared.hh.

Referenced by draw::ViewLayerAttributes::get().

◆ data

float4 LayerAttribute::data

Definition at line 645 of file draw_shader_shared.hh.

Referenced by draw::ViewLayerAttributes::get(), and sync().

◆ hash_code

uint LayerAttribute::hash_code

Definition at line 646 of file draw_shader_shared.hh.

Referenced by draw::ViewLayerAttributes::get(), and sync().


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