Sleeping Wombat GUI  0.100
swGUI
MockVertexShader.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 
6 namespace sw
7 {
8 
9 
13 {
15 private:
16 protected:
18 public:
20 
21  virtual bool ReloadFromFile () override;
22  virtual bool ReloadFromBinFile () override;
23  virtual void SaveShaderBinFile ( const std::wstring& fileName ) override;
24 
25  static MockVertexShader* CreateFromFile ( const std::wstring& fileName, const std::string& shaderName, const char* shaderModel = "vs_4_0" );
26  static MockVertexShader* CreateFromFile ( const std::wstring& fileName,
27  const std::string& shaderName,
28  ShaderInputLayout** layout,
29  InputLayoutDescriptor* layout_desc,
30  const char* shaderModel = "vs_4_0" );
31  static MockVertexShader* CreateFromBinFile ( const std::wstring& fileName, const std::string& shaderName, const char* shaderModel = "vs_4_0" );
32 
33  void SetFileName ( const std::wstring& fileName ) { m_shaderFile = fileName; }
34  void SetShaderName ( const std::string& shaderName ) { m_shaderEntry = shaderName; }
35 };
36 
37 } // sw
static MockVertexShader * CreateFromFile(const std::wstring &fileName, const std::string &shaderName, const char *shaderModel="vs_4_0")
Tworzy obiekt MockVertexShader na podstawie pliku.
Definition: MockVertexShader.cpp:57
Klasa przechowuje opis layoutu wierzchołka, na podstawie którego tworzony jest obiekt layoutu...
Definition: MeshResources.h:352
RTTR_ENABLE(VertexShader)
MockVertexShader()
Definition: MockVertexShader.cpp:23
Definition: DirectInputModule.cpp:11
std::wstring m_shaderFile
Ścieżka do pliku z shaderem.
Definition: IShader.h:21
virtual bool ReloadFromBinFile() override
Definition: MockVertexShader.cpp:36
Mock vertex shader implementation.
Definition: MockVertexShader.h:12
Plik zawiera deklaracje formatów wierzchołków oraz klas zawierających assety shadery itp...
void SetShaderName(const std::string &shaderName)
Definition: MockVertexShader.h:34
void SetFileName(const std::wstring &fileName)
Definition: MockVertexShader.h:33
Klasa przechowuje layout wierzchołka trafiającego do vertex shadera.
Definition: MeshResources.h:334
virtual bool ReloadFromFile() override
Definition: MockVertexShader.cpp:30
virtual void SaveShaderBinFile(const std::wstring &fileName) override
Definition: MockVertexShader.cpp:42
Klasa przechowująca vertex shader.
Definition: MeshResources.h:387
std::string m_shaderEntry
Nazwa głownej funkcji shadera.
Definition: IShader.h:20
~MockVertexShader()
Definition: MockVertexShader.cpp:26
static MockVertexShader * CreateFromBinFile(const std::wstring &fileName, const std::string &shaderName, const char *shaderModel="vs_4_0")
Definition: MockVertexShader.cpp:88