I've been getting this debug info error in the output window of VS 2013.
D3D11 ERROR: ID3D11DeviceContext::DrawIndexed: The Shader Resource View dimension declared in the shader code (TEXTURE2D) does not match the view type bound to slot 1 of the Pixel Shader unit (TEXTURECUBE). This mismatch is invalid if the shader actually uses the view (e.g. it is not skipped due to shader code branching). [ EXECUTION ERROR #354: DEVICE_DRAW_VIEW_DIMENSION_MISMATCH]
The cubemap is created at 256 x 256. I have diffuse, normal, specular, parallax bound to slot 0 and if there is a reflection map (Cube map) then i have it bounded to slot 1.
Mesh draw call:
ID3D11ShaderResourceView *textures[3] = { diffusemap.getShaderResourceView(), normalMap.getShaderResourceView(), displacementMap.getShaderResourceView() };
canvas->getDeviceContext()->PSSetShaderResources(0, 3, textures);
additionalSRV = reflectionMap.getShaderResourceView();
if (additionalSRV)
canvas->getDeviceContext()->PSSetShaderResources(1, 1, &additionalSRV);
Why would the debug info give me this error?