我正在关注在YouTube上构建DX11Engine的教程,我陷入了困境。我试图呈现一个精灵到屏幕上,但是当我尝试运行它,我得到DX11引擎故障
访问冲突读取位置00000000"
问题是在该行发生。
result = device->CreateVertexShader(vertexShaderBuffer->GetBufferPointer(), vertexShaderBuffer->GetBufferSize(), NULL, &m_vertexShader);
这是Shader.cpp。
我已经上传我的代码到Git的枢纽https://github.com/nowayout2k/PJTS-CPP-DX11Engine。感谢您的帮助提前!
你应该看看[DirectX工具包](https://github.com/Microsoft/DirectXTK),它是[教程](https://github.com/Microsoft/DirectXTK/wiki/Getting-Started )。 –