VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGpuArenaUploadState.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 
17 namespace makVrv
18 {
21 
24 
26  template <>
27  inline const char* creatorTypeName<DtGpuArenaUploadState>() { return "DtGpuArenaUploadStateCreator"; }
28 
29 
40  {
41  public:
42 
44 
46  virtual ~DtGpuArenaUploadState();
47 
49  DtGpuArenaUploadState() = delete;
50 
52  DtGpuArenaUploadState& operator=(const DtGpuArenaUploadState& rhs) = delete;
53 
55  DtGpuArenaUploadState(const DtGpuArenaUploadState& rhs) = delete;
56 
57  protected:
58 
61 
62  public:
63 
66  virtual unsigned int uploadMemoryBudget() const;
67  virtual void setUploadMemoryBudget(unsigned int budget);
68 
72  virtual unsigned int uploadedBufferMemory() const;
73  virtual void setUploadedBufferMemory(unsigned int bytes);
74  virtual void addToUploadedBufferMemory(unsigned int bytes);
75 
79  virtual unsigned int uploadedTextureMemory() const;
80  virtual void setUploadedTextureMemory(unsigned int bytes);
81  virtual void addToUploadedTextureMemory(unsigned int bytes);
82 
86  virtual unsigned int objectsRemaining() const;
87  virtual void setObjectsRemaining(unsigned int count);
88  virtual void addToObjectsRemaining(unsigned int count);
89 
92  virtual bool isMemoryBudgetExceeded() const;
93 
94  protected:
95 
96  unsigned int myUploadMemoryBudget;
97  unsigned int myUploadedBufferMemory;
99  unsigned int myObjectsRemaining;
100  };
101 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned int myObjectsRemaining
Definition: DtGpuArenaUploadState.h:99
friend DtGpuArenaUploadStateCreator
Definition: DtGpuArenaUploadState.h:43
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
Manages and tracks memory usage statistics for GPU resource upload operations.
Definition: DtGpuArenaUploadState.h:39
const char * creatorTypeName< DtGpuArenaUploadState >()
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtGpuArenaUploadState.h:27
DtVirtualBaseClassCreator< DtGpuArenaUploadState > DtGpuArenaUploadStateCreator
creator
Definition: DtGpuArenaUploadState.h:20
unsigned int myUploadedTextureMemory
Definition: DtGpuArenaUploadState.h:98
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
unsigned int myUploadMemoryBudget
Definition: DtGpuArenaUploadState.h:96
unsigned int myUploadedBufferMemory
Definition: DtGpuArenaUploadState.h:97

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)