Wasabi
Public Member Functions | Static Public Member Functions | List of all members
WGBufferVS Class Reference
Inheritance diagram for WGBufferVS:
WShader WFileAsset WBase

Public Member Functions

 WGBufferVS (class Wasabi *const app)
 
virtual void Load (bool bSaveData=false)
 
- Public Member Functions inherited from WShader
virtual std::string GetTypeName () const override
 
virtual void SetID (uint32_t newID) override
 
virtual void SetName (std::string newName) override
 
 WShader (class Wasabi *const app, uint32_t ID=0)
 
virtual bool Valid () const override
 
virtual WError SaveToStream (WFile *file, std::ostream &outputStream) override
 
virtual WError LoadFromStream (WFile *file, std::istream &inputStream, std::vector< void * > &args, std::string nameSuffix) override
 
- Public Member Functions inherited from WFileAsset
 WFileAsset (class Wasabi *const app, uint32_t ID=0)
 
virtual WError LoadFromStream (class WFile *file, std::istream &inputStream, vector< void * > &args, std::string nameSuffix)=0
 
- Public Member Functions inherited from WBase
 WBase (class Wasabi *const app, uint32_t ID=0)
 
uint32_t GetID () const
 
std::string GetName () const
 
class WasabiGetAppPtr () const
 
void AddReference ()
 
void RemoveReference ()
 

Static Public Member Functions

static W_SHADER_DESC GetDesc ()
 
- Static Public Member Functions inherited from WShader
static std::string _GetTypeName ()
 
static std::vector< void * > LoadArgs (bool bSaveData=false)
 

Additional Inherited Members

- Protected Member Functions inherited from WShader
void LoadCodeSPIRV (const char *const code, int len, bool bSaveData=false)
 
void LoadCodeGLSL (std::string code, bool bSaveData=false)
 
void LoadCodeSPIRVFromFile (std::string filename, bool bSaveData=false)
 
void LoadCodeGLSLFromFile (std::string filename, bool bSaveData=false)
 
- Protected Attributes inherited from WShader
W_SHADER_DESC m_desc
 
VkShaderModule m_module
 
- Protected Attributes inherited from WBase
class Wasabim_app
 
uint32_t m_ID
 
std::string m_name
 

Member Function Documentation

◆ Load()

virtual void WGBufferVS::Load ( bool  bSaveData = false)
virtual

Loads the shader into this object. This function must be implemented by a child class. The implemented function must fill in m_module and m_desc protected members to fully define the shader. See WShader for example usage.

Parameters
bSaveDataWhether or not to save the code data to be able to write it to a file later

Reimplemented from WShader.


The documentation for this class was generated from the following file: