Sleeping Wombat GUI  0.100
swGUI
MockPixelShader.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 
6 
7 namespace sw
8 {
9 
10 
14 {
16 private:
17 protected:
19 public:
21 
22 
23 
24  virtual bool ReloadFromFile () override;
25  virtual bool ReloadFromBinFile () override;
26  virtual void SaveShaderBinFile ( const std::wstring& fileName ) override;
27 
28  static MockPixelShader* CreateFromFile ( const std::wstring& fileName, const std::string& shaderName, const char* shaderModel = "vs_4_0" );
29  static MockPixelShader* CreateFromBinFile ( const std::wstring& fileName, const std::string& shaderName, const char* shaderModel = "vs_4_0" );
30 
31  void SetFileName ( const std::wstring& fileName ) { m_shaderFile = fileName; }
32  void SetShaderName ( const std::string& shaderName ) { m_shaderEntry = shaderName; }
33 };
34 
35 } // sw
~MockPixelShader()
Definition: MockPixelShader.cpp:34
Definition: DirectInputModule.cpp:11
std::wstring m_shaderFile
Ścieżka do pliku z shaderem.
Definition: IShader.h:21
Klasa przechowująca pixel shader.
Definition: MeshResources.h:408
Plik zawiera deklaracje formatów wierzchołków oraz klas zawierających assety shadery itp...
MockPixelShader()
Definition: MockPixelShader.cpp:30
virtual bool ReloadFromFile() override
Definition: MockPixelShader.cpp:38
virtual bool ReloadFromBinFile() override
Definition: MockPixelShader.cpp:45
void SetShaderName(const std::string &shaderName)
Definition: MockPixelShader.h:32
Definition: MockPixelShader.h:13
void SetFileName(const std::wstring &fileName)
Definition: MockPixelShader.h:31
std::string m_shaderEntry
Nazwa głownej funkcji shadera.
Definition: IShader.h:20
RTTR_ENABLE(PixelShader)
virtual void SaveShaderBinFile(const std::wstring &fileName) override
Definition: MockPixelShader.cpp:52
static MockPixelShader * CreateFromFile(const std::wstring &fileName, const std::string &shaderName, const char *shaderModel="vs_4_0")
Definition: MockPixelShader.cpp:59
static MockPixelShader * CreateFromBinFile(const std::wstring &fileName, const std::string &shaderName, const char *shaderModel="vs_4_0")
Definition: MockPixelShader.cpp:65