Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
bgfx_texture_info_data Struct Reference

Data structure used to group together information about a texture. More...

+ Collaboration diagram for bgfx_texture_info_data:

Public Attributes

bitmapbitmap_tag = nullptr
 The bitmap tag that the texture originates from. More...
 
std::string tag_path = ""
 The tag path of the bitmap tag that the texture originates from. More...
 
bgfx::TextureHandle texture
 The bgfx texture data. More...
 
BlamTextureRef array_ref = { BLAM_TEXTURE_REF_INVALID_STORAGE_ID, 0, 0, 0 }
 
bool load_pending = false
 Whether or not the texture is currently pending being loaded. More...
 

Detailed Description

Data structure used to group together information about a texture.

Phase 1 update: now tracks BOTH forms of GPU storage. A texture may have:

  • a raw bgfx::TextureHandle (for custom shaders, forward pass, UI, etc)
  • a BlamTextureRef into array storage (for materials)
  • both (texture is used by both paths)
  • neither yet (tag is loaded but nothing has requested a GPU form)

Each form is created lazily on first request - GetTextureFromTag for the raw handle, GetTextureRefFromTag for the array ref. Both are cached after creation. Both are released when OnBitmapTagUnloading fires.

Member Data Documentation

◆ array_ref

BlamTextureRef bgfx_texture_info_data::array_ref = { BLAM_TEXTURE_REF_INVALID_STORAGE_ID, 0, 0, 0 }

◆ bitmap_tag

bitmap* bgfx_texture_info_data::bitmap_tag = nullptr

The bitmap tag that the texture originates from.

◆ load_pending

bool bgfx_texture_info_data::load_pending = false

Whether or not the texture is currently pending being loaded.

◆ tag_path

std::string bgfx_texture_info_data::tag_path = ""

The tag path of the bitmap tag that the texture originates from.

◆ texture

bgfx::TextureHandle bgfx_texture_info_data::texture

The bgfx texture data.


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