mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 15:49:57 -04:00
Check the texture pool's set against the device's descriptor limits, and name the slot a carried translation reads.
The larger pool asks for 655,360 sampled images in one set where 524,288 were asked before. The start now logs the device's limits for one set and one stage next to that count, warns when the count is over them, and a refused layout ends the start with the limits named instead of a bare failure. The log line for a slot registered past the pool names both slots a shader reads instead: the pool's last entry, and the last of the old length for a translation carried over from the translator before. The comments say what they say without an issue number. The translator's identity changes with this pool size: after the update every install translates its shaders again in the background, the earlier translations serve meanwhile, and a shader gets the ground fix once it is translated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ static class SwshXlate
|
||||
// GenerateBindlessAccess): arrays of TexturePoolLength textures (handle bits 0-19) and SamplerPoolLength samplers
|
||||
// (bits 20-31; NVN sampler ids are below 4096). res.json marks them "pool": 1 (textures) / 2 (samplers); the
|
||||
// runtime binds them from its global pool set (vk_exec_draw.c, texture and sampler pools).
|
||||
// TexturePoolLength: the runtime's VK_POOL_TEX (vk.h), past Ocarina's pool of 33068 descriptors (#569).
|
||||
// TexturePoolLength: the runtime's VK_POOL_TEX (vk.h), past Ocarina's pool of 33068 descriptors.
|
||||
public const int TexturePoolLength = 40960, SamplerPoolLength = 4096;
|
||||
public int QuerySamplerArrayLengthFromPool() => SamplerPoolLength;
|
||||
public int QueryTextureArrayLengthFromBuffer(int slot) => 32;
|
||||
|
||||
Reference in New Issue
Block a user