mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 20:50:44 +00:00
A guest command list had no way to bind a texture: GraphicsCommand stopped at vertex and index buffers. This adds the smallest D3D12-shaped binding the translated image_sample_lz pixel stage needs: shader-visible CBV_SRV_UAV and sampler heaps, CreateShaderResourceView for one-level RGBA8 and BC1 2D textures, a point/clamp CreateSampler, a root signature with one pixel-stage SRV table and one sampler table, and SetDescriptorHeaps and SetGraphicsRootDescriptorTable. Everything else fails explicitly before any draw. The native path hands the bound level to a textured backend. NativeCompute::render_rgba8_sampled_bc1 binds a BC1 level natively to fragment texture 0 and sampler 0. The software reference point-samples with clamp addressing. BC1 fixtures use only endpoint colours. Apple's hardware decoder gives 171/84 for the interpolated palette entries where the spec-exact decoder gives 170/85. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>