UniDx
読み取り中…
検索中…
一致する文字列を見つけられません
UniDx::Shader クラス

シェーダーをコンパイルしてマテリアルの変数レイアウトを保持する [詳解]

#include <Shader.h>

UniDx::Shader の継承関係図
UniDx::Object

公開メンバ関数

 Shader ()
bool compile (const u8string &filePath, const D3D11_INPUT_ELEMENT_DESC *layout, size_t layout_size)
template<typename TVertex>
bool compile (const u8string &filePath)
 頂点タイプをテンプレート引数に、シェーダーのパスを引数に指定してコンパイル
void setToContext () const
const ShaderVarLayoutfindVar (StringId nameId) const
const int getCBPerMaterialSize () const
基底クラス UniDx::Object に属する継承公開メンバ関数
virtual ~Object ()
 Object (ReadOnlyProperty< StringId >::Getter nameGet)

限定公開メンバ関数

void reflectPSLayout (ID3DBlob *psBlob)

限定公開変数類

StringId fileName

その他の継承メンバ

基底クラス UniDx::Object に属する継承公開変数類
ReadOnlyProperty< StringIdname

詳解

シェーダーをコンパイルしてマテリアルの変数レイアウトを保持する

構築子と解体子

◆ Shader()

UniDx::Shader::Shader ( )
inline

関数詳解

◆ compile() [1/2]

template<typename TVertex>
bool UniDx::Shader::compile ( const u8string & filePath)
inline

頂点タイプをテンプレート引数に、シェーダーのパスを引数に指定してコンパイル

◆ compile() [2/2]

bool UniDx::Shader::compile ( const u8string & filePath,
const D3D11_INPUT_ELEMENT_DESC * layout,
size_t layout_size )

◆ findVar()

const ShaderVarLayout * UniDx::Shader::findVar ( StringId nameId) const

◆ getCBPerMaterialSize()

const int UniDx::Shader::getCBPerMaterialSize ( ) const
inline

◆ reflectPSLayout()

void UniDx::Shader::reflectPSLayout ( ID3DBlob * psBlob)
protected

◆ setToContext()

void UniDx::Shader::setToContext ( ) const

メンバ詳解

◆ fileName

StringId UniDx::Shader::fileName
protected

このクラス詳解は次のファイルから抽出されました: