Files
metal2vulkan/crates
Anees Iqbal 36295733ea harness: textures, sampler states, and two sampling workloads
The harness timed no sampling kernel. Plans now make textures (2D,
RGBA16Float, one level, Private, ShaderRead|ShaderWrite), bind them with
setTexture:atIndex:, and bind sampler states (linear or nearest,
normalized, clamped to the edge) made once per plan. The harness fills
a texture from a Shared buffer and reads one back with its own kernels
(texels_in, texels_out), made only for a plan with a texture, so a
session that runs none makes the pipelines it made before.

Two workloads: sampling, a 2x downsample of a 2048x2048 texture through
a runtime sampler, and constexpr_sampling, a 2x upsample of a 1024x1024
texture through a constexpr sampler; each one sample and one texture
write a thread. Their inputs are sixteenths below 4, so under weights of
halves and quarters every result is exact in half; the CPU reference
allows two last-place steps of a half for the device's own filter and
conversion.

The old runtime runs both. The new runtime makes no texture or sampler
state yet: its texture and sampler types have no value, and both
workloads are typed refusals.
2026-11-17 11:27:28 -08:00
..