From aef5402831523818ba6b0b919c5738c65573193d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 13 Jun 2022 01:35:31 +0900 Subject: [PATCH] internal/graphicsdriver/directx: remove unused function --- internal/graphicsdriver/directx/api_windows.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/graphicsdriver/directx/api_windows.go b/internal/graphicsdriver/directx/api_windows.go index a7cb4c3c8..0a9e28b8d 100644 --- a/internal/graphicsdriver/directx/api_windows.go +++ b/internal/graphicsdriver/directx/api_windows.go @@ -1843,16 +1843,6 @@ func (i *_ID3D12GraphicsCommandList) OMSetStencilRef(stencilRef uint32) { syscall.Syscall(i.vtbl.OMSetStencilRef, 2, uintptr(unsafe.Pointer(i)), uintptr(stencilRef), 0) } -func (i *_ID3D12GraphicsCommandList) QueryInterface(riid *windows.GUID, ppvObject *unsafe.Pointer) error { - r, _, _ := syscall.Syscall(i.vtbl.QueryInterface, 3, uintptr(unsafe.Pointer(i)), - uintptr(unsafe.Pointer(riid)), uintptr(unsafe.Pointer(ppvObject))) - runtime.KeepAlive(riid) - if uint32(r) != uint32(windows.S_OK) { - return fmt.Errorf("directx: ID3D12GraphicsCommandList::QueryInterface failed: HRESULT(%d)", uint32(r)) - } - return nil -} - func (i *_ID3D12GraphicsCommandList) Release() { syscall.Syscall(i.vtbl.Release, 1, uintptr(unsafe.Pointer(i)), 0, 0) }