VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlTextureUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 #include <map>
13 
14 namespace makVrv
15 {
18  {
19  public:
20  typedef std::map<unsigned int, int> TexIDToCount;
21  typedef std::map<void*, TexIDToCount> ContextToTexID;
22 
23  private:
25  DtGLTextureUtils() = delete;
27  DtGLTextureUtils(const DtGLTextureUtils&) = delete;
29  DtGLTextureUtils& operator=(const DtGLTextureUtils&) = delete;
31  virtual ~DtGLTextureUtils() = delete;
32  public:
34  static void makeResidentIfNecessary(void* gContext, GLuint textureID);
35 
39  static bool makeNonResidentIfNecessary(void* gContext, GLuint textureID, bool canDelete);
40 
42  static GLuint64 gpuTextureAddress(GLuint textureID);
43 
45  static bool isTexture(GLuint textureID);
46 
47  protected:
50  };
51 }
Dll export defines.
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:17
std::map< unsigned int, int > TexIDToCount
Definition: DtGlTextureUtils.h:20
static ContextToTexID theTextureCountByContext
Definition: DtGlTextureUtils.h:48
helper class to handle texture residency
Definition: DtGlTextureUtils.h:17
static TexIDToCount theTextureCountAcrossContexts
Definition: DtGlTextureUtils.h:49
std::map< void *, TexIDToCount > ContextToTexID
Definition: DtGlTextureUtils.h:21
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)