mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-13 01:38:20 +00:00
[host] removed unused shader view
This commit is contained in:
parent
3e3c409fc4
commit
2a03d1c4a9
@ -126,19 +126,6 @@ bool TextureConverter::Initialize(
|
|||||||
return false;
|
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.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
|
||||||
samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;
|
samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;
|
||||||
samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;
|
samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;
|
||||||
@ -255,7 +242,6 @@ void TextureConverter::DeInitialize()
|
|||||||
SafeRelease(&m_samplerState );
|
SafeRelease(&m_samplerState );
|
||||||
SafeRelease(&m_indexBuffer );
|
SafeRelease(&m_indexBuffer );
|
||||||
SafeRelease(&m_vertexBuffer );
|
SafeRelease(&m_vertexBuffer );
|
||||||
SafeRelease(&m_shaderView );
|
|
||||||
SafeRelease(&m_renderView );
|
SafeRelease(&m_renderView );
|
||||||
SafeRelease(&m_targetTexture);
|
SafeRelease(&m_targetTexture);
|
||||||
SafeRelease(&m_vertexShader );
|
SafeRelease(&m_vertexShader );
|
||||||
|
@ -57,7 +57,6 @@ private:
|
|||||||
|
|
||||||
ID3D11Texture2DPtr m_targetTexture;
|
ID3D11Texture2DPtr m_targetTexture;
|
||||||
ID3D11RenderTargetViewPtr m_renderView;
|
ID3D11RenderTargetViewPtr m_renderView;
|
||||||
ID3D11ShaderResourceViewPtr m_shaderView;
|
|
||||||
ID3D11InputLayoutPtr m_layout;
|
ID3D11InputLayoutPtr m_layout;
|
||||||
ID3D11VertexShaderPtr m_vertexShader;
|
ID3D11VertexShaderPtr m_vertexShader;
|
||||||
ID3D11PixelShaderPtr m_pixelShader;
|
ID3D11PixelShaderPtr m_pixelShader;
|
||||||
|
Loading…
Reference in New Issue
Block a user