Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SpriteEffect.Extensions.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System.IO;
4 using SiliconStudio.Core.Serialization;
5 using SiliconStudio.Paradox.Shaders;
6 
7 namespace SiliconStudio.Paradox.Graphics
8 {
9  internal partial class SpriteEffect
10  {
11  private static EffectBytecode bytecode = null;
12 
13  public static EffectBytecode Bytecode
14  {
15  get
16  {
17  return bytecode ?? (bytecode = BinarySerialization.Read<EffectBytecode>(binaryBytecode));
18  }
19  }
20  }
21 }
Contains a compiled shader with bytecode for each stage.