私にはかなりはっきりしているように見えるので、何かが欠けているに違いありません。
ハンドルの配列と個々のハンドルの宣言は次のとおりです。
// and the aggregate handle array for the setbufferscall
ID3D11Buffer * m_constantBuffers[NUM_CONSTANT_BUFFERS];
Microsoft::WRL::ComPtr<ID3D11Buffer> m_constantMatrixBuffer;
Microsoft::WRL::ComPtr<ID3D11Buffer> m_constantLightBuffer;
Microsoft::WRL::ComPtr<ID3D11Buffer> m_constantMaterialBuffer;
そして、これが私がやろうとしていることです:
// and lastly, we need to aggregate all of these handles into
// one handle array so that it's formatted properly for the
// VSSetConstantBuffers call
m_constantBuffers[0] = m_constantMatrixBuffer.GetAddressOf();
m_constantBuffers[1] = m_constantLightBuffer.GetAddressOf();
m_constantBuffers[2] = m_constantMaterialBuffer.GetAddressOf();
最後に、コンパイラが言っていることは次のとおりです。
1>Renderer.cpp(66): error C2440: '=' : cannot convert from 'ID3D11Buffer **' to 'ID3D11Buffer *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>Renderer.cpp(67): error C2440: '=' : cannot convert from 'ID3D11Buffer **' to 'ID3D11Buffer *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>Renderer.cpp(68): error C2440: '=' : cannot convert from 'ID3D11Buffer **' to 'ID3D11Buffer *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
何を与える?配列の逆参照とは、配列宣言の前にある型 (この場合は ID3D11Buffer *) を扱っていることを意味していると思いました。
読んでくれてありがとう、そしてあなたが惜しまない知恵の滴をありがとう