|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inline |
Derive a GpuComputeConfig from a ShaderSpec.
Compiles (or retrieves cached) the shader via ShaderFoundry and packages the result with workgroup size and push constant size. Returns a config with INVALID_SHADER on compilation failure.
Callers use this alongside bindings_from_spec() to configure any concrete GpuExecutionContext subclass without depending on a specific executor type.
Definition at line 100 of file ShaderSpecBinding.hpp.
References MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Portal::Graphics::ShaderFoundry::load_shader(), MayaFlux::Portal::Graphics::ShaderSpec::push_constant_bytes, MayaFlux::Portal::Graphics::ShaderSpec::workgroup_size, and MayaFlux::Portal::Graphics::GpuComputeConfig::workgroup_size.
Referenced by MayaFlux::Yantra::VisionGpuExecutor::config(), MayaFlux::Yantra::ComputationGrammar::RuleBuilder::executes(), and MayaFlux::Yantra::VisionGpuExecutor::run().
Here is the call graph for this function:
Here is the caller graph for this function: