MayaFlux 0.4.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 398 of file ShaderFoundry.cpp.

399{
400 auto resolved_path = resolve_shader_path(content);
401
402 if (resolved_path.has_value()) {
403 std::string ext = resolved_path->extension().string();
404 std::ranges::transform(ext, ext.begin(), ::tolower);
405
406 if (ext == ".spv") {
408 }
409
411 }
412
413 if (content.size() > 1024 || content.find('\n') != std::string::npos) {
415 }
416
418}
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: