|
Blender V5.0
|
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 |
Definition at line 57 of file gpu_shader_dependency.cc.
|
inline |
Definition at line 172 of file gpu_shader_dependency.cc.
References filename, fullpath, g_formats, g_functions, GPUSource(), and source.
Referenced by add_function(), GPUSource(), init_dependencies(), and source_get().
|
inline |
Definition at line 184 of file gpu_shader_dependency.cc.
References builtins, and convert_builtin_bit().
|
inline |
Definition at line 189 of file gpu_shader_dependency.cc.
References dependencies_names.
|
inline |
Definition at line 250 of file gpu_shader_dependency.cc.
References ARRAY_SIZE, convert_qualifier(), convert_type(), blender::StringRefBase::find(), g_functions, GPUSource(), insert(), GPUFunction::name, name, GPUFunction::paramqual, GPUFunction::paramtype, print_error(), source, GPUFunction::source, and GPUFunction::totparam.
|
inline |
Definition at line 194 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(), and blender::gpu::shader::PrintfFormat::Block::UINT.
|
inline |
Definition at line 425 of file gpu_shader_dependency.cc.
References result, and source_get().
Referenced by blender::gpu::shader::gpu_shader_dependency_get_resolved_source().
|
inline |
Definition at line 432 of file gpu_shader_dependency.cc.
References builtins, and dependencies.
Referenced by blender::gpu::shader::gpu_shader_dependency_get_builtins().
|
inline |
Definition at line 73 of file gpu_shader_dependency.cc.
References blender::gpu::shader::metadata::assert, BLI_assert_unreachable, blender::gpu::shader::metadata::drw_debug, blender::gpu::shader::FRAG_COORD, blender::gpu::shader::metadata::FragCoord, blender::gpu::shader::metadata::FragStencilRef, blender::gpu::shader::FRONT_FACING, blender::gpu::shader::metadata::FrontFacing, blender::gpu::shader::GLOBAL_INVOCATION_ID, blender::gpu::shader::metadata::GlobalInvocationID, blender::gpu::shader::INSTANCE_ID, blender::gpu::shader::metadata::InstanceID, blender::gpu::shader::LOCAL_INVOCATION_ID, blender::gpu::shader::LOCAL_INVOCATION_INDEX, blender::gpu::shader::metadata::LocalInvocationID, blender::gpu::shader::metadata::LocalInvocationIndex, blender::gpu::shader::NONE, blender::gpu::shader::NUM_WORK_GROUP, blender::gpu::shader::metadata::NumWorkGroup, blender::gpu::shader::POINT_COORD, blender::gpu::shader::POINT_SIZE, blender::gpu::shader::metadata::PointCoord, blender::gpu::shader::metadata::PointSize, blender::gpu::shader::PRIMITIVE_ID, blender::gpu::shader::metadata::PrimitiveID, blender::gpu::shader::metadata::printf, blender::gpu::shader::RUNTIME_GENERATED, blender::gpu::shader::metadata::runtime_generated, blender::gpu::shader::STENCIL_REF, blender::gpu::shader::USE_DEBUG_DRAW, blender::gpu::shader::USE_PRINTF, blender::gpu::shader::VERTEX_ID, blender::gpu::shader::metadata::VertexID, blender::gpu::shader::WORK_GROUP_ID, blender::gpu::shader::WORK_GROUP_SIZE, blender::gpu::shader::metadata::WorkGroupID, and blender::gpu::shader::metadata::WorkGroupSize.
Referenced by add_builtin().
|
inline |
Definition at line 126 of file gpu_shader_dependency.cc.
References BLI_assert_unreachable, FUNCTION_QUAL_IN, FUNCTION_QUAL_INOUT, 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 141 of file gpu_shader_dependency.cc.
References BLI_assert_unreachable, 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, GPU_CLOSURE, GPU_FLOAT, GPU_MAT3, GPU_MAT4, GPU_NONE, GPU_TEX1D_ARRAY, GPU_TEX2D, GPU_TEX2D_ARRAY, GPU_TEX3D, GPU_VEC2, GPU_VEC3, GPU_VEC4, blender::gpu::shader::metadata::sampler1DArray, blender::gpu::shader::metadata::sampler2D, blender::gpu::shader::metadata::sampler2DArray, and blender::gpu::shader::metadata::sampler3D.
Referenced by add_function().
|
inline |
Definition at line 310 of file gpu_shader_dependency.cc.
References builtins, dependencies, dependencies_names, error(), 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(), result, source, blender::gpu::shader::USE_DEBUG_DRAW, and blender::gpu::shader::USE_PRINTF.
Referenced by init_dependencies().
|
inline |
Definition at line 441 of file gpu_shader_dependency.cc.
References filename.
|
inline |
Definition at line 287 of file gpu_shader_dependency.cc.
References blender::StringRefBase::begin(), blender::StringRefBase::end(), fullpath, i, and input.
Referenced by add_function(), add_printf_format(), and init_dependencies().
|
inline |
Definition at line 345 of file gpu_shader_dependency.cc.
References BLI_assert_msg, CLOG_FILE_INCLUDE, GPUSource(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), 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 65 of file gpu_shader_dependency.cc.
Referenced by add_builtin(), builtins_get(), and init_dependencies().
Definition at line 63 of file gpu_shader_dependency.cc.
Referenced by builtins_get(), and init_dependencies().
| bool blender::gpu::GPUSource::dependencies_init = false |
Definition at line 64 of file gpu_shader_dependency.cc.
Definition at line 62 of file gpu_shader_dependency.cc.
Referenced by add_dependency(), and init_dependencies().
| StringRefNull blender::gpu::GPUSource::filename |
Definition at line 59 of file gpu_shader_dependency.cc.
Referenced by gpu_material_library_use_function(), GPUSource(), and is_from_material_library().
| StringRefNull blender::gpu::GPUSource::fullpath |
Definition at line 58 of file gpu_shader_dependency.cc.
Referenced by GPUSource(), and print_error().
| bool blender::gpu::GPUSource::generated = false |
Definition at line 67 of file gpu_shader_dependency.cc.
| std::string blender::gpu::GPUSource::patched_source |
Definition at line 61 of file gpu_shader_dependency.cc.
| StringRefNull blender::gpu::GPUSource::source |
Definition at line 60 of file gpu_shader_dependency.cc.
Referenced by add_function(), blender::gpu::shader::gpu_shader_dependency_get_source(), GPUSource(), and init_dependencies().