Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::MaterialTextureBinding Struct Reference

A material's bound texture at a sampler unit. More...

#include <MaterialStore.hpp>

Public Attributes

u32 unit = 0
resource::TextureHandle texture

Detailed Description

A material's bound texture at a sampler unit.

Definition at line 89 of file MaterialStore.hpp.

Member Data Documentation

◆ texture

resource::TextureHandle esengine::MaterialTextureBinding::texture

The resource handle, NOT a resolved GPU id. Resolving at bind time is what lets the texture behind it be re-uploaded — by a hot update, or by a device loss — without every material that references it having to be re-bound.

Definition at line 94 of file MaterialStore.hpp.

◆ unit

u32 esengine::MaterialTextureBinding::unit = 0

Definition at line 90 of file MaterialStore.hpp.


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