Blender V5.3
blender::gpu::Directive Class Reference

Public Member Functions

 operator int () const
Line first () const
Line last () const
DirectiveType type () const
Token identifier () const
bool is_valid () const
bool is_last () const
Directive next () const
Directive prev () const
StringRef str () const
StringRef str_with_whitespace () const
uint64_t hash () const

Static Public Member Functions

static Directive invalid ()

Friends

bool operator== (const Directive &a, const Directive &b)

Detailed Description

Definition at line 330 of file gpu_shader_preprocessor.cc.

Member Function Documentation

◆ first()

Line blender::gpu::Directive::first ( ) const
inline

Definition at line 360 of file gpu_shader_preprocessor.cc.

Referenced by identifier(), last(), str(), and str_with_whitespace().

◆ hash()

uint64_t blender::gpu::Directive::hash ( ) const
inline

Definition at line 432 of file gpu_shader_preprocessor.cc.

◆ identifier()

Token blender::gpu::Directive::identifier ( ) const
inline

◆ invalid()

Directive blender::gpu::Directive::invalid ( )
inlinestatic

◆ is_last()

bool blender::gpu::Directive::is_last ( ) const
inline

Definition at line 395 of file gpu_shader_preprocessor.cc.

◆ is_valid()

bool blender::gpu::Directive::is_valid ( ) const
inline

◆ last()

Line blender::gpu::Directive::last ( ) const
inline

◆ next()

Directive blender::gpu::Directive::next ( ) const
inline

◆ operator int()

blender::gpu::Directive::operator int ( ) const
inlineexplicit

Definition at line 355 of file gpu_shader_preprocessor.cc.

◆ prev()

Directive blender::gpu::Directive::prev ( ) const
inline

Definition at line 404 of file gpu_shader_preprocessor.cc.

◆ str()

StringRef blender::gpu::Directive::str ( ) const
inline

◆ str_with_whitespace()

StringRef blender::gpu::Directive::str_with_whitespace ( ) const
inline

◆ type()

DirectiveType blender::gpu::Directive::type ( ) const
inline

Definition at line 375 of file gpu_shader_preprocessor.cc.

References identifier(), and type().

Referenced by blender::gpu::increment_to_next_conditional(), and type().

◆ operator==

bool operator== ( const Directive & a,
const Directive & b )
friend

Definition at line 427 of file gpu_shader_preprocessor.cc.

References b.


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