baseShaderLibrary top-level property
ShaderLibrary
get
baseShaderLibrary
Implementation
gpu.ShaderLibrary get baseShaderLibrary {
if (_baseShaderLibrary != null) {
return _baseShaderLibrary!;
}
_baseShaderLibrary = gpu.ShaderLibrary.fromAsset(_kBaseShaderBundlePath);
if (_baseShaderLibrary != null) {
return _baseShaderLibrary!;
}
throw Exception(
"Failed to load base shader bundle! ($_kBaseShaderBundlePath)");
}