|
Blender V5.3
|
Public Attributes | |
| StringRefNull | fullpath |
| StringRefNull | filename |
| StringRefNull | source |
| std::string | patched_source |
| Vector< StringRef > | dependencies_names |
| Vector< GPUSource * > | dependencies |
| bool | dependencies_init = false |
| shader::BuiltinBits | builtins = shader::BuiltinBits::NONE |
| bool | generated = false |
| Vector< shader::ShaderCreateInfo::SharedVariable, 0 > | shared_variables |
Definition at line 131 of file gpu_shader_dependency.cc.
|
inline |
Definition at line 209 of file gpu_shader_dependency.cc.
References BLI_assert_msg, filename, blender::blender::StringRefBase::find(), fullpath, blender::g_formats, blender::g_functions, GPUSource(), and source.
Referenced by add_function(), blender::gpu_shader_dependency_init(), GPUSource(), init_dependencies(), and source_get().
|
inline |
Definition at line 224 of file gpu_shader_dependency.cc.
References builtins, and blender::gpu::shader::convert_builtin_bit().
|
inline |
Definition at line 229 of file gpu_shader_dependency.cc.
References dependencies_names.
|
inline |
Definition at line 301 of file gpu_shader_dependency.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ARRAY_SIZE(), convert_qualifier(), convert_type(), blender::blender::StringRefBase::copy_utf8_truncated(), blender::blender::StringRefBase::find(), blender::g_functions, GPUSource(), insert(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::GPUFunction::name, blender::GPUFunction::paramqual, blender::GPUFunction::paramtype, print_error(), source, blender::GPUFunction::source, and blender::GPUFunction::totparam.
|
inline |
Definition at line 239 of file gpu_shader_dependency.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLI_assert_msg, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::gpu::shader::PrintfFormat::Block::FLOAT, blender::gpu::shader::PrintfFormat::format_blocks, blender::gpu::shader::PrintfFormat::format_str, blender::gpu::shader::PrintfFormat::Block::INT, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::gpu::shader::PrintfFormat::Block::NONE, print_error(), blender::gpu::shader::PrintfFormat::Block::STRING, and blender::gpu::shader::PrintfFormat::Block::UINT.
|
inline |
Definition at line 234 of file gpu_shader_dependency.cc.
References shared_variables.
|
inline |
Definition at line 491 of file gpu_shader_dependency.cc.
References blender::result, and source_get().
Referenced by blender::gpu::shader::gpu_shader_dependency_get_resolved_source().
|
inline |
Definition at line 500 of file gpu_shader_dependency.cc.
References builtins, and dependencies.
Referenced by blender::gpu::shader::gpu_shader_dependency_get_builtins().
|
inline |
Definition at line 149 of file gpu_shader_dependency.cc.
References BLI_assert_unreachable, blender::FUNCTION_QUAL_IN, blender::FUNCTION_QUAL_INOUT, blender::FUNCTION_QUAL_OUT, blender::gpu::shader::metadata::in, blender::gpu::shader::metadata::inout, and blender::gpu::shader::metadata::out.
Referenced by add_function().
|
inline |
Definition at line 164 of file gpu_shader_dependency.cc.
References BLI_assert_unreachable, blender::gpu::shader::metadata::bool1, blender::gpu::shader::metadata::Closure, blender::gpu::shader::metadata::float1, blender::gpu::shader::metadata::float2, blender::gpu::shader::metadata::float3, blender::gpu::shader::metadata::float3x3, blender::gpu::shader::metadata::float4, blender::gpu::shader::metadata::float4x4, blender::GPU_BOOL, blender::GPU_CLOSURE, blender::GPU_FLOAT, blender::GPU_INT, blender::GPU_INT2, blender::GPU_INT3, blender::GPU_INT4, blender::GPU_KERNEL_GLOBALS, blender::GPU_MAT3, blender::GPU_MAT4, blender::GPU_NONE, blender::GPU_SHADING_DATA, blender::GPU_TEX1D_ARRAY, blender::GPU_TEX2D, blender::GPU_TEX2D_ARRAY, blender::GPU_TEX3D, blender::GPU_VEC2, blender::GPU_VEC3, blender::GPU_VEC4, blender::gpu::shader::metadata::int1, blender::gpu::shader::metadata::int2, blender::gpu::shader::metadata::int3, blender::gpu::shader::metadata::int4, blender::gpu::shader::metadata::KernelGlobals, blender::gpu::shader::metadata::sampler1DArray, blender::gpu::shader::metadata::sampler2D, blender::gpu::shader::metadata::sampler2DArray, blender::gpu::shader::metadata::sampler3D, and blender::gpu::shader::metadata::ShadingData.
Referenced by add_function().
|
inline |
Definition at line 361 of file gpu_shader_dependency.cc.
References builtins, blender::StringRefNull::c_str(), dependencies, dependencies_names, GPUSource(), init_dependencies(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), print_error(), blender::result, shared_variables, source, blender::gpu::shader::USE_DEBUG_DRAW, and blender::gpu::shader::USE_PRINTF.
Referenced by init_dependencies().
|
inline |
Definition at line 509 of file gpu_shader_dependency.cc.
References filename.
|
inline |
Definition at line 338 of file gpu_shader_dependency.cc.
References blender::blender::StringRefBase::begin(), blender::gpu::shader::parser::char_number(), blender::blender::StringRefBase::end(), blender::blender::StringRefBase::find(), fullpath, blender::gpu::shader::parser::line_number(), blender::blender::StringRefBase::rfind(), and blender::blender::StringRefBase::substr().
Referenced by add_function(), add_printf_format(), and init_dependencies().
|
inline |
Definition at line 398 of file gpu_shader_dependency.cc.
References BLI_assert_msg, CLOG_FILE_INCLUDE, blender::gpu::shader::GeneratedSource::content, blender::gpu::shader::GeneratedSource::dependencies, GPUSource(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::result, blender::gpu::shader::RUNTIME_GENERATED, and source_get().
Referenced by build(), and source_get().
| shader::BuiltinBits blender::gpu::GPUSource::builtins = shader::BuiltinBits::NONE |
Definition at line 139 of file gpu_shader_dependency.cc.
Referenced by add_builtin(), builtins_get(), and init_dependencies().
Definition at line 137 of file gpu_shader_dependency.cc.
Referenced by builtins_get(), and init_dependencies().
| bool blender::gpu::GPUSource::dependencies_init = false |
Definition at line 138 of file gpu_shader_dependency.cc.
Definition at line 136 of file gpu_shader_dependency.cc.
Referenced by add_dependency(), and init_dependencies().
| StringRefNull blender::gpu::GPUSource::filename |
Definition at line 133 of file gpu_shader_dependency.cc.
Referenced by blender::gpu_material_library_use_function(), GPUSource(), and is_from_material_library().
| StringRefNull blender::gpu::GPUSource::fullpath |
Definition at line 132 of file gpu_shader_dependency.cc.
Referenced by GPUSource(), and print_error().
| bool blender::gpu::GPUSource::generated = false |
Definition at line 141 of file gpu_shader_dependency.cc.
| std::string blender::gpu::GPUSource::patched_source |
Definition at line 135 of file gpu_shader_dependency.cc.
| Vector<shader::ShaderCreateInfo::SharedVariable, 0> blender::gpu::GPUSource::shared_variables |
Definition at line 143 of file gpu_shader_dependency.cc.
Referenced by add_shared_variable(), blender::gpu::shader::gpu_shader_dependency_get_shared_variables(), and init_dependencies().
| StringRefNull blender::gpu::GPUSource::source |
Definition at line 134 of file gpu_shader_dependency.cc.
Referenced by add_function(), blender::gpu::shader::gpu_shader_dependency_get_source(), GPUSource(), and init_dependencies().