Repository navigation
gameinput: GetTemporalReading stays E_NOTIMPL, as in GameInput v0 (RT-147) - #2239
Conversation
…-147) Microsoft's reference page says IGameInput::GetTemporalReading "was never implemented in v0" and returns E_NOTIMPL, and v1 removed it, so the shim's E_NOTIMPL already matches the API the title was built against. A history lookup would answer what no GameInput runtime does. The v0 header (NuGet Microsoft.GameInput 0.2303.22621.3038) declares (timestamp, device, reading), the shim's layout; the page's five-parameter form doesn't match it. Pin the behaviour in gameinput_test (E_NOTIMPL with the reading cleared, for past, present and current timestamps, with and without a device filter; E_POINTER for a null output) and say so in docs/gameinput.md instead of listing the method as a gap.
|
Tested b9a3cbc on an NVIDIA GeForce RTX 3050 Laptop GPU, driver 32.0.16.2101, Windows 11, native MSVC (VS 2022 Build Tools, Ninja, RelWithDebInfo), with
AI-assisted (Claude Code). |
|
Tested on Windows 11 with two GPUs on one machine (MSVC 14.51, llvm-mc 23.1.6): no regression. RTX 4080 SUPER: 115/116. Not from this PR: |
|
Tested b9a3cbc on Tiger Lake (Xe-LP) iGPU 0x9a78 (subgroup 8..32, no mesh), driver 32.0.101.7088, Windows 11, MSVC 14.44: pass CPU-side change (GameInput shim comment + one test check + docs), no GPU involvement. Built with Full ctest: 100/102 pass, 6 skipped (shader_library_corpus, bink_decode, bink_audio, vk_sync_validation, d3d12_queue_wait, d3d12_rgb9e5_rtv). The 2 failing tests are the pre-existing Intel-main failures this PR cannot touch (comment-only shim change): AI-assisted (GLM, operated by the account owner). |
Item: RT-147 (claim).
Finding: v0 never implemented it
The claim planned a history lookup. Microsoft's reference page for
GetTemporalReadingsays the method "was never implemented in v0" and returnsE_NOTIMPL, and that v1 removed it. The shim is GameInput v0 (gameinput_abi.h), so its currentE_NOTIMPLis already what a title built against v0 gets from Microsoft's runtime. Implementing the lookup would give the title an answer no GameInput gives, so this PR keeps the behaviour and pins it instead.I also checked the ABI. The same page shows a five-parameter signature,
(targetTime, windowSize, inputKind, device, reading). The v0 header in NuGetMicrosoft.GameInput0.2303.22621.3038 (native/include/GameInput.h) declares(timestamp, device, reading), which is the shim's vtable entry. So there's no layout bug; the five-parameter form on the page doesn't match the shipped header.Changes
runtime/shims/gameinput.cpp: a comment at the method saying whyE_NOTIMPLis the intended answer. No behaviour change.runtime/test/gameinput_test.cpp: one check. It expectsE_NOTIMPLwith the reading cleared for a timestamp in the history, one a second before it, and the current time, each with and without a device filter, andE_POINTERfor a null output.docs/gameinput.md: the API table and the "Reading history" note now say it'sE_NOTIMPLas in v0, with the source, instead of listing it as a gap.Tested
Windows 11 (26200), MSVC 19.44 (VS 2022), Ninja RelWithDebInfo with
-DLEONIDA_SDL3_FETCH=ON, sogameinputruns instead of being Disabled. No GPU is involved; the machine has an RTX 3070 Ti, driver 610.88.gameinput_test: 186 checks, 0 failures, including the new one.ctest: 105/105 passed (7 skipped).No game files. AI-assisted (Claude Code).