Blender V5.0
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 288 of file draw_shader_shared.hh.

Member Function Documentation

◆ sync()

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

Member Data Documentation

◆ _pad1

uint LayerAttribute::_pad1

Definition at line 292 of file draw_shader_shared.hh.

◆ _pad2

uint LayerAttribute::_pad2

Definition at line 292 of file draw_shader_shared.hh.

◆ buffer_length

uint LayerAttribute::buffer_length

Definition at line 291 of file draw_shader_shared.hh.

◆ data

float4 LayerAttribute::data

Definition at line 289 of file draw_shader_shared.hh.

Referenced by sync().

◆ hash_code

uint LayerAttribute::hash_code

Definition at line 290 of file draw_shader_shared.hh.

Referenced by sync().


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