Uploads RGBA bitmap pixels through the caller's thread-owned runtime context.
Validates storage and obtains runtime allocation admission before creating bounded staging chunks. A larger allocation repeats the final payload column and row once, then clears the unused backing. The pixel span is consumed synchronously and is never retained.
- Parameters
-
| device | Logical runtime owner used only from the calling thread during this operation. |
| pixels | Borrowed source storage, valid until this function returns. |
| dimensions | Payload dimensions in pixels. |
| rowBytes | Source byte stride, including any row padding. |
| alphaType | Alpha interpretation retained by the snapshot. |
| allocationDimensions | Backing extent, at least as large as the payload. |
- Returns
- Uploaded snapshot, or null on invalid input or runtime failure. Each call allocates its own texture, so a failed write cannot disturb an allocation the caller already presents.