3 using System.Collections.Concurrent;
5 using SiliconStudio.Assets.Compiler;
6 using SiliconStudio.BuildEngine;
7 using SiliconStudio.Core;
8 using SiliconStudio.Core.IO;
9 using SiliconStudio.Paradox.Effects;
11 namespace SiliconStudio.
Paradox.Assets.Effect
22 var url = EffectSystem.DefaultSourceShaderFolder +
"/" + Path.GetFileName(assetAbsolutePath);
24 var originalSourcePath = asset.AbsoluteSourceLocation;
26 var shaderLocations = (ConcurrentDictionary<string, string>)context.
Properties.GetOrAdd(ShaderLocationsKey, key =>
new ConcurrentDictionary<string, string>());
29 shaderLocations[url] = originalSourcePath;
Result of a compilation of assets when using IAssetCompiler.Compile
Describes a shader effect asset (pdxsl).
Entry point to compile an EffectCompositorAsset
The context used when compiling an asset in a Package.
PropertyCollection Properties
Gets the attributes attached to this context.
override void Compile(AssetCompilerContext context, string urlInStorage, UFile assetAbsolutePath, EffectShaderAsset asset, AssetCompilerResult result)
A class that represents a tag propety.
Defines a normalized file path. See UPath for details. This class cannot be inherited.