Files
metal2vulkan/crates
Anees Iqbal 4786da9503 rt test: a heap makes texture buffers in place at offsets 0, 16 and 4096 (red)
A guest's viewer asks heapTextureSizeAndAlignWithDescriptor: of a texture-buffer descriptor and
makes the texture in a heap. rt refuses both with Refusal::TextureBufferNotOverBuffer.

The test asks for what Metal does on an Apple M3 Max (m3-max-80369 and m3-max-80398):
- a 4-texel R32Uint texture buffer is sized 16 bytes at an alignment of 16;
- a Shared and a Private heap make it at offsets 0, 16 and 4096;
- it reads the bytes a buffer placed at the same offset wrote, because placement keeps a reused
  region's bytes;
- tb_atomic adds 3 to each texel, and the sums land in place, linear, in the heap's bytes, with
  the sentinels past them unchanged.

Red here: heap_texture_size_and_align refuses the descriptor.
2026-12-02 16:24:50 -08:00
..