Berserk
Public Member Functions | Public Attributes | List of all members
GLVaoKey Class Reference

Key of vertex array object in the cache. More...

#include <GLVaoCache.hpp>

Collaboration diagram for GLVaoKey:
Collaboration graph
[legend]

Public Member Functions

void Setup (const GLVaoDescriptor &descriptor)
 Initialize key from descriptor. More...
 
bool operator== (const GLVaoKey &other) const
 Fast compare op. More...
 

Public Attributes

std::array< Ref< RHIVertexBuffer >, RHILimits::MAX_VERTEX_BUFFERSbuffers
 
Ref< RHIIndexBufferindices
 
Ref< RHIVertexDeclarationdeclaration
 
Crc32Hash hash
 

Detailed Description

Key of vertex array object in the cache.

Member Function Documentation

◆ operator==()

bool GLVaoKey::operator== ( const GLVaoKey other) const
inline

Fast compare op.

◆ Setup()

void GLVaoKey::Setup ( const GLVaoDescriptor descriptor)
inline

Initialize key from descriptor.

Member Data Documentation

◆ buffers

std::array<Ref<RHIVertexBuffer>, RHILimits::MAX_VERTEX_BUFFERS> GLVaoKey::buffers

◆ declaration

Ref<RHIVertexDeclaration> GLVaoKey::declaration

◆ hash

Crc32Hash GLVaoKey::hash

◆ indices

Ref<RHIIndexBuffer> GLVaoKey::indices

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