Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Shader.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 SiliconStudio.Paradox.Shaders;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  public partial class Shader : GraphicsResourceBase
8  {
9  internal ShaderStage stage;
10 
11  public static Shader New(GraphicsDevice device, ShaderStage shaderStage, byte[] shaderBytecode)
12  {
13  return new Shader(device, shaderStage, shaderBytecode);
14  }
15  }
16 }
Performs primitive-based rendering, creates resources, handles system-level variables, adjusts gamma ramp levels, and creates shaders. See The+GraphicsDevice+class to learn more about the class.
static Shader New(GraphicsDevice device, ShaderStage shaderStage, byte[] shaderBytecode)
Definition: Shader.cs:11
ShaderStage
Enum to specify shader stage.
Definition: ShaderStage.cs:12