Lines Matching refs:SRV
65 SafeRelease(cache[i].srv);
75 return cache[i].srv;
82 ID3D11ShaderResourceView *TextureStorage11::SRVCache::add(const SRVKey &key, ID3D11ShaderResourceView *srv)
84 SRVPair pair = {key, srv};
87 return srv;
209 ID3D11ShaderResourceView *srv = srvCache.find(key);
211 if(srv)
213 return srv;
219 srv = createSRV(samplerState.baseLevel, mipLevels, format, texture);
221 return srvCache.add(key, srv);
394 ID3D11ShaderResourceView *srv = swapchain->getRenderTargetShaderResource();
396 srv->GetDesc(&srvDesc);
510 ID3D11ShaderResourceView *srv = getSRVLevel(level);
511 if (!srv)
534 mRenderTarget[level] = new RenderTarget11(mRenderer, rtv, mTexture, srv, getLevelWidth(level), getLevelHeight(level), 1);
554 SafeRelease(srv);
559 mRenderTarget[level] = new RenderTarget11(mRenderer, dsv, mTexture, srv, getLevelWidth(level), getLevelHeight(level), 1);
586 ID3D11ShaderResourceView *SRV = NULL;
589 HRESULT result = device->CreateShaderResourceView(texture, &srvDesc, &SRV);
597 return SRV;
792 ID3D11ShaderResourceView *srv;
793 result = device->CreateShaderResourceView(mTexture, &srvDesc, &srv);
815 SafeRelease(srv);
820 mRenderTarget[faceIndex][level] = new RenderTarget11(mRenderer, rtv, mTexture, srv, getLevelWidth(level), getLevelHeight(level), 1);
824 SafeRelease(srv);
841 SafeRelease(srv);
846 mRenderTarget[faceIndex][level] = new RenderTarget11(mRenderer, dsv, mTexture, srv, getLevelWidth(level), getLevelHeight(level), 1);
850 SafeRelease(srv);
890 ID3D11ShaderResourceView *SRV = NULL;
893 HRESULT result = device->CreateShaderResourceView(texture, &srvDesc, &SRV);
901 return SRV;
1093 ID3D11ShaderResourceView *SRV = NULL;
1096 HRESULT result = device->CreateShaderResourceView(texture, &srvDesc, &SRV);
1104 return SRV;
1113 ID3D11ShaderResourceView *srv = getSRVLevel(mipLevel);
1114 if (!srv)
1135 SafeRelease(srv);
1140 mLevelRenderTargets[mipLevel] = new RenderTarget11(mRenderer, rtv, mTexture, srv, getLevelWidth(mipLevel), getLevelHeight(mipLevel), getLevelDepth(mipLevel));
1169 // TODO, what kind of SRV is expected here?
1170 ID3D11ShaderResourceView *srv = NULL;
1186 SafeRelease(srv);
1191 mLevelLayerRenderTargets[key] = new RenderTarget11(mRenderer, rtv, mTexture, srv, getLevelWidth(mipLevel), getLevelHeight(mipLevel), 1);
1195 SafeRelease(srv);
1401 ID3D11ShaderResourceView *SRV = NULL;
1404 HRESULT result = device->CreateShaderResourceView(texture, &srvDesc, &SRV);
1412 return SRV;
1433 ID3D11ShaderResourceView *srv;
1434 result = device->CreateShaderResourceView(mTexture, &srvDesc, &srv);
1456 SafeRelease(srv);
1461 mRenderTargets[key] = new RenderTarget11(mRenderer, rtv, mTexture, srv, getLevelWidth(mipLevel), getLevelHeight(mipLevel), 1);
1465 SafeRelease(srv);