PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/Microsoft.Research.Visualization3D/VertexStructures/Vertex.cs

#
C# | 23 lines | 20 code | 3 blank | 0 comment | 0 complexity | 25784789465297dce7f902ff7bd99231 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Runtime.InteropServices;
 6using SlimDX;
 7using SlimDX.Direct3D9;
 8
 9namespace Microsoft.Research.Visualization3D.VertexStructures
10{
11    [StructLayout(LayoutKind.Sequential)]
12    struct Vertex
13    {
14        [VertexStructures.VertexElement(DeclarationType.Float3, DeclarationUsage.Position)]
15        public Vector3 Position;
16
17        public static int SizeInBytes
18        {
19            get { return Marshal.SizeOf(typeof(Vertex)); }
20        }
21
22    }
23}