MayaFlux 0.3.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 394 of file ShaderFoundry.cpp.

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