MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetMirrorTextureBufferDX

Function ovr_GetMirrorTextureBufferDX

Revive/REV_CAPI_D3D.cpp:97–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetMirrorTextureBufferDX(ovrSession session,
98 ovrMirrorTexture mirrorTexture,
99 IID iid,
100 void** out_Buffer)
101{
102 REV_TRACE(ovr_GetMirrorTextureBufferDX);
103
104 if (!session)
105 return ovrError_InvalidSession;
106
107 if (!mirrorTexture || !out_Buffer)
108 return ovrError_InvalidParameter;
109
110 TextureD3D* texture = dynamic_cast<TextureD3D*>(mirrorTexture->Texture.get());
111 if (!texture)
112 return ovrError_InvalidParameter;
113
114 HRESULT hr = texture->Texture()->QueryInterface(iid, out_Buffer);
115 if (FAILED(hr))
116 return ovrError_InvalidParameter;
117
118 return ovrSuccess;
119}

Callers

nothing calls this directly

Calls 1

TextureMethod · 0.80

Tested by

no test coverage detected