Exemplo n.º 1
0
 /// <summary>
 ///     Get a struct to the data contained in the surface, and deny GPU access to the surface.
 /// </summary>
 /// <param name="mappedRect">A ref to the surface data (see <seealso cref="DXGIMappedRect" />).</param>
 /// <param name="flags">CPU read-write flags. These flags can be combined with a logical OR.</param>
 /// <returns></returns>
 /// <remarks>
 ///     Use <seealso cref="IDXGISurface.Map" /> to access a surface from the CPU. To release a mapped surface (and allow
 ///     GPU access) call <seealso cref="IDXGISurface.UnMap" />.
 /// </remarks>
 public int Map(ref DXGIMappedRect mappedRect, DXGIMap flags)
 {
     return(GetMethodDelegate <MapDelegate>().Invoke(this, ref mappedRect, flags));
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Provides the CPU with efficient access to a desktop image if that desktop image is already in system memory.
 /// </summary>
 /// <param name="lockedRect">
 ///     A reference to a <seealso cref="DXGIMappedRect" /> structure that receives the surface data that
 ///     the CPU needs to directly access the surface data.
 /// </param>
 /// <returns></returns>
 public int MapDesktopSurface(ref DXGIMappedRect lockedRect)
 {
     return(GetMethodDelegate <DXGIMapDesktopSurfaceDelegate>()
            .Invoke(this, ref lockedRect));
 }