MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ detect_source_type()

ShaderFoundry::DetectedSourceType MayaFlux::Portal::Graphics::ShaderFoundry::detect_source_type ( const std::string &  content) const
private

Definition at line 524 of file ShaderFoundry.cpp.

525{
526 auto resolved_path = resolve_shader_path(content);
527
528 if (resolved_path.has_value()) {
529 std::string ext = resolved_path->extension().string();
530 std::ranges::transform(ext, ext.begin(), ::tolower);
531
532 if (ext == ".spv") {
534 }
535
537 }
538
539 if (content.size() > 1024 || content.find('\n') != std::string::npos) {
541 }
542
544}
std::optional< std::filesystem::path > resolve_shader_path(const std::string &filepath) const

References FILE_GLSL, FILE_SPIRV, resolve_shader_path(), and SOURCE_STRING.

Referenced by load_shader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: