|
Blender V5.3
|
Namespaces | |
| namespace | builtin |
| namespace | mini_fmt |
Classes | |
| struct | AstNodeException |
| struct | BSLParser |
| struct | CodegenContext |
| struct | ConstexprValue |
| struct | ExpressionResult |
| struct | ExpressionTypeParser |
| struct | NodeErrorHandler |
| struct | ParsedAttribute |
| struct | Result |
| struct | ResultPair |
| struct | SourceLocation |
| Represents a specific position within a source file or included sub-file. More... | |
| struct | StringPair |
| struct | Symbol |
| struct | SymbolClass |
| struct | SymbolFunction |
| struct | SymbolMap |
| struct | SymbolParser |
| struct | SymbolScope |
| struct | SymbolTable |
| struct | SymbolTemplate |
| struct | SymbolVariable |
| struct | TokenException |
Typedefs | |
| using | Token = blender::gpu::shader::parser::Token |
| using | ParserBase = blender::gpu::shader::parser::ParserBase |
| using | SymbolClassTemplate = SymbolTemplate<SymbolClass> |
| using | SymbolFunctionTemplate = SymbolTemplate<SymbolFunction> |
| using | ConstexprError = ConstexprValue |
Variables | |
| static const char * | ns_sep = blender::gpu::shader::SourceProcessor::namespace_separator |
| using bsl::ConstexprError = ConstexprValue |
Definition at line 35 of file symbol_variable.hh.
Definition at line 17 of file source_location.hh.
Definition at line 61 of file symbol_template.hh.
Definition at line 62 of file symbol_template.hh.
Definition at line 18 of file diagnostic.hh.
|
strong |
Definition at line 96 of file diagnostic.hh.
| enum bsl::ExprFlag : uint8_t |
| Enumerator | |
|---|---|
| IsNone | |
| IsConstant | |
| IsConstexpr | |
Definition at line 17 of file type_checker.hh.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Conversion | |
| Promotion | |
| Exact | |
Definition at line 16 of file symbol_function.hh.
| enum bsl::OperatorType : uint16_t |
| Enumerator | |
|---|---|
| OP_NUMERIC | |
| OP_INTEGER | |
| OP_BOOL | |
| OP_ARITHMETIC | |
| OP_BITWISE | |
| OP_SHIFT | |
| OP_EQUALITY | |
| OP_RELATIONAL | |
| OP_LOGICAL | |
| OP_ASSIGN | |
| OP_INVALID | |
Definition at line 13 of file operator.cc.
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| VERTEX_IN | |
| VERTEX_OUT | |
| FRAGMENT_OUT | |
| FRAGMENT_IN | |
| RESOURCE_TABLE | |
| ENTRY_POINT | |
Definition at line 131 of file resource.hh.
|
strong |
Definition at line 20 of file resource.hh.
|
inline |
Definition at line 567 of file constexpr.hh.
References anyGreaterThanEqual(), bsl::ConstexprValue::comp_cast(), and bsl::ConstexprValue::values.
Referenced by anyGreaterThanEqual(), and bsl::ExpressionTypeParser::binary().
|
inline |
Definition at line 557 of file constexpr.hh.
References anyLessThan(), bsl::ConstexprValue::comp_cast(), and bsl::ConstexprValue::values.
Referenced by anyLessThan(), and bsl::ExpressionTypeParser::binary().
| auto bsl::apply_integral | ( | Func | func, |
| const auto & | lhs, | ||
| const auto & | rhs ) |
Definition at line 398 of file constexpr.hh.
References apply_integral(), blender::gpu::shader::metadata::assert, T, and U.
Referenced by apply_integral(), operator%(), operator&(), operator<<(), operator>>(), operator^(), and operator|().
| std::string bsl::constexpr_to_string | ( | const ConstexprValue & | v | ) |
Definition at line 93 of file symbol_variable.cc.
References bsl::ConstexprValue::BOOL, constexpr_to_string(), bsl::ConstexprValue::FLOAT, bsl::ConstexprValue::INT, to_string_exact(), bsl::ConstexprValue::UINT, and blender::v.
Referenced by bsl::ExpressionTypeParser::binary(), constexpr_to_string(), and bsl::SymbolVariable::value_str().
|
inline |
Definition at line 547 of file constexpr.hh.
References contains_zero().
Referenced by bsl::ExpressionTypeParser::binary(), and contains_zero().
|
inlinestatic |
Definition at line 292 of file diagnostic.hh.
References AnonymousUnionNotSupportedAtNamespaceScope, ArrayMultidimensionalImplicitSize, ArrayMultidimensionalNotSupported, ArrayNeedsSizeOrInitializer, ArraySizeMustBeGreaterThanZero, ArraySizeNotConstantExpression, ArrayTypeOperand, AttributeNotAllowedInComp, AttributeOnlyEntryPointsCanUseIn, AttributeOnlyEntryPointsCanUseOut, AutoTypeCannotBeDeduced, AutoTypeMultipleExpressions, AutoTypeNestedInitializer, BitFieldNotIntegral, BitFieldNotSingleDeclarator, BitFieldSizeNegative, BitFieldSizeNull, BitFieldSizeTooLarge, CapacityArrayDimensionMismatch, CapacityArrayImplicitSize, CompilationConstantPreviousDecl, CompilationConstantRedefinition, CompilerErrorADLOnTypesNotAllowed, CompilerErrorChildScopeNotFound, CompilerErrorMemberFuncNoClass, ConditionAttributeDeclaredHere, ConditionAttributeMultiple, ConditionAttributeNotChecked, ConditionAttributeNotOnResource, ConditionAttributeUnsupported, ConstexprDivisionByZero, ConstexprGlobalNonStatic, ConstexprIfConditionNotConstexpr, ConstexprMemberNonStatic, ConstexprShiftNegative, ConstexprShiftTooLarge, ConstexprVarMustBeInitializedByConstantExpr, ConstexprVarMustBeInitializedByCorrectType, ConstexprVarMustBeValidType, ConstexprVarMustNotBeArray, diagnostic_message_get(), EmptyClassNotSupportedInBuffer, EntryPointVoidReturn, ExpectedArrayMemberInitializer, ExpectedColon, ExpectedComputeShaderEntryPoint, ExpectedEntryPointResourceAttribute, ExpectedFragmentShaderEntryPoint, ExpectedImageFormat, ExpectedNParametersForAttribute, ExpectedOneTypename, ExpectedParenthesis, ExpectedRangeParametersForAttribute, ExpectedResourceDefinitionOfType, ExpectedResourceOfEitherType, ExpectedResourceOfType, ExpectedResourceTableInitializer, ExpectedScalarInitializer, ExpectedVertexShaderEntryPoint, ExprCannotContainFunctionCalls, ExprNotIntegralConstant, FieldDesignatorNotFound, FieldDesignatorOutOfOrder, FunctionCallNotAllowedInReferenceDefinition, ImplicitPadding12BytesArrayElement, ImplicitPaddingArrayElementStd140, ImplicitPaddingAtEndOfStruct, ImplicitPaddingBeforeMember, InitializerListRequiresExplicitType, InliningRecursive, InvalidBinaryOperands, InvalidExprTypeChecker, InvalidExprTypeCodegen, InvalidInlinedFunctionLocation, InvalidNumberLiteral, InvalidResourceTypeForResourceTableClass, InvalidSubscript, InvalidUnaryArgumentType, MissingParameterForCall, NonConstVariableInExpr, NoteDeclarationUnionRequested, NoteInDeclarationOfVariable, NoteInInliningOf, NoteInstantiationClassTemplateRequested, NoteInstantiationFuncTemplateRequested, NoteInStorageBufferDeclaration, NoteInUniformBufferDeclaration, NotePreviousDefinition, OperatorBitfieldInvalid, OperatorCalledIsNotFunction, OperatorInvalidTernary, OperatorTokenInvalid, OverloadAmbiguous, OverloadNotFound, ParserTrailingInput, Redefinition, RedefinitionOfEntryPointFunction, RedefinitionTemplate, ReferenceCannotBindNonConstSubscript, ReferenceCannotBindSideEffect, ReferenceCannotBindTemporary, ReferenceMixedVarDecl, ReferenceTypeMismatch, ReferenceVariableRequiresInitializer, ResourceAttributesOnlyOnEntryPointArgs, ResourceOutOfClassDeclaration, ResourcesNotAllowedInAnonymousStruct, ResourceTableConstructorNotAllowed, ResourceTableDeclarationAlreadyOfType, ResourceTableMustBeReference, ReturnOutsideFunction, StaticBranchConstexprIfNotAllowed, StaticBranchMissingPrevious, StaticBranchRequiredByPrevious, StaticDataMemberNotAllowed, StructuredBindingNotEnoughNames, StructuredBindingTooManyNames, SubscriptNotInt, TemplateInvalidArg, TemplateMissingArgument, TemplateMissingDefinition, TemplateMissingExplicitArguments, TemplateMissingInstantiation, TemplateMissingParameters, TemplateMissingParametersForType, TemplateMissingParentClassInstantiation, TemplateParameterCountMismatch, TemplateParameterNotConstexpr, TypeNotAllowedInStorageBuffer, TypeNotAllowedInUniformAndStorageBuffer, TypeNotAllowedInUniformBufferImplicitPadding, TypeNotConvertibleToBool, UnionArrayUnsupported, UnknownAttribute, UnknownClassInstantiation, UnknownFunction, UnknownIdentifier, UnknownMember, UnknownTypeName, UnknownTypeNameWithArg, UnknownVariable, UnrolledLoopCommaOperator, UnrolledLoopInvalidExpression, UnrolledLoopMissingAssignment, UnrolledLoopMissingInit, UnrolledLoopMultipleVariables, UnrolledLoopMustAssignToVar, UnrolledLoopNonIntVar, UnrolledLoopNotConstexpr, UnrolledLoopTooManyIterations, UnsupportedSymbolInExpr, and UsingNamespaceNotSupported.
Referenced by diagnostic_message_get(), bsl::NodeErrorHandler::error(), bsl::NodeErrorHandler::note(), and bsl::NodeErrorHandler::note().
| const char * bsl::get_symbol_type_name | ( | ) |
Definition at line 193 of file symbol_scope.cc.
References get_symbol_type_name().
Referenced by get_symbol_type_name().
|
static |
Definition at line 78 of file symbol_function.cc.
References is_strictly_better().
Referenced by is_strictly_better(), and bsl::SymbolFunction::lookup_overload().
|
inline |
Definition at line 453 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator!=().
Referenced by operator!=().
|
inline |
Definition at line 483 of file constexpr.hh.
References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator%().
Referenced by operator%().
|
inline |
Definition at line 493 of file constexpr.hh.
References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator&().
Referenced by operator&().
|
inline |
Definition at line 435 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator&&().
Referenced by operator&&().
|
inline |
Definition at line 423 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator*().
Referenced by operator*().
|
inline |
Definition at line 413 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator+().
Referenced by operator+().
|
inline |
Definition at line 418 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator-().
Referenced by operator-().
|
inline |
Definition at line 428 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator/().
Referenced by operator/().
|
inline |
Definition at line 459 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator<().
Referenced by operator<().
|
inline |
Definition at line 523 of file constexpr.hh.
References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator<<().
Referenced by operator<<().
|
inline |
Definition at line 465 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator<=().
Referenced by operator<=().
|
inline |
Definition at line 447 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator==().
Referenced by operator==().
|
inline |
Definition at line 471 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator>().
Referenced by operator>().
|
inline |
Definition at line 477 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator>=().
Referenced by operator>=().
|
inline |
Definition at line 535 of file constexpr.hh.
References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator>>().
Referenced by operator>>().
|
inline |
Definition at line 513 of file constexpr.hh.
References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator^().
Referenced by operator^().
|
inline |
Definition at line 503 of file constexpr.hh.
References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator|().
Referenced by operator|().
|
inline |
Definition at line 441 of file constexpr.hh.
References bsl::ConstexprValue::constexpr_op(), and operator||().
Referenced by operator||().
|
static |
Definition at line 19 of file symbol_scope.cc.
References blender::gpu::shader::parser::ast::Node::is_valid(), resolve_template_instantiation(), and T.
Referenced by bsl::SymbolScope::lookup_class(), bsl::SymbolScope::lookup_class(), bsl::SymbolScope::lookup_function(), and resolve_template_instantiation().
| Result< ParsedAttribute > bsl::resource_type_from_attributes | ( | AttrList | list | ) |
Number of arguments to expect. Positive values mean exactly 'args' attributes are expected. Negative values means between 1 and 'abs(args)' attributes are expected.
Definition at line 17 of file resource.cc.
References abs, ACCELERATION_STRUCTURE, bsl::AstNodeException::AstNodeException(), BARY_COORD, BASE_INSTANCE, CAPACITY, blender::gpu::shader::parser::ast::Node::child_count(), blender::gpu::shader::parser::ast::Node::child_first(), CLIP_CONTROL, CLIP_DISTANCES, COMPILATION_CONST, CONDITION, DUAL_SOURCE_INDEX, ENTRY_POINT, ExpectedNParametersForAttribute, ExpectedRangeParametersForAttribute, FRAG_COORD, FRAG_DEPTH, FRAG_IN, FRAG_OUT, FRAGMENT_IN, FRAGMENT_OUT, FREQUENCY, FRONT_FACING, GLOBAL_INVOCATION_ID, IMAGE, IN, INSTANCE_ID, INSTANCE_INDEX, blender::gpu::shader::parser::ast::Node::is_valid(), LAYER, LEGACY_IFACE, LEGACY_INFO, LOCAL_INVOCATION_ID, LOCAL_INVOCATION_INDEX, blender::gpu::shader::parser::ast::Node::next(), NONE, NUM_WORK_GROUP, OUT, POINT_COORD, POINT_SIZE, POSITION, PUSH_CONST, RASTER_ORDER_GROUP, RESOURCE_TABLE, resource_type_from_attributes(), ResourceTableDeclarationAlreadyOfType, blender::result, SAMPLER, SHARED, SPECIALIZATION_CONST, STENCIL_REF, STORAGE_BUF, SUBPASS_IN, to_string(), UNIFORM_BUF, UnknownAttribute, VERT_ATTR_IN, VERT_ATTR_OUT, VERTEX_ID, VERTEX_IN, VERTEX_OUT, VIEWPORT_INDEX, and WORK_GROUP_ID.
Referenced by bsl::SymbolParser::parse_function_arguments(), bsl::SymbolParser::parse_var_decl(), and resource_type_from_attributes().
Definition at line 32 of file codegen.cc.
References lexit::AssignAdd, lexit::AssignDiv, lexit::AssignLShift, lexit::AssignMul, lexit::AssignRShift, lexit::AssignSub, lexit::Divide, lexit::Invalid, lexit::LShift, lexit::Minus, lexit::Multiply, lexit::Plus, lexit::RShift, and strip_assignment().
Referenced by bsl::CodegenContext::CodegenExpressionParser::binary(), and strip_assignment().
|
static |
Definition at line 34 of file operator.cc.
References lexit::And, lexit::Assign, lexit::AssignAdd, lexit::AssignDiv, lexit::AssignLShift, lexit::AssignMul, lexit::AssignRShift, lexit::AssignSub, lexit::BitwiseNot, lexit::Decrement, lexit::Divide, lexit::Equal, lexit::GEqual, lexit::GThan, lexit::Increment, lexit::LEqual, lexit::LogicalAnd, lexit::LogicalOr, lexit::LShift, lexit::LThan, lexit::Minus, lexit::Modulo, lexit::Multiply, lexit::Not, lexit::NotEqual, OP_ARITHMETIC, OP_ASSIGN, OP_BITWISE, OP_BOOL, OP_EQUALITY, OP_INTEGER, OP_INVALID, OP_LOGICAL, OP_NUMERIC, OP_RELATIONAL, OP_SHIFT, lexit::Or, lexit::Plus, lexit::RShift, to_operator_type(), and lexit::Xor.
Referenced by bsl::builtin::binary_operator_return_type(), to_operator_type(), bsl::builtin::unary_prefix_operator_return_type(), and bsl::builtin::unary_suffix_operator_return_type().
|
static |
Definition at line 40 of file symbol_function.cc.
References to_str().
Referenced by bsl::SymbolFunction::lookup_overload(), and to_str().
|
inlinestatic |
Definition at line 143 of file resource.hh.
References ENTRY_POINT, FRAGMENT_IN, FRAGMENT_OUT, NONE, RESOURCE_TABLE, SERIALIZE, to_str(), VERTEX_IN, and VERTEX_OUT.
|
inlinestatic |
Definition at line 73 of file resource.hh.
References ACCELERATION_STRUCTURE, BARY_COORD, BASE_INSTANCE, CAPACITY, blender::gpu::shader::CLIP_CONTROL, blender::gpu::shader::CLIP_DISTANCES, COMPILATION_CONST, CONDITION, DUAL_SOURCE_INDEX, blender::gpu::shader::FRAG_COORD, FRAG_DEPTH, FRAG_IN, FRAG_OUT, FREQUENCY, blender::gpu::shader::FRONT_FACING, blender::gpu::shader::GLOBAL_INVOCATION_ID, IMAGE, IN, blender::gpu::shader::INSTANCE_ID, blender::gpu::shader::INSTANCE_INDEX, LEGACY_IFACE, LEGACY_INFO, blender::gpu::shader::LOCAL_INVOCATION_ID, blender::gpu::shader::LOCAL_INVOCATION_INDEX, NONE, blender::gpu::shader::NUM_WORK_GROUP, OUT, blender::gpu::shader::POINT_COORD, blender::gpu::shader::POINT_SIZE, POSITION, PUSH_CONST, RASTER_ORDER_GROUP, RESOURCE_TABLE, SAMPLER, SERIALIZE, SHARED, SPECIALIZATION_CONST, blender::gpu::shader::STENCIL_REF, STORAGE_BUF, SUBPASS_IN, to_str(), UNIFORM_BUF, VERT_ATTR_IN, VERT_ATTR_OUT, blender::gpu::shader::VERTEX_ID, blender::gpu::shader::VIEWPORT_INDEX, and blender::gpu::shader::WORK_GROUP_ID.
|
static |
Definition at line 81 of file symbol_variable.cc.
References str, and to_string_exact().
Referenced by constexpr_to_string(), and to_string_exact().
|
static |
Definition at line 52 of file codegen.cc.
References lexit::Decrement, lexit::Divide, lexit::Increment, lexit::LShift, lexit::Minus, lexit::Multiply, lexit::Plus, lexit::RShift, and to_token_string().
Referenced by bsl::CodegenContext::CodegenExpressionParser::binary(), and to_token_string().
|
static |
Definition at line 24 of file codegen.cc.
References str, and to_uppercase().
Referenced by to_uppercase().
|
static |
Definition at line 20 of file symbol.cc.
Referenced by bsl::SymbolParser::parse_local_scope(), and bsl::SymbolParser::parse_namespace().