
[英]Direct3D 11: Why does the depth buffer not work and the cube continues to display incorrectly?
我想画一个 3D 的立方体,但是显示不正确。 即Z缓冲(深度缓冲)不起作用。 深度缓冲区的初始化发生在 InitDepthBuffer 方法中,我从 Microsoft 的手册中复制了该方法。 InitDepthBuffer方法在下面的InitD3D方法中被调用。 为什么“立方体”显示不正确以及 ...