diag(windows-nui): log all INuiFrameTexture methods to detect vtable-order mismatch
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python root tests (pytest, no tracker deps) (push) Canceled after 0s
ci / Python tracker (pytest, tracker/.venv) (push) Canceled after 0s

This commit is contained in:
kinect-bot committed 2026-11-25 16:37:03 -05:00
1 parent 7ab73ef1c0
commit 4209340387
1 file changed
+21
@@ -53,10 +53,21 @@ ULONG STDMETHODCALLTYPE NuiFrameTexture::Release() {
}
int STDMETHODCALLTYPE NuiFrameTexture::BufferLen() {
static unsigned n = 0;
if (n < 8) {
ShimLog("tex BufferLen -> %d (%ux%u bpp=%u)", static_cast<int>(bits_.size()),
width_, height_, bytes_per_pixel_);
}
++n;
return static_cast<int>(bits_.size());
}
int STDMETHODCALLTYPE NuiFrameTexture::Pitch() {
static unsigned n = 0;
if (n < 8) {
ShimLog("tex Pitch -> %d", static_cast<int>(width_ * bytes_per_pixel_));
}
++n;
return static_cast<int>(width_ * bytes_per_pixel_);
}
@@ -84,6 +95,11 @@ HRESULT STDMETHODCALLTYPE NuiFrameTexture::LockRect(UINT Level,
HRESULT STDMETHODCALLTYPE NuiFrameTexture::GetLevelDesc(UINT Level,
NUI_SURFACE_DESC* pDesc) {
static unsigned n = 0;
if (n < 8) {
ShimLog("tex GetLevelDesc level=%u", Level);
}
++n;
if (pDesc == nullptr) {
return E_POINTER;
}
@@ -96,6 +112,11 @@ HRESULT STDMETHODCALLTYPE NuiFrameTexture::GetLevelDesc(UINT Level,
}
HRESULT STDMETHODCALLTYPE NuiFrameTexture::UnlockRect(UINT Level) {
static unsigned n = 0;
if (n < 8) {
ShimLog("tex UnlockRect level=%u", Level);
}
++n;
return Level == 0 ? S_OK : E_INVALIDARG;
}