Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IndexBufferBinding.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;
4 using SiliconStudio.Core.Serialization.Converters;
5 
6 namespace SiliconStudio.Paradox.Graphics
7 {
8  [DataConverter(AutoGenerate = true, CustomConvertFromData = true)]
9  public class IndexBufferBinding
10  {
11  public IndexBufferBinding(Buffer indexBuffer, bool is32Bit, int count, int indexOffset = 0)
12  {
13  if (indexBuffer == null) throw new ArgumentNullException("indexBuffer");
14  Buffer = indexBuffer;
15  Is32Bit = is32Bit;
16  Offset = indexOffset;
17  Count = count;
18  }
19 
20  [DataMemberConvert]
21  public Buffer Buffer { get; private set; }
22  [DataMemberConvert]
23  public bool Is32Bit { get; private set; }
24  [DataMemberConvert]
25  public int Offset { get; private set; }
26 
27  [DataMemberConvert]
28  public int Count { get; private set; }
29  }
30 }
Base class for converters to/from a data type.
All-in-One Buffer class linked SharpDX.Direct3D11.Buffer.
_In_ size_t count
Definition: DirectXTexP.h:174
IndexBufferBinding(Buffer indexBuffer, bool is32Bit, int count, int indexOffset=0)