예제 #1
0
 /// <summary>
 ///     Get the eviction priority.
 /// </summary>
 /// <param name="evictionPriority">
 ///     A out parameter to the eviction priority, which determines when a resource can be
 ///     evicted from memory.
 /// </param>
 /// <returns></returns>
 /// <remarks>
 ///     The eviction priority is a memory-management variable that is used by DXGI to determine how to manage overcommitted
 ///     memory.
 ///     Priority levels other than the defined values are used when appropriate. For example, a resource with a priority
 ///     level of 0x78000001 indicates that the resource is slightly above normal.
 /// </remarks>
 public int GetEvictionPriority(out DXGIResourcePriority evictionPriority)
 {
     return(GetMethodDelegate <GetEvictionPriorityDelegate>().Invoke(this, out evictionPriority));
 }
예제 #2
0
 /// <summary>
 ///     Set the priority for evicting the resource from memory.
 /// </summary>
 /// <param name="evictionPriority">The eviction priority.</param>
 /// <returns></returns>
 /// <remarks>
 ///     The eviction priority is a memory-management variable that is used by DXGI for determining how to populate
 ///     overcommitted memory.
 ///     You can set priority levels other than the defined values when appropriate. For example, you can set a resource
 ///     with a priority level of 0x78000001 to indicate that the resource is slightly above normal.
 /// </remarks>
 public int SetEvictionPriority(DXGIResourcePriority evictionPriority)
 {
     return(GetMethodDelegate <SetEvictionPriorityDelegate>().Invoke(this, evictionPriority));
 }