Blender V5.0
blender::draw::ResourceIndex Struct Reference

#include <draw_handle.hh>

Public Member Functions

 ResourceIndex ()=default
 ResourceIndex (uint raw_)
 ResourceIndex (uint index, bool inverted_handedness)
bool has_inverted_handedness () const
uint resource_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 56 of file draw_handle.hh.

Constructor & Destructor Documentation

◆ ResourceIndex() [1/3]

blender::draw::ResourceIndex::ResourceIndex ( )
default

◆ ResourceIndex() [2/3]

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

Definition at line 60 of file draw_handle.hh.

References raw.

◆ ResourceIndex() [3/3]

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

Definition at line 61 of file draw_handle.hh.

References raw, and SET_FLAG_FROM_TEST.

Member Function Documentation

◆ has_inverted_handedness()

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

Definition at line 67 of file draw_handle.hh.

References raw.

Referenced by blender::draw::command::DrawMulti::serialize().

◆ resource_index()

uint blender::draw::ResourceIndex::resource_index ( ) const
inline

Definition at line 72 of file draw_handle.hh.

References raw.

Referenced by blender::draw::command::DrawMulti::serialize().

Member Data Documentation

◆ raw

uint32_t blender::draw::ResourceIndex::raw

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