I just got started with DirectX 11.1 for Windows 8 apps and I got the following ComPtr for example:
ComPtr<ID3D11Buffer> constantBuffer;
What I wonder is, what is the difference between using &constantBuffer
and constantBuffer.GetAddressOf()
?
Sometimes they both works fine, but sometimes using &constantBuffer
will cause my program to crash with an access violation.