Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ShaderConstantBufferDescription.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.Diagnostics;
4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Serialization;
6 
7 namespace SiliconStudio.Paradox.Shaders
8 {
9  /// <summary>
10  /// Description of a constant buffer.
11  /// </summary>
12  [DataContract]
13  [DebuggerDisplay("[{Stage}] cbuffer {Name} : {Size} bytes")]
15  {
16  /// <summary>
17  /// The name of this constant buffer.
18  /// </summary>
19  public string Name;
20 
21  /// <summary>
22  /// The size in bytes.
23  /// </summary>
24  public int Size;
25 
26  /// <summary>
27  /// The type of constant buffer.
28  /// </summary>
30 
31  /// <summary>
32  /// The stage from where this constant buffer is used.
33  /// </summary>
35 
36  /// <summary>
37  /// The members of this constant buffer.
38  /// </summary>
40  }
41 }
Describes a shader parameter for a valuetype (usually stored in constant buffers).
ShaderStage Stage
The stage from where this constant buffer is used.
ConstantBufferType
Describes the type of constant buffer.
EffectParameterValueData[] Members
The members of this constant buffer.
ShaderStage
Enum to specify shader stage.
Definition: ShaderStage.cs:12