Blender V5.3
blender::draw::ResourceID Struct Reference

#include <draw_handle.hh>

Public Member Functions

 ResourceID ()=default
 ResourceID (uint raw_)
 ResourceID (uint index, bool inverted_handedness)
bool has_inverted_handedness () const
uint index () const

Public Attributes

uint32_t raw

Detailed Description

Index for getting a specific resource from the Draw Manager resource arrays. (e.g. object matrices) Last bit contains handedness.

NOTE: From the draw_pass and draw_command perspective, the 0 index is still valid and points to default initialized Manager resources. Valid ResourceHandles start at index 1.

Definition at line 60 of file draw_handle.hh.

Constructor & Destructor Documentation

◆ ResourceID() [1/3]

◆ ResourceID() [2/3]

blender::draw::ResourceID::ResourceID ( uint raw_)
inline

Definition at line 64 of file draw_handle.hh.

References raw.

◆ ResourceID() [3/3]

blender::draw::ResourceID::ResourceID ( uint index,
bool inverted_handedness )
inline

Definition at line 65 of file draw_handle.hh.

References index(), raw, and SET_FLAG_FROM_TEST.

Member Function Documentation

◆ has_inverted_handedness()

bool blender::draw::ResourceID::has_inverted_handedness ( ) const
inline

◆ index()

uint blender::draw::ResourceID::index ( ) const
inline

Member Data Documentation

◆ raw


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