-
Notifications
You must be signed in to change notification settings - Fork 115
/
ICache.cs
44 lines (41 loc) · 1.31 KB
/
ICache.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// -----------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2016-2019 Marcel Koester
// www.ilgpu.net
//
// File: ICache.cs
//
// This file is part of ILGPU and is distributed under the University of
// Illinois Open Source License. See LICENSE.txt for details
// -----------------------------------------------------------------------------
namespace ILGPU
{
/// <summary>
/// Specifies which resources should be removed from the cache.
/// </summary>
public enum ClearCacheMode : int
{
/// <summary>
/// Removes all non-ILGPU objects form the caches.
/// </summary>
Default = 0,
/// <summary>
/// Removes everything from the caches.
/// </summary>
Everything = 1,
}
/// <summary>
/// Represents an object that contains internal caches.
/// </summary>
public interface ICache
{
/// <summary>
/// Clears all internal caches.
/// </summary>
/// <param name="mode">The clear mode.</param>
/// <remarks>
/// Implementations of this method are not guaranteed to be thread-safe.
/// </remarks>
void ClearCache(ClearCacheMode mode);
}
}