HatchitGraphics
Public Member Functions | List of all members
Hatchit::Graphics::RootLayout Class Reference
Inheritance diagram for Hatchit::Graphics::RootLayout:

Public Member Functions

 RootLayout (Core::Guid ID)
 
RootLayoutBase *const GetBase () const
 Gets a pointer to the RootLayoutBase that this class wraps. More...
 
bool Initialize (const std::string &file)
 Initialize a RootLayout with the GPUResourcePool. More...
 

Member Function Documentation

RootLayoutBase *const Hatchit::Graphics::RootLayout::GetBase ( ) const

Gets a pointer to the RootLayoutBase that this class wraps.

Returns
A pointer to the RootLayoutBaseObject that this object is wrapping
bool Hatchit::Graphics::RootLayout::Initialize ( const std::string &  file)

Initialize a RootLayout with the GPUResourcePool.

This initialization step takes place on the GPUResourceThread but LOCKS the main thread. An InitializeAsync method should be used for asynchronous requests. If the pool is already in use we will assume that the request is made inside the thread and the RootLayout will be created immediately.

Parameters
fileThe file path to the shader we want to load from disk
Returns
A boolean representing whether or not this operation succeeded

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