4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Serialization.Converters;
6 using SiliconStudio.Paradox.Shaders;
8 namespace SiliconStudio.
Paradox.Graphics
10 internal class EffectConverter :
DataConverter<EffectBytecode, Effect>
14 var services = converterContext.Tags.Get(ServiceRegistry.ServiceRegistryKey);
15 var graphicsDeviceService = services.GetSafeServiceAs<IGraphicsDeviceService>();
17 obj =
new Effect(graphicsDeviceService.GraphicsDevice, data);
22 throw new System.NotImplementedException();
Base class for converters to/from a data type.
Contains a compiled shader with bytecode for each stage.