Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TextureHandle Struct Reference

Generation-tagged reference to a bindless texture slot (mirror of GeometryHandle). More...

#include <GPUScene.hpp>

Public Member Functions

bool IsValid () const
 

Public Attributes

uint32_t index {~0u}
 
uint32_t generation {0}
 
bool is3D {false}
 

Detailed Description

Generation-tagged reference to a bindless texture slot (mirror of GeometryHandle).

Note
CPU-only. Foundation is the shader-facing bindless slot within its pool; is3D selects the 2D vs 3D bindless pool (the two have independent slot spaces); generation lets GPUScene::Query catch a freed/recycled slot. Pass to GPUScene::Upload / Query; feed the shader uint32 fields with Foundation.

Member Function Documentation

◆ IsValid()

bool TextureHandle::IsValid ( ) const
inline

Member Data Documentation

◆ generation

uint32_t TextureHandle::generation {0}

◆ index

uint32_t TextureHandle::index {~0u}

◆ is3D

bool TextureHandle::is3D {false}

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