Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://coin3d.github.io
https://www.kongsberg.com/en/kogt/
SoShaderProgramCache Class Reference

The SoShaderProgramCache class is used to cache shader programs. More...

#include <Inventor/caches/SoShaderProgramCache.h>

Inheritance diagram for SoShaderProgramCache:
SoCache

Public Member Functions

 SoShaderProgramCache (SoState *state)
 
virtual ~SoShaderProgramCache ()
 
void set (const SbString &program)
 
const SbStringget (void) const
 
- Public Member Functions inherited from SoCache
 SoCache (SoState *const state)
 
void ref (void)
 
void unref (SoState *state=NULL)
 
void addElement (const SoElement *const elem)
 
virtual void addCacheDependency (const SoState *state, SoCache *cache)
 
virtual SbBool isValid (const SoState *state) const
 
const SoElementgetInvalidElement (const SoState *const state) const
 
void invalidate (void)
 

Additional Inherited Members

- Protected Member Functions inherited from SoCache
virtual void destroy (SoState *state)
 
virtual ~SoCache ()
 

Detailed Description

The SoShaderProgramCache class is used to cache shader programs.

Constructor & Destructor Documentation

◆ SoShaderProgramCache()

SoShaderProgramCache::SoShaderProgramCache ( SoState * state)

Constructor with state being the current state.

◆ ~SoShaderProgramCache()

SoShaderProgramCache::~SoShaderProgramCache ( )
virtual

Destructor.

Member Function Documentation

◆ set()

void SoShaderProgramCache::set ( const SbString & program)

Sets the shader program for this cache.

◆ get()

const SbString & SoShaderProgramCache::get ( void ) const

Returns the shader program for this cache.


The documentation for this class was generated from the following files: