Panda3D
 All Classes Functions Variables Enumerations
bufferResidencyTracker.I
1 // Filename: bufferResidencyTracker.I
2 // Created by: drose (16Mar06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: BufferResidencyTracker::get_inactive_nonresident
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE BufferContextChain &BufferResidencyTracker::
22 get_inactive_nonresident() {
23  return _chains[S_inactive_nonresident];
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: BufferResidencyTracker::get_active_nonresident
28 // Access: Public
29 // Description:
30 ////////////////////////////////////////////////////////////////////
31 INLINE BufferContextChain &BufferResidencyTracker::
32 get_active_nonresident() {
33  return _chains[S_active_nonresident];
34 }
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: BufferResidencyTracker::get_inactive_resident
38 // Access: Public
39 // Description:
40 ////////////////////////////////////////////////////////////////////
41 INLINE BufferContextChain &BufferResidencyTracker::
42 get_inactive_resident() {
43  return _chains[S_inactive_resident];
44 }
45 
46 ////////////////////////////////////////////////////////////////////
47 // Function: BufferResidencyTracker::get_active_resident
48 // Access: Public
49 // Description:
50 ////////////////////////////////////////////////////////////////////
51 INLINE BufferContextChain &BufferResidencyTracker::
52 get_active_resident() {
53  return _chains[S_active_resident];
54 }
This class maintains a linked list of BufferContexts that might be allocated on the graphics card in ...