summaryrefslogtreecommitdiff
path: root/utils/studiomdl/hardwarevertexcache.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/studiomdl/hardwarevertexcache.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/studiomdl/hardwarevertexcache.h')
-rw-r--r--utils/studiomdl/hardwarevertexcache.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/utils/studiomdl/hardwarevertexcache.h b/utils/studiomdl/hardwarevertexcache.h
new file mode 100644
index 0000000..a9eb2a5
--- /dev/null
+++ b/utils/studiomdl/hardwarevertexcache.h
@@ -0,0 +1,32 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef HARDWAREVERTEXCACHE_H
+#define HARDWAREVERTEXCACHE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+// emulate a hardware post T&L vertex fifo
+
+class CHardwareVertexCache
+{
+public:
+ CHardwareVertexCache();
+ void Init( int size );
+ void Insert( int index );
+ bool IsPresent( int index );
+ void Flush( void );
+ void Print( void );
+private:
+ int m_Size;
+ int *m_Fifo;
+ int m_HeadIndex;
+ int m_NumEntries;
+};
+
+#endif // HARDWAREVERTEXCACHE_H