MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / SaveTextureToFile

Method SaveTextureToFile

src/utilities/viewer-d3d11.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void D3D11Renderer::SaveTextureToFile(
82 SHM::IPCClientTexture* texture,
83 const std::filesystem::path& path) {
84 check_hresult(DirectX::SaveDDSTextureToFile(
85 mD3D11ImmediateContext.get(),
86 reinterpret_cast<SHM::D3D11::Texture*>(texture)->GetD3D11Texture(),
87 path.wstring().c_str()));
88}
89
90}// namespace OpenKneeboard::Viewer

Callers

nothing calls this directly

Calls 3

check_hresultFunction · 0.85
GetD3D11TextureMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected