Skip to main content

BINDLESS_POOL_SIZE

Constant BINDLESS_POOL_SIZE 

Source
pub const BINDLESS_POOL_SIZE: usize = 1024;
Expand description

Slots in the bindless texture pool. The shader’s POOL_SIZE define is injected from this value, so the array and the descriptor binding cannot drift.

Matches Metal’s BINDLESS_TEXTURE_COUNT. A world with more textures than this has its pool indices clamped into range, so an over-cap index samples a valid texture rather than reading past the array.