[host] removed unused shader view

This commit is contained in:
Geoffrey McRae 2018-07-28 03:25:36 +10:00
parent 3e3c409fc4
commit 2a03d1c4a9
2 changed files with 0 additions and 15 deletions

View File

@ -126,19 +126,6 @@ bool TextureConverter::Initialize(
return false;
}
shaderDesc.Format = texDesc.Format;
shaderDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D;
shaderDesc.Texture2D.MostDetailedMip = 0;
shaderDesc.Texture2D.MipLevels = 1;
result = device->CreateShaderResourceView(m_targetTexture, &shaderDesc, &m_shaderView);
if (FAILED(result))
{
DeInitialize();
DEBUG_ERROR("Failed to create shader resource view");
return false;
}
samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;
samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;
@ -255,7 +242,6 @@ void TextureConverter::DeInitialize()
SafeRelease(&m_samplerState );
SafeRelease(&m_indexBuffer );
SafeRelease(&m_vertexBuffer );
SafeRelease(&m_shaderView );
SafeRelease(&m_renderView );
SafeRelease(&m_targetTexture);
SafeRelease(&m_vertexShader );

View File

@ -57,7 +57,6 @@ private:
ID3D11Texture2DPtr m_targetTexture;
ID3D11RenderTargetViewPtr m_renderView;
ID3D11ShaderResourceViewPtr m_shaderView;
ID3D11InputLayoutPtr m_layout;
ID3D11VertexShaderPtr m_vertexShader;
ID3D11PixelShaderPtr m_pixelShader;