![]() |
LLGL 0.05 Beta
|
Hardware buffer interface. More...
#include <Buffer.h>
Public Member Functions | |
| ResourceType | GetResourceType () const override final |
| Returns ResourceType::Buffer. | |
| long | GetBindFlags () const |
| Returns the binding flags this buffer was created with. | |
| virtual BufferDescriptor | GetDesc () const =0 |
| Queries a descriptor of this buffer. | |
| Public Member Functions inherited from LLGL::Resource | |
| virtual bool | GetNativeHandle (void *nativeHandle, std::size_t nativeHandleSize)=0 |
| Returns the native resource handle. | |
| Public Member Functions inherited from LLGL::RenderSystemChild | |
| virtual void | SetDebugName (const char *name) |
| Sets the name of this class instance for debugging purposes. | |
| Public Member Functions inherited from LLGL::Interface | |
| virtual bool | IsInstanceOf (int id) const |
| Returns true if this object is an instance of the specified interface. | |
| Public Member Functions inherited from LLGL::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| virtual | ~NonCopyable ()=default |
Protected Member Functions | |
| Buffer (long bindFlags) | |
| Protected Member Functions inherited from LLGL::NonCopyable | |
| NonCopyable ()=default | |
Hardware buffer interface.
|
protected |
|
inline |
Returns the binding flags this buffer was created with.
|
pure virtual |
Queries a descriptor of this buffer.
size bindFlags cpuAccessFlags miscFlags vertexAttribs etc.) cannot be queried by this function. Those attributes are set to the default value specified in BufferDescriptor. cpuAccessFlags etc.) are not necessarily the same that were specified when the resource was created. They reflect the capabilities of the actual hardware buffer. For example, a buffer created with CPUAccessFlags::Read might return CPUAccessFlags::ReadWrite, if the renderer backend does not distinguish between different CPU access flags.
|
finaloverridevirtual |
Returns ResourceType::Buffer.
Implements LLGL::Resource.