|
Blender V5.3
|
#include <gpu_shader_dead_code_elimination.hh>
Public Types | |
| using | Token = lexit::Token |
| using | TokenType = lexit::TokenType |
| using | TokenAtom = lexit::TokenAtom |
Public Member Functions | |
| PruningStream (Token invalid_tok, TokenAtom return_atom, TokenAtom thread_atom, TokenAtom device_atom, Span< TokenAtom > builtin_atoms) | |
| void | set_enabled_parsing (bool value) |
| PruningStream & | operator<< (StringRef str) |
| BLI_NOINLINE void | parse_token (const Token tok) |
| BLI_NOINLINE void | parse_token_range (const Token start, const Token end) |
| std::string | str () const |
| void | optimize (const Span< TokenAtom > entry_points) |
Definition at line 24 of file gpu_shader_dead_code_elimination.hh.
Definition at line 25 of file gpu_shader_dead_code_elimination.hh.
Definition at line 27 of file gpu_shader_dead_code_elimination.hh.
Definition at line 26 of file gpu_shader_dead_code_elimination.hh.
|
inline |
Definition at line 87 of file gpu_shader_dead_code_elimination.hh.
Referenced by operator<<().
|
inline |
Checks if str is a contiguous continuation of the last inserted string ref. If yes, merge it; else append str to the stream.
Definition at line 114 of file gpu_shader_dead_code_elimination.hh.
References blender::blender::StringRefBase::data(), PruningStream(), blender::blender::StringRefBase::size(), str(), and blender::StringRef::StringRef().
Definition at line 266 of file gpu_shader_dead_code_elimination.hh.
|
inline |
Definition at line 138 of file gpu_shader_dead_code_elimination.hh.
References BLI_NOINLINE.
Referenced by blender::gpu::operator<<(), and blender::gpu::operator<<().
|
inline |
Definition at line 146 of file gpu_shader_dead_code_elimination.hh.
References ATTR_FALLTHROUGH, BLI_NOINLINE, lexit::NewLine, lexit::Token::next(), lexit::Token::prev(), blender::blender::IndexRange::size(), lexit::Token::str_with_whitespace(), and lexit::Token::type().
Referenced by blender::gpu::operator<<().
|
inline |
Definition at line 105 of file gpu_shader_dead_code_elimination.hh.
|
inline |
Definition at line 210 of file gpu_shader_dead_code_elimination.hh.
References blender::BLI_assert(), len(), and blender::result.
Referenced by blender::gpu::operator<<(), and operator<<().