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

#include <GteHLSLShader.h>

Classes

struct  Description
 

Public Member Functions

std::vector< HLSLConstantBuffer > const & GetCBuffers () const
 
std::vector< unsigned char > const & GetCompiledCode () const
 
Description const & GetDescription () const
 
std::string const & GetEntry () const
 
std::vector< HLSLParameter > const & GetInputs () const
 
std::string const & GetName () const
 
unsigned int GetNumXThreads () const
 
unsigned int GetNumYThreads () const
 
unsigned int GetNumZThreads () const
 
std::vector< HLSLParameter > const & GetOutputs () const
 
std::vector< HLSLByteAddressBuffer > const & GetRBuffers () const
 
std::vector< HLSLResourceBindInfo > const & GetResourceBindInfos () const
 
std::vector< HLSLSamplerState > const & GetSamplerStates () const
 
std::vector< HLSLStructuredBuffer > const & GetSBuffers () const
 
int GetShaderTypeIndex () const
 
std::string const & GetTarget () const
 
std::vector< HLSLTextureBuffer > const & GetTBuffers () const
 
std::vector< HLSLTextureArray > const & GetTextureArrays () const
 
std::vector< HLSLTexture > const & GetTextures () const
 
 HLSLShader ()
 
void Insert (HLSLConstantBuffer const &cbuffer)
 
void Insert (HLSLTextureBuffer const &tbuffer)
 
void Insert (HLSLStructuredBuffer const &sbuffer)
 
void Insert (HLSLByteAddressBuffer const &rbuffer)
 
void Insert (HLSLTexture const &texture)
 
void Insert (HLSLTextureArray const &textureArray)
 
void Insert (HLSLSamplerState const &samplerState)
 
void Insert (HLSLResourceBindInfo const &rbinfo)
 
void InsertInput (HLSLParameter const &parameter)
 
void InsertOutput (HLSLParameter const &parameter)
 
bool IsValid () const
 
void Print (std::ofstream &output) const
 
void SetCompiledCode (size_t numBytes, void const *buffer)
 
void SetDescription (D3D_SHADER_DESC const &desc)
 
void SetEntry (std::string const &entry)
 
void SetName (std::string const &name)
 
void SetNumThreads (unsigned int numXThreads, unsigned int numYThreads, unsigned int numZThreads)
 
void SetTarget (std::string const &target)
 

Private Attributes

std::vector< HLSLConstantBuffermCBuffers
 
std::vector< unsigned char > mCompiledCode
 
Description mDesc
 
std::string mEntry
 
std::vector< HLSLParametermInputs
 
std::string mName
 
unsigned int mNumXThreads
 
unsigned int mNumYThreads
 
unsigned int mNumZThreads
 
std::vector< HLSLParametermOutputs
 
std::vector< HLSLResourceBindInfomRBInfos
 
std::vector< HLSLByteAddressBuffermRBuffers
 
std::vector< HLSLSamplerStatemSamplerStates
 
std::vector< HLSLStructuredBuffermSBuffers
 
std::string mTarget
 
std::vector< HLSLTextureBuffermTBuffers
 
std::vector< HLSLTextureArraymTextureArrays
 
std::vector< HLSLTexturemTextures
 

Static Private Attributes

static std::string const msCompileFlags []
 
static std::string const msDomain []
 
static std::string const msOutputPrimitive []
 
static std::string const msPartitioning []
 
static std::string const msPrimitive []
 
static std::string const msPrimitiveTopology []
 
static std::string const msShaderType []
 

Detailed Description

Definition at line 24 of file GteHLSLShader.h.

Constructor & Destructor Documentation

HLSLShader::HLSLShader ( )

Definition at line 17 of file GteHLSLShader.cpp.

Member Function Documentation

std::vector< HLSLConstantBuffer > const & HLSLShader::GetCBuffers ( ) const

Definition at line 202 of file GteHLSLShader.cpp.

std::vector< unsigned char > const & HLSLShader::GetCompiledCode ( ) const

Definition at line 243 of file GteHLSLShader.cpp.

HLSLShader::Description const & HLSLShader::GetDescription ( ) const

Definition at line 154 of file GteHLSLShader.cpp.

std::string const & HLSLShader::GetEntry ( ) const

Definition at line 164 of file GteHLSLShader.cpp.

std::vector< HLSLParameter > const & HLSLShader::GetInputs ( ) const

Definition at line 192 of file GteHLSLShader.cpp.

std::string const & HLSLShader::GetName ( ) const

Definition at line 159 of file GteHLSLShader.cpp.

unsigned int HLSLShader::GetNumXThreads ( ) const

Definition at line 256 of file GteHLSLShader.cpp.

unsigned int HLSLShader::GetNumYThreads ( ) const

Definition at line 261 of file GteHLSLShader.cpp.

unsigned int HLSLShader::GetNumZThreads ( ) const

Definition at line 266 of file GteHLSLShader.cpp.

std::vector< HLSLParameter > const & HLSLShader::GetOutputs ( ) const

Definition at line 197 of file GteHLSLShader.cpp.

std::vector< HLSLByteAddressBuffer > const & HLSLShader::GetRBuffers ( ) const

Definition at line 217 of file GteHLSLShader.cpp.

std::vector< HLSLResourceBindInfo > const & HLSLShader::GetResourceBindInfos ( ) const

Definition at line 237 of file GteHLSLShader.cpp.

std::vector< HLSLSamplerState > const & HLSLShader::GetSamplerStates ( ) const

Definition at line 232 of file GteHLSLShader.cpp.

std::vector< HLSLStructuredBuffer > const & HLSLShader::GetSBuffers ( ) const

Definition at line 212 of file GteHLSLShader.cpp.

int HLSLShader::GetShaderTypeIndex ( ) const

Definition at line 174 of file GteHLSLShader.cpp.

std::string const & HLSLShader::GetTarget ( ) const

Definition at line 169 of file GteHLSLShader.cpp.

std::vector< HLSLTextureBuffer > const & HLSLShader::GetTBuffers ( ) const

Definition at line 207 of file GteHLSLShader.cpp.

std::vector< HLSLTextureArray > const & HLSLShader::GetTextureArrays ( ) const

Definition at line 227 of file GteHLSLShader.cpp.

std::vector< HLSLTexture > const & HLSLShader::GetTextures ( ) const

Definition at line 222 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLConstantBuffer const &  cbuffer)

Definition at line 108 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLTextureBuffer const &  tbuffer)

Definition at line 113 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLStructuredBuffer const &  sbuffer)

Definition at line 118 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLByteAddressBuffer const &  rbuffer)

Definition at line 123 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLTexture const &  texture)

Definition at line 128 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLTextureArray const &  textureArray)

Definition at line 133 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLSamplerState const &  samplerState)

Definition at line 138 of file GteHLSLShader.cpp.

void HLSLShader::Insert ( HLSLResourceBindInfo const &  rbinfo)

Definition at line 143 of file GteHLSLShader.cpp.

void HLSLShader::InsertInput ( HLSLParameter const &  parameter)

Definition at line 98 of file GteHLSLShader.cpp.

void HLSLShader::InsertOutput ( HLSLParameter const &  parameter)

Definition at line 103 of file GteHLSLShader.cpp.

bool HLSLShader::IsValid ( ) const

Definition at line 28 of file GteHLSLShader.cpp.

void HLSLShader::Print ( std::ofstream &  output) const

Definition at line 271 of file GteHLSLShader.cpp.

void HLSLShader::SetCompiledCode ( size_t  numBytes,
void const *  buffer 
)

Definition at line 148 of file GteHLSLShader.cpp.

void HLSLShader::SetDescription ( D3D_SHADER_DESC const &  desc)

Definition at line 34 of file GteHLSLShader.cpp.

void HLSLShader::SetEntry ( std::string const &  entry)

Definition at line 88 of file GteHLSLShader.cpp.

void HLSLShader::SetName ( std::string const &  name)

Definition at line 83 of file GteHLSLShader.cpp.

void HLSLShader::SetNumThreads ( unsigned int  numXThreads,
unsigned int  numYThreads,
unsigned int  numZThreads 
)

Definition at line 248 of file GteHLSLShader.cpp.

void HLSLShader::SetTarget ( std::string const &  target)

Definition at line 93 of file GteHLSLShader.cpp.

Member Data Documentation

std::vector<HLSLConstantBuffer> gte::HLSLShader::mCBuffers
private

Definition at line 155 of file GteHLSLShader.h.

std::vector<unsigned char> gte::HLSLShader::mCompiledCode
private

Definition at line 163 of file GteHLSLShader.h.

Description gte::HLSLShader::mDesc
private

Definition at line 149 of file GteHLSLShader.h.

std::string gte::HLSLShader::mEntry
private

Definition at line 151 of file GteHLSLShader.h.

std::vector<HLSLParameter> gte::HLSLShader::mInputs
private

Definition at line 153 of file GteHLSLShader.h.

std::string gte::HLSLShader::mName
private

Definition at line 150 of file GteHLSLShader.h.

unsigned int gte::HLSLShader::mNumXThreads
private

Definition at line 164 of file GteHLSLShader.h.

unsigned int gte::HLSLShader::mNumYThreads
private

Definition at line 165 of file GteHLSLShader.h.

unsigned int gte::HLSLShader::mNumZThreads
private

Definition at line 166 of file GteHLSLShader.h.

std::vector<HLSLParameter> gte::HLSLShader::mOutputs
private

Definition at line 154 of file GteHLSLShader.h.

std::vector<HLSLResourceBindInfo> gte::HLSLShader::mRBInfos
private

Definition at line 162 of file GteHLSLShader.h.

std::vector<HLSLByteAddressBuffer> gte::HLSLShader::mRBuffers
private

Definition at line 158 of file GteHLSLShader.h.

std::vector<HLSLSamplerState> gte::HLSLShader::mSamplerStates
private

Definition at line 161 of file GteHLSLShader.h.

std::vector<HLSLStructuredBuffer> gte::HLSLShader::mSBuffers
private

Definition at line 157 of file GteHLSLShader.h.

std::string const HLSLShader::msCompileFlags
staticprivate
Initial value:
=
{
"D3DCOMPILE_DEBUG",
"D3DCOMPILE_SKIP_VALIDATION",
"D3DCOMPILE_SKIP_OPTIMIZATION",
"D3DCOMPILE_PACK_MATRIX_ROW_MAJOR",
"D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR",
"D3DCOMPILE_PARTIAL_PRECISION",
"D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT",
"D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT",
"D3DCOMPILE_NO_PRESHADER",
"D3DCOMPILE_AVOID_FLOW_CONTROL",
"D3DCOMPILE_PREFER_FLOW_CONTROL",
"D3DCOMPILE_ENABLE_STRICTNESS",
"D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY",
"D3DCOMPILE_IEEE_STRICTNESS",
"D3DCOMPILE_OPTIMIZATION_LEVEL0",
"D3DCOMPILE_OPTIMIZATION_LEVEL3",
"D3DCOMPILE_RESERVED16",
"D3DCOMPILE_RESERVED17",
"D3DCOMPILE_WARNINGS_ARE_ERRORS",
"D3DCOMPILE_RESOURCES_MAY_ALIAS"
}

Definition at line 170 of file GteHLSLShader.h.

std::string const HLSLShader::msDomain
staticprivate
Initial value:
=
{
"D3D_TESSELLATOR_DOMAIN_UNDEFINED",
"D3D_TESSELLATOR_DOMAIN_ISOLINE",
"D3D_TESSELLATOR_DOMAIN_TRI",
"D3D_TESSELLATOR_DOMAIN_QUAD"
}

Definition at line 175 of file GteHLSLShader.h.

std::string const HLSLShader::msOutputPrimitive
staticprivate
Initial value:
=
{
"D3D_TESSELLATOR_OUTPUT_UNDEFINED",
"D3D_TESSELLATOR_OUTPUT_POINT",
"D3D_TESSELLATOR_OUTPUT_LINE",
"D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW",
"D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW"
}

Definition at line 173 of file GteHLSLShader.h.

std::string const HLSLShader::msPartitioning
staticprivate
Initial value:
=
{
"D3D_TESSELLATOR_PARTITIONING_UNDEFINED",
"D3D_TESSELLATOR_PARTITIONING_INTEGER",
"D3D_TESSELLATOR_PARTITIONING_POW2",
"D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD",
"D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN"
}

Definition at line 174 of file GteHLSLShader.h.

std::string const HLSLShader::msPrimitive
staticprivate

Definition at line 171 of file GteHLSLShader.h.

std::string const HLSLShader::msPrimitiveTopology
staticprivate

Definition at line 172 of file GteHLSLShader.h.

std::string const HLSLShader::msShaderType
staticprivate
Initial value:
=
{
"pixel",
"vertex",
"geometry",
"domain",
"hull",
"compute",
"invalid"
}

Definition at line 169 of file GteHLSLShader.h.

std::string gte::HLSLShader::mTarget
private

Definition at line 152 of file GteHLSLShader.h.

std::vector<HLSLTextureBuffer> gte::HLSLShader::mTBuffers
private

Definition at line 156 of file GteHLSLShader.h.

std::vector<HLSLTextureArray> gte::HLSLShader::mTextureArrays
private

Definition at line 160 of file GteHLSLShader.h.

std::vector<HLSLTexture> gte::HLSLShader::mTextures
private

Definition at line 159 of file GteHLSLShader.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