Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GraphicsResourceMap.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 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// Structured returned by <see cref="GraphicsDeviceContext.Map"/>.
9  /// </summary>
10  public struct GraphicsResourceMap
11  {
12  /// <summary>
13  /// Pointer to the data of the <see cref="GraphicsResource"/> being mapped into the CPU memory.
14  /// </summary>
15  /// <remarks>
16  /// If <see cref="GraphicsProfile"/> is set to low, data are aligned to 4 bytes else alignment is 16 bytes.
17  /// </remarks>
18  public IntPtr DataPointer;
19 
20  /// <summary>
21  /// The row pitch, or width, or physical size (in bytes) of the data.
22  /// </summary>
23  public int RowPitch;
24 
25  /// <summary>
26  /// The depth pitch, or width, or physical size (in bytes)of the data.
27  /// </summary>
28  public int DepthPitch;
29  }
30 }
Structured returned by GraphicsDeviceContext.Map.
IntPtr DataPointer
Pointer to the data of the GraphicsResource being mapped into the CPU memory.
int RowPitch
The row pitch, or width, or physical size (in bytes) of the data.
int DepthPitch
The depth pitch, or width, or physical size (in bytes)of the data.