NAP
Public Member Functions | Public Attributes | List of all members
TypedBufferBindingNumeric< T > Class Template Reference

#include <bufferbinding.h>

Public Member Functions

virtual bool init (utility::ErrorState &errorState)
 
- Public Member Functions inherited from BufferBindingNumeric
const GPUBufferNumericgetBuffer () const
 
- Public Member Functions inherited from BufferBinding
virtual int getCount () const
 
virtual size_t getSize () const
 
const GPUBuffergetBuffer () const
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

rtti::ObjectPtr< TypedGPUBufferNumeric< T > > mBuffer = nullptr
 
- Public Attributes inherited from BufferBinding
std::string mName
 Property: 'Name' name of buffer binding uniform in shader. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Protected Attributes inherited from BufferBinding
const GPUBuffermBuffer = nullptr
 

Description

template<typename T>
class nap::TypedBufferBindingNumeric< T >

Specific numeric value type of buffer binding, for example: VertexBufferFloat binds to BufferBindingFloat.

Inheritance diagram for TypedBufferBindingNumeric< T >:
[legend]
Collaboration diagram for TypedBufferBindingNumeric< T >:
[legend]

Member Function Documentation

◆ init()

bool init ( utility::ErrorState errorState)
virtual

Ensures the buffer is set

Parameters
errorStatecontains the error if the binding can't be initialized
Returns
if the binding initialized

Reimplemented from BufferBindingNumeric.

Member Data Documentation

◆ mBuffer

rtti::ObjectPtr<TypedGPUBufferNumeric<T> > mBuffer = nullptr