ezEngine  Milestone 7
ezGALShaderByteCode Class Reference

This class wraps shader byte code storage. Since byte code can have different requirements for alignment, padding etc. this class manages it. Also since byte code is shared between multiple shaders (e.g. same vertex shaders for different pixel shaders) the instances of the byte codes are reference counted. More...

#include <ShaderByteCode.h>

Inheritance diagram for ezGALShaderByteCode:

Public Member Functions

 ezGALShaderByteCode (const ezArrayPtr< const ezUInt8 > &pByteCode)
 
 ezGALShaderByteCode (const void *pSource, ezUInt32 uiSize)
 
const void * GetByteCode () const
 
ezUInt32 GetSize () const
 
bool IsValid () const
 
- Public Member Functions inherited from ezRefCounted
 ezRefCounted ()
 Constructor.
 
 ezRefCounted (const ezRefCounted &rhs)
 
void operator= (const ezRefCounted &rhs)
 
void AddRef ()
 Increments the reference counter.
 
void ReleaseRef ()
 Decrements the reference counter.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
ezInt32 GetRefCount () const
 Returns the current reference count.
 

Protected Member Functions

void CopyFrom (const ezArrayPtr< const ezUInt8 > &pByteCode)
 

Protected Attributes

ezDynamicArray< ezUInt8 > m_Source
 

Detailed Description

This class wraps shader byte code storage. Since byte code can have different requirements for alignment, padding etc. this class manages it. Also since byte code is shared between multiple shaders (e.g. same vertex shaders for different pixel shaders) the instances of the byte codes are reference counted.


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