Prof-Butts / xwa_ddraw_d3d11

Direct3D 11 implementation of DDraw.dll for XWA with VR support and New Shaders
MIT License
6 stars 4 forks source link

Fix D3D11 error and remove unnecessary draw calls from Bloom in VR #102

Closed morallo closed 4 months ago

morallo commented 5 months ago

DirectX debug layer error when entering into the hangar:

12:05:08:758 D3D11 ERROR: ID3D11DeviceContext::DrawIndexed: Input Assembler - Vertex Shader linkage error: Signatures between stages are incompatible. Semantic 'POSITION' has mismatched data types between the output stage and input stage. [ EXECUTION ERROR #344: DEVICE_SHADER_LINKAGE_COMPONENTTYPE]

The input layout selected was not the correct one, must be specific for shadow maps.

I have also included the removal of expensive CopyResources() calls for the right eye buffer (now unused thanks to instanced stereo) from the Bloom calculation.