Dali 3D User Interface Engine
List of all members | Classes | Public Member Functions | Private Attributes
Dali::Internal::Render::UniformNameCache Class Reference

This class maps uniform names to unique indices that can be used to cache the GL uniform index values in programs and only do the costly string lookup once. More...

#include <uniform-name-cache.h>

Collaboration diagram for Dali::Internal::Render::UniformNameCache:
Collaboration graph
[legend]

Classes

struct  UniformEntry
 

Public Member Functions

 UniformNameCache ()
 Constructor. More...
 
 ~UniformNameCache ()
 Destructor. More...
 
int32_t GetSamplerUniformUniqueIndex (const std::string &uniformName)
 This method can be used to query a cache for the unique index for a sampler uniform. More...
 

Private Attributes

OwnerContainer< UniformEntry * > mSamplerUniformCache
 

Detailed Description

This class maps uniform names to unique indices that can be used to cache the GL uniform index values in programs and only do the costly string lookup once.

Definition at line 39 of file uniform-name-cache.h.

Constructor & Destructor Documentation

Dali::Internal::Render::UniformNameCache::UniformNameCache ( )

Constructor.

Definition at line 30 of file uniform-name-cache.cpp.

Dali::Internal::Render::UniformNameCache::~UniformNameCache ( )

Destructor.

Definition at line 33 of file uniform-name-cache.cpp.

Member Function Documentation

int32_t Dali::Internal::Render::UniformNameCache::GetSamplerUniformUniqueIndex ( const std::string &  uniformName)

This method can be used to query a cache for the unique index for a sampler uniform.

Parameters
uniformNameto get the index for
Returns
a unique index for this sampler uniform

Definition at line 37 of file uniform-name-cache.cpp.

References Dali::CalculateHash(), and mSamplerUniformCache.

Referenced by Dali::Internal::Render::Renderer::BindTextures().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

OwnerContainer< UniformEntry* > Dali::Internal::Render::UniformNameCache::mSamplerUniformCache
private

Definition at line 72 of file uniform-name-cache.h.

Referenced by GetSamplerUniformUniqueIndex().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali