![]() |
VR-Forces 4.10 Class Documentation
|

Classes | |
| class | LoadingJob |
Public Member Functions | |
| virtual | ~DtIndirectTextureProcessor () |
| destructor More... | |
| virtual void | launchTextureLoadsIfNecessary (DtOsgRenderer *renderer) |
| called by cull thread and pager threads to starts the job in the main thread if there is anything to load More... | |
| virtual void | ts_addTexturesToLoad (int beforeTextureIndex, int afterTextureIndex, OsgTexturesArray &textures) |
| adds textures myWorkMutex is used as a guard internally. More... | |
| virtual void | ts_addTextureToLoad (osg::Texture *texture) |
| thread safe function for adding a single osg texture to the list of textures to load. More... | |
| virtual unsigned int | streamTexturesToGpu (const osg::RenderInfo &renderInfo) |
| Called by jobs system job to actually send the texture data down. More... | |
| virtual unsigned int | texturesUpdatedFrameNum () const |
| gets the last frame that the textures were updated in More... | |
| virtual int | numTexturesRemaining () const |
| get the number of textures that are still needing to be loaded or in the process of loading. More... | |
| virtual void | releaseGLObjects (osg::State *state) const |
| release internal gl data. More... | |
| virtual bool | ts_setCompressionDisabledHint (osg::Image *image, bool val) const |
| utility function for setting the uservalue on the image for disabling compression More... | |
| virtual bool | ts_compressionDisabledHint (osg::Image *image) const |
| utility function for getting the uservalue on the image for disabling compression More... | |
| virtual void | stopWork () |
| stops the texture loading job More... | |
| virtual int | numTexturesToLoad () const |
| helps figure out if there's still work to do returns the number of textures yet to load More... | |
| virtual int | numTexturesLoading () const |
| helps figure out if there's still work to do returns the number of textures still loading More... | |
| virtual bool | texureFailed (osg::Texture *texture) const |
| check to see if a particular texture falied to load. More... | |
| virtual bool | inJobQueue () const |
| is texture processor still running in the main thread job system? More... | |
| virtual boost::condition_variable & | waitCondition () |
| used as sync point between CDB background pagers and indirect system More... | |
| virtual bool | inTextureToGCMap (const osg::GraphicsContext *graphicsContext, osg::Texture::TextureObject *textureObject) const |
| Check if we have already added a texture object to our list of textures object by graphics context if we have already added then return true. More... | |
| virtual void | makeTexturesResidentIfNeeded (const osg::RenderInfo &renderInfo) const |
| makes textures ready for bindless. More... | |
| virtual void | setTextureLoadTimeSlicePeriod (float period) |
| Set the time slice period/budget to load textures per tick (in seconds). More... | |
| virtual float | textureLoadTimeSlicePeriod (void) const |
Public Attributes | |
| friend | DtIndirectTextureProcessorCreator |
| The creator class needs to be a friend so it can create this class. More... | |
Protected Types | |
| typedef std::set< osg::ref_ptr < osg::Texture > > | SetTextures |
Protected Member Functions | |
| DtIndirectTextureProcessor (DtDe &de) | |
| CTOR. More... | |
| virtual void | addTexturesToLoad (const DtIndirectGeometryTextures *osgGeometryTextures) |
| Add the DtIndirectGeometryTextures to the list of textures to load. Called by ts_addTexturesToLoad. More... | |
| virtual void | addTextureToLoad (osg::Texture *texture) |
| adds an individual texture to the queue More... | |
| virtual osg::Operation * | createJob () |
| creates a job for the main thread to run More... | |
| virtual void | printStats (void) const |
| for debugging. More... | |
Protected Attributes | |
| SetTextures | myMutableTexturesToLoad |
| SetTextures | myMutableTexturesLoading |
| SetTextures | myMutableTexturesLoaded |
| SetTextures | myMutableTexturesFailed |
| float | myTextureLoadTimeSlicePeriod |
| time slice period to load textures More... | |
| tbb::atomic< bool > | myInJobQueue |
| unsigned int | myTexturesUpdatedFrameNum |
| unsigned int | myLastFrameNumber |
| DtMeifConverter | myImageCompressor |
| bool | myStopWork |
| OpenThreads::Mutex | myWorkMutex |
| boost::condition_variable | myWaitCondition |
| DtIndirectTextureResidencyManager * | myTextureResidencyManager |
| handle residency, textures as contexts get created/destroyed More... | |
| DtDe & | myDe |
Private Member Functions | |
| DtIndirectTextureProcessor ()=delete | |
| cannot create without DtDe More... | |
| DtIndirectTextureProcessor (const DtIndirectTextureProcessor &other)=delete | |
| Copy Constructor not implemented – Copy Not Allowed. More... | |
| DtIndirectTextureProcessor & | operator= (const DtIndirectTextureProcessor &other) |
| Assignment Operator Not implemented – Assignment Not Allowed. More... | |
|
protected |
|
virtual |
destructor
|
protected |
CTOR.
|
privatedelete |
cannot create without DtDe
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
private |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
called by cull thread and pager threads to starts the job in the main thread if there is anything to load
|
virtual |
adds textures myWorkMutex is used as a guard internally.
|
virtual |
thread safe function for adding a single osg texture to the list of textures to load.
|
virtual |
Called by jobs system job to actually send the texture data down.
gets the last frame that the textures were updated in
|
virtual |
get the number of textures that are still needing to be loaded or in the process of loading.
|
virtual |
release internal gl data.
|
virtual |
utility function for setting the uservalue on the image for disabling compression
|
virtual |
utility function for getting the uservalue on the image for disabling compression
|
virtual |
stops the texture loading job
|
virtual |
helps figure out if there's still work to do returns the number of textures yet to load
|
virtual |
helps figure out if there's still work to do returns the number of textures still loading
|
virtual |
check to see if a particular texture falied to load.
|
virtual |
is texture processor still running in the main thread job system?
|
virtual |
used as sync point between CDB background pagers and indirect system
|
virtual |
Check if we have already added a texture object to our list of textures object by graphics context if we have already added then return true.
|
virtual |
makes textures ready for bindless.
|
virtual |
Set the time slice period/budget to load textures per tick (in seconds).
Textures are loaded in incrementally in time slices. In a tick, if the time taken to load texture(s) exceeds the time slice period/budget, the remainder textures are loaded in the subsequent ticks (again in time slices). Default value is 2ms (0.002 seconds)
|
virtual |
|
protectedvirtual |
Add the DtIndirectGeometryTextures to the list of textures to load. Called by ts_addTexturesToLoad.
|
protectedvirtual |
adds an individual texture to the queue
|
protectedvirtual |
creates a job for the main thread to run
|
protectedvirtual |
for debugging.
print textures to load, loading loaded, failed
| friend makVrv::DtIndirectTextureProcessor::DtIndirectTextureProcessorCreator |
The creator class needs to be a friend so it can create this class.
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
time slice period to load textures
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
handle residency, textures as contexts get created/destroyed
|
protected |