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

#include <GteHLSLShaderFactory.h>

Static Public Member Functions

static HLSLShader CreateFromBytecode (std::string const &name, std::string const &entry, std::string const &target, size_t numBytes, unsigned char const *bytecode)
 
static HLSLShader CreateFromFile (std::string const &filename, std::string const &entry, std::string const &target, ProgramDefines const &defines, unsigned int compileFlags)
 
static HLSLShader CreateFromString (std::string const &name, std::string const &source, std::string const &entry, std::string const &target, ProgramDefines const &defines, unsigned int compileFlags)
 

Static Private Member Functions

static HLSLShader CompileAndReflect (std::string const &name, std::string const &source, std::string const &entry, std::string const &target, ProgramDefines const &defines, unsigned int compileFlags)
 
static ID3DBlob * CompileShader (std::string const &name, std::string const &source, std::string const &entry, std::string const &target, unsigned int compileFlags, ProgramDefines const &defines)
 
static bool GetBoundResources (ID3DShaderReflection *reflector, HLSLShader &shader)
 
static bool GetCBuffers (ID3DShaderReflection *reflector, HLSLShader &shader)
 
static bool GetDescription (ID3DShaderReflection *reflector, HLSLShader &shader)
 
static bool GetInputs (ID3DShaderReflection *reflector, HLSLShader &shader)
 
static bool GetOutputs (ID3DShaderReflection *reflector, HLSLShader &shader)
 
static bool GetTypes (ID3DShaderReflectionType *rtype, unsigned int numMembers, HLSLShaderType &stype)
 
static bool GetVariables (ID3DShaderReflectionConstantBuffer *cbuffer, unsigned int numVariables, std::vector< HLSLBaseBuffer::Member > &members)
 
static bool IsTextureArray (D3D_SRV_DIMENSION dim)
 
static bool ReflectShader (std::string const &name, std::string const &entry, std::string const &target, ID3DBlob *compiledCode, HLSLShader &shader)
 
static void WriteLog (std::string const &message)
 

Detailed Description

Definition at line 16 of file GteHLSLShaderFactory.h.

Member Function Documentation

HLSLShader HLSLShaderFactory::CompileAndReflect ( std::string const &  name,
std::string const &  source,
std::string const &  entry,
std::string const &  target,
ProgramDefines const &  defines,
unsigned int  compileFlags 
)
staticprivate

Definition at line 71 of file GteHLSLShaderFactory.cpp.

ID3DBlob * HLSLShaderFactory::CompileShader ( std::string const &  name,
std::string const &  source,
std::string const &  entry,
std::string const &  target,
unsigned int  compileFlags,
ProgramDefines const &  defines 
)
staticprivate

Definition at line 103 of file GteHLSLShaderFactory.cpp.

HLSLShader HLSLShaderFactory::CreateFromBytecode ( std::string const &  name,
std::string const &  entry,
std::string const &  target,
size_t  numBytes,
unsigned char const *  bytecode 
)
static

Definition at line 44 of file GteHLSLShaderFactory.cpp.

HLSLShader HLSLShaderFactory::CreateFromFile ( std::string const &  filename,
std::string const &  entry,
std::string const &  target,
ProgramDefines const &  defines,
unsigned int  compileFlags 
)
static

Definition at line 14 of file GteHLSLShaderFactory.cpp.

HLSLShader HLSLShaderFactory::CreateFromString ( std::string const &  name,
std::string const &  source,
std::string const &  entry,
std::string const &  target,
ProgramDefines const &  defines,
unsigned int  compileFlags 
)
static

Definition at line 37 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::GetBoundResources ( ID3DShaderReflection reflector,
HLSLShader shader 
)
staticprivate

Definition at line 393 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::GetCBuffers ( ID3DShaderReflection reflector,
HLSLShader shader 
)
staticprivate

Definition at line 298 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::GetDescription ( ID3DShaderReflection reflector,
HLSLShader shader 
)
staticprivate

Definition at line 249 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::GetInputs ( ID3DShaderReflection reflector,
HLSLShader shader 
)
staticprivate

Definition at line 262 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::GetOutputs ( ID3DShaderReflection reflector,
HLSLShader shader 
)
staticprivate

Definition at line 280 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::GetTypes ( ID3DShaderReflectionType rtype,
unsigned int  numMembers,
HLSLShaderType stype 
)
staticprivate

Definition at line 553 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::GetVariables ( ID3DShaderReflectionConstantBuffer cbuffer,
unsigned int  numVariables,
std::vector< HLSLBaseBuffer::Member > &  members 
)
staticprivate

Definition at line 508 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::IsTextureArray ( D3D_SRV_DIMENSION  dim)
staticprivate

Definition at line 576 of file GteHLSLShaderFactory.cpp.

bool HLSLShaderFactory::ReflectShader ( std::string const &  name,
std::string const &  entry,
std::string const &  target,
ID3DBlob *  compiledCode,
HLSLShader shader 
)
staticprivate

Definition at line 207 of file GteHLSLShaderFactory.cpp.

void HLSLShaderFactory::WriteLog ( std::string const &  message)
staticprivate

Definition at line 585 of file GteHLSLShaderFactory.cpp.


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