| 78 | } |
| 79 | |
| 80 | HRESULT WINAPI HookCreateShaderResourceView( |
| 81 | ID3D11Device *This, |
| 82 | ID3D11Resource *pResource, |
| 83 | const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, |
| 84 | ID3D11ShaderResourceView **ppSRView) |
| 85 | { |
| 86 | D3D11_SHADER_RESOURCE_VIEW_DESC desc; |
| 87 | UINT size = (UINT)sizeof(desc); |
| 88 | if (pResource && SUCCEEDED(pResource->GetPrivateData(RXR_SRV_DESC, &size, &desc))) |
| 89 | { |
| 90 | if (pDesc) |
| 91 | { |
| 92 | DXGI_FORMAT format = desc.Format; |
| 93 | desc = *pDesc; |
| 94 | desc.Format = format; |
| 95 | } |
| 96 | return TrueCreateShaderResourceView(This, pResource, &desc, ppSRView); |
| 97 | } |
| 98 | |
| 99 | return TrueCreateShaderResourceView(This, pResource, pDesc, ppSRView); |
| 100 | } |
| 101 | |
| 102 | HRESULT WINAPI HookCreateRenderTargetView12( |
| 103 | ID3D12Device* This, |
nothing calls this directly
no outgoing calls
no test coverage detected