VTK  9.7.0
vtkOpenGLArrayTextureBufferCache::Entry Struct Reference

A cached texture buffer for one (array, role). More...

#include <vtkOpenGLArrayTextureBufferCache.h>

Collaboration diagram for vtkOpenGLArrayTextureBufferCache::Entry:
[legend]

Public Attributes

vtkSmartPointer< vtkDataArrayArray
 
vtkSmartPointer< vtkTextureObjectTexture
 
vtkSmartPointer< vtkOpenGLBufferObjectBuffer
 
vtkMTimeType UploadTime = 0
 
std::uint64_t LastAccess = 0
 Monotonic stamp of the last GetTextureBuffer() that returned this entry; orders entries least-recently-used-first for budget eviction.
 

Detailed Description

A cached texture buffer for one (array, role).

Texture holds the samplerBuffer (a 2D emulation texture on GLES, a real GL_TEXTURE_BUFFER on desktop); Buffer is the desktop TBO backing store and stays null on GLES, where data is uploaded straight from client memory. UploadTime records the source array's MTime captured at the last upload, so the owning adapter can skip re-uploading until the array changes.

Definition at line 52 of file vtkOpenGLArrayTextureBufferCache.h.

Member Data Documentation

◆ Array

vtkSmartPointer<vtkDataArray> vtkOpenGLArrayTextureBufferCache::Entry::Array

Definition at line 54 of file vtkOpenGLArrayTextureBufferCache.h.

◆ Texture

vtkSmartPointer<vtkTextureObject> vtkOpenGLArrayTextureBufferCache::Entry::Texture

Definition at line 55 of file vtkOpenGLArrayTextureBufferCache.h.

◆ Buffer

vtkSmartPointer<vtkOpenGLBufferObject> vtkOpenGLArrayTextureBufferCache::Entry::Buffer

Definition at line 56 of file vtkOpenGLArrayTextureBufferCache.h.

◆ UploadTime

vtkMTimeType vtkOpenGLArrayTextureBufferCache::Entry::UploadTime = 0

Definition at line 57 of file vtkOpenGLArrayTextureBufferCache.h.

◆ LastAccess

std::uint64_t vtkOpenGLArrayTextureBufferCache::Entry::LastAccess = 0

Monotonic stamp of the last GetTextureBuffer() that returned this entry; orders entries least-recently-used-first for budget eviction.

Definition at line 60 of file vtkOpenGLArrayTextureBufferCache.h.


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