KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GAL_MODERN::BITMAP_CACHE_ENTRY Struct Reference

GPU texture per bitmap, keyed on the image KIID so redrawing reuses the upload. More...

Public Attributes

RHI_TextureHandle texture
 
size_t bytes = 0
 texture memory, which can be less than the image takes
 
uint64_t lastUse = 0
 use counter for LRU eviction
 
uint32_t groupRefs = 0
 quads of cached groups drawing this texture
 
std::array< uint64_t, 2 > contentHash {}
 

Detailed Description

GPU texture per bitmap, keyed on the image KIID so redrawing reuses the upload.

The texture is the original image, which keeps its KIID only while its pixels are unchanged.

Definition at line 836 of file gal_modern.h.

Member Data Documentation

◆ bytes

size_t KIGFX::GAL_MODERN::BITMAP_CACHE_ENTRY::bytes = 0

texture memory, which can be less than the image takes

Definition at line 839 of file gal_modern.h.

Referenced by KIGFX::GAL_MODERN::DrawBitmap().

◆ contentHash

std::array<uint64_t, 2> KIGFX::GAL_MODERN::BITMAP_CACHE_ENTRY::contentHash {}

Definition at line 842 of file gal_modern.h.

Referenced by KIGFX::GAL_MODERN::DrawBitmap().

◆ groupRefs

uint32_t KIGFX::GAL_MODERN::BITMAP_CACHE_ENTRY::groupRefs = 0

quads of cached groups drawing this texture

Definition at line 841 of file gal_modern.h.

◆ lastUse

uint64_t KIGFX::GAL_MODERN::BITMAP_CACHE_ENTRY::lastUse = 0

use counter for LRU eviction

Definition at line 840 of file gal_modern.h.

Referenced by KIGFX::GAL_MODERN::DrawBitmap().

◆ texture

RHI_TextureHandle KIGFX::GAL_MODERN::BITMAP_CACHE_ENTRY::texture

Definition at line 838 of file gal_modern.h.

Referenced by KIGFX::GAL_MODERN::DrawBitmap().


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