Hi there,
Idk why but this has got me worried. I've had to make a change to a function written by someone else as it won't compile in conformance mode. It was throwing the good old C2102 error
Code:
CD3DX12_HEAP_PROPERTIES heapProperties(D3D12_HEAP_TYPE_DEFAULT);
ThrowIfFailed(md3dDevice->CreateCommittedResource(
//&CD3DX12_HEAP_PROPERTIES(D3D12_HEAP_TYPE_DEFAULT), - will not compile in conformance mode 20/3/24
&heapProperties,
D3D12_HEAP_FLAG_NONE,
&depthStencilDesc,
D3D12_RESOURCE_STATE_COMMON,
&optClear,
IID_PPV_ARGS(mDepthStencilBuffer.GetAddressOf())));
It works now but I'm unsure if I made the heap property variable correctly. I should know this really, but I seemed to have wandered into a self-doubt spell so I'd like to check.
So will this line of code create the heap properties struct named heapProperties with the correct constructor, just as the function parameter originally did?
Code:
CD3DX12_HEAP_PROPERTIES heapProperties(D3D12_HEAP_TYPE_DEFAULT);
That's all, thanks