Blender V5.3
blender::gpu::shader::parser::ScopeStack Struct Reference

Classes

struct  Item

Public Member Functions

 ScopeStack (size_t predicted_scope_count)
void always_inline enter_scope (ScopeType type, size_t start_tok_id)
void always_inline exit_scope (int end_tok_id)
Item always_inline back () const
bool always_inline empty () const

Public Attributes

int scope_index = 0
std::vector< ScopeStack::Item > scopes
std::vector< IndexRange > ranges
std::vector< ScopeType > types

Detailed Description

Definition at line 375 of file intermediate.cc.

Constructor & Destructor Documentation

◆ ScopeStack()

blender::gpu::shader::parser::ScopeStack::ScopeStack ( size_t predicted_scope_count)
inline

Definition at line 388 of file intermediate.cc.

References ranges, scopes, and types.

Member Function Documentation

◆ back()

Item always_inline blender::gpu::shader::parser::ScopeStack::back ( ) const
inline

Definition at line 414 of file intermediate.cc.

References always_inline, and scopes.

◆ empty()

bool always_inline blender::gpu::shader::parser::ScopeStack::empty ( ) const
inline

Definition at line 419 of file intermediate.cc.

References always_inline, and scopes.

◆ enter_scope()

void always_inline blender::gpu::shader::parser::ScopeStack::enter_scope ( ScopeType type,
size_t start_tok_id )
inline

Definition at line 397 of file intermediate.cc.

References always_inline, ranges, scope_index, scopes, and types.

◆ exit_scope()

void always_inline blender::gpu::shader::parser::ScopeStack::exit_scope ( int end_tok_id)
inline

Member Data Documentation

◆ ranges

std::vector<IndexRange> blender::gpu::shader::parser::ScopeStack::ranges

Definition at line 385 of file intermediate.cc.

Referenced by enter_scope(), exit_scope(), and ScopeStack().

◆ scope_index

int blender::gpu::shader::parser::ScopeStack::scope_index = 0

Definition at line 382 of file intermediate.cc.

Referenced by enter_scope().

◆ scopes

std::vector<ScopeStack::Item> blender::gpu::shader::parser::ScopeStack::scopes

Definition at line 383 of file intermediate.cc.

Referenced by back(), empty(), enter_scope(), exit_scope(), and ScopeStack().

◆ types

std::vector<ScopeType> blender::gpu::shader::parser::ScopeStack::types

Definition at line 386 of file intermediate.cc.

Referenced by enter_scope(), and ScopeStack().


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