Files
metal2vulkan/docs
Anees Iqbal b573e68c11 rt: a Direct3D 11 plane's texture is made by one function of an explicit usage and format list
What: import_d3d11_surface derives every plane's usage and list first (d3d11_plane_form, from
the bind flags and the descriptor, its refusals before any plane is made), then makes each plane's
texture through d3d11_plane_texture(plane, usage, list, unit): the image of the plane's format
with that usage, mutable over that list where it is not empty, imported, bound, and the texture
over it under the plane's descriptor at its index. A plane's error drops the textures made before
it, which frees their images. A test can call the same function with other values, so a cell can
make an image the old way over the same Direct3D 11 texture and read it beside the import's,
with nothing of the old form in product code. docs/REFUSALS.md names the new site functions.

Docs: a plane is viewed in place in the image's own format, the descriptor's and the descriptor's
sRGB sibling. A view in another format has no in-place form on the import
(Gap::TextureView of SurfacePixelFormat), and the consumer takes the copy form of the same call
for it, a counted copy of the plane: the README's plane paragraph and a new entry in the known
gaps of memory blocks say so.

Correction to d310504408: it says the import never receives a view in another format. The
consumer does view a drawn plane (PixelFormatView) on the import itself in any format the guest
asks (surface_shapes.rs:233 and 247-257), so the narrow list does refuse views a guest reaches.
The ruling: the narrow list stays, and the consumer routes a texture over a drawn plane viewed in
another format to its counted copy shape.

Still owed on the same principle: the chroma's uint/unorm pair (R16_UINT under RG8Unorm, R32_UINT
under RG16Unorm) is the one reliance left past the texture Direct3D 11 made, besides the sRGB
sibling and the feedback usage. It is its own row, behind the diagnostic, and goes once the
consumer makes chroma R8G8_UNORM or R16G16_UNORM.

How verified: refusal_surface.py --check passes here. The Windows cross-build, the runtime's
checks, and the device run on the lab's Windows host (red at the parent, green here) are reported
with their job ids to the lander.
2026-11-23 21:13:22 -08:00
..