Nebula
Loading...
Searching...
No Matches
Vulkan::VkInstanceServer Class Reference

#include <vkinstanceserver.h>

Inherits Base::InstanceServerBase.

Public Member Functions

 VkInstanceServer ()
 constructor
 
virtual ~VkInstanceServer ()
 destructor
 
bool Open ()
 opens server
 
void Close ()
 close server
 
void Render (IndexT frameIndex)
 render
 
- Public Member Functions inherited from Base::InstanceServerBase
 InstanceServerBase ()
 constructor
 
virtual ~InstanceServerBase ()
 destructor
 
bool IsOpen () const
 return if InstanceServerBase is open
 
void BeginInstancing (const Ptr< Models::ModelNode > &modelNode, const SizeT multiplier, const Ptr< CoreGraphics::Shader > &shader, const IndexT &pass)
 begins adding model instances to server
 
void AddInstance (const IndexT &instanceCode, const Ptr< Models::ModelNodeInstance > &instance)
 adds instance to current model
 
void EndInstancing ()
 ends adding model instances
 
- Public Member Functions inherited from Core::RefCounted
 RefCounted ()
 constructor
 
int GetRefCount () const
 get the current refcount
 
void AddRef ()
 increment refcount by one
 
void Release ()
 decrement refcount and destroy object if refcount is zero
 
bool IsInstanceOf (const Rtti &rtti) const
 return true if this object is instance of given class
 
bool IsInstanceOf (const Util::String &className) const
 return true if this object is instance of given class by string
 
bool IsInstanceOf (const Util::FourCC &classFourCC) const
 return true if this object is instance of given class by fourcc
 
bool IsA (const Rtti &rtti) const
 return true if this object is instance of given class, or a derived class
 
bool IsA (const Util::String &rttiName) const
 return true if this object is instance of given class, or a derived class, by string
 
bool IsA (const Util::FourCC &rttiFourCC) const
 return true if this object is instance of given class, or a derived class, by fourcc
 
const Util::StringGetClassName () const
 get the class name
 
Util::FourCC GetClassFourCC () const
 get the class FourCC code
 

Private Member Functions

 __DeclareSingleton (VkInstanceServer)
 
 __DeclareClass (VkInstanceServer)
 

Private Attributes

CoreGraphics::ShaderFeature::Mask instancingFeatureBits
 

Additional Inherited Members

- Static Public Member Functions inherited from Core::RefCounted
static void DumpRefCountingLeaks ()
 dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!)
 
- Protected Member Functions inherited from Core::RefCounted
virtual ~RefCounted ()
 destructor (called when refcount reaches zero)
 
- Protected Attributes inherited from Base::InstanceServerBase
IndexT pass
 
Ptr< CoreGraphics::Shader > shader
 
Ptr< Instancing::InstanceRendererrenderer
 
Ptr< Models::ModelNodemodelNode
 
Util::Dictionary< IndexT, Util::Array< Ptr< Models::ModelNodeInstance > > > instancesByCode
 
bool isBeginInstancing
 
bool isOpen
 
SizeT multiplier
 

Constructor & Destructor Documentation

◆ VkInstanceServer()

Vulkan::VkInstanceServer::VkInstanceServer ( )

constructor

◆ ~VkInstanceServer()

Vulkan::VkInstanceServer::~VkInstanceServer ( )
virtual

destructor

Member Function Documentation

◆ __DeclareClass()

Vulkan::VkInstanceServer::__DeclareClass ( VkInstanceServer )
private

◆ __DeclareSingleton()

Vulkan::VkInstanceServer::__DeclareSingleton ( VkInstanceServer )
private

◆ Close()

void Vulkan::VkInstanceServer::Close ( )
virtual

close server

Reimplemented from Base::InstanceServerBase.

◆ Open()

bool Vulkan::VkInstanceServer::Open ( )
virtual

opens server

Reimplemented from Base::InstanceServerBase.

◆ Render()

void Vulkan::VkInstanceServer::Render ( IndexT frameIndex)
virtual

render

Reimplemented from Base::InstanceServerBase.

Member Data Documentation

◆ instancingFeatureBits

CoreGraphics::ShaderFeature::Mask Vulkan::VkInstanceServer::instancingFeatureBits
private

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