Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
gte::HLSLProgramFactory Class Reference

#include <GteHLSLProgramFactory.h>

Inheritance diagram for gte::HLSLProgramFactory:
Inheritance graph
[legend]

Public Member Functions

std::shared_ptr< VisualProgramCreateFromBytecode (std::vector< unsigned char > const &vsBytecode, std::vector< unsigned char > const &psBytecode, std::vector< unsigned char > const &gsBytecode)
 
std::shared_ptr< ComputeProgramCreateFromBytecode (std::vector< unsigned char > const &csBytecode)
 
virtual int GetAPI () const
 
 HLSLProgramFactory ()
 
virtual ~HLSLProgramFactory ()
 
- Public Member Functions inherited from gte::ProgramFactory
std::shared_ptr< ComputeProgramCreateFromFile (std::string const &csFile)
 
std::shared_ptr< VisualProgramCreateFromFiles (std::string const &vsFile, std::string const &psFile, std::string const &gsFile)
 
std::shared_ptr< ComputeProgramCreateFromSource (std::string const &csSource)
 
std::shared_ptr< VisualProgramCreateFromSources (std::string const &vsSource, std::string const &psSource, std::string const &gsSource)
 
void PopDefines ()
 
void PopFlags ()
 
 ProgramFactory ()
 
void PushDefines ()
 
void PushFlags ()
 
virtual ~ProgramFactory ()
 

Static Public Attributes

static std::string defaultCSEntry = "CSMain"
 
static unsigned int defaultFlags
 
static std::string defaultGSEntry = "GSMain"
 
static std::string defaultPSEntry = "PSMain"
 
static std::string defaultVersion = "5_0"
 
static std::string defaultVSEntry = "VSMain"
 

Private Member Functions

virtual std::shared_ptr< ComputeProgramCreateFromNamedSource (std::string const &csName, std::string const &csSource)
 
virtual std::shared_ptr< VisualProgramCreateFromNamedSources (std::string const &vsName, std::string const &vsSource, std::string const &psName, std::string const &psSource, std::string const &gsName, std::string const &gsSource)
 

Additional Inherited Members

- Public Types inherited from gte::ProgramFactory
enum  { PF_GLSL, PF_HLSL, PF_NUM_API }
 
- Static Public Member Functions inherited from gte::ProgramFactory
static std::string GetStringFromFile (std::string const &filename)
 
- Public Attributes inherited from gte::ProgramFactory
std::string csEntry
 
ProgramDefines defines
 
unsigned int flags
 
std::string gsEntry
 
std::string psEntry
 
std::string version
 
std::string vsEntry
 

Detailed Description

Definition at line 15 of file GteHLSLProgramFactory.h.

Constructor & Destructor Documentation

HLSLProgramFactory::~HLSLProgramFactory ( )
virtual

Definition at line 31 of file GteHLSLProgramFactory.cpp.

HLSLProgramFactory::HLSLProgramFactory ( )

Definition at line 35 of file GteHLSLProgramFactory.cpp.

Member Function Documentation

std::shared_ptr< VisualProgram > HLSLProgramFactory::CreateFromBytecode ( std::vector< unsigned char > const &  vsBytecode,
std::vector< unsigned char > const &  psBytecode,
std::vector< unsigned char > const &  gsBytecode 
)

Definition at line 50 of file GteHLSLProgramFactory.cpp.

std::shared_ptr< ComputeProgram > HLSLProgramFactory::CreateFromBytecode ( std::vector< unsigned char > const &  csBytecode)

Definition at line 203 of file GteHLSLProgramFactory.cpp.

std::shared_ptr< ComputeProgram > HLSLProgramFactory::CreateFromNamedSource ( std::string const &  csName,
std::string const &  csSource 
)
privatevirtual

Implements gte::ProgramFactory.

Definition at line 115 of file GteHLSLProgramFactory.cpp.

std::shared_ptr< VisualProgram > HLSLProgramFactory::CreateFromNamedSources ( std::string const &  vsName,
std::string const &  vsSource,
std::string const &  psName,
std::string const &  psSource,
std::string const &  gsName,
std::string const &  gsSource 
)
privatevirtual

Implements gte::ProgramFactory.

Definition at line 141 of file GteHLSLProgramFactory.cpp.

int HLSLProgramFactory::GetAPI ( ) const
virtual

Implements gte::ProgramFactory.

Definition at line 45 of file GteHLSLProgramFactory.cpp.

Member Data Documentation

std::string HLSLProgramFactory::defaultCSEntry = "CSMain"
static

Definition at line 25 of file GteHLSLProgramFactory.h.

unsigned int HLSLProgramFactory::defaultFlags
static
Initial value:
= (
D3DCOMPILE_ENABLE_STRICTNESS |
D3DCOMPILE_IEEE_STRICTNESS |
D3DCOMPILE_OPTIMIZATION_LEVEL3)

Definition at line 26 of file GteHLSLProgramFactory.h.

std::string HLSLProgramFactory::defaultGSEntry = "GSMain"
static

Definition at line 24 of file GteHLSLProgramFactory.h.

std::string HLSLProgramFactory::defaultPSEntry = "PSMain"
static

Definition at line 23 of file GteHLSLProgramFactory.h.

std::string HLSLProgramFactory::defaultVersion = "5_0"
static

Definition at line 21 of file GteHLSLProgramFactory.h.

std::string HLSLProgramFactory::defaultVSEntry = "VSMain"
static

Definition at line 22 of file GteHLSLProgramFactory.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06