diff --git a/.gitignore b/.gitignore index 6b65c42ff..ef2c203f3 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ *.tlog *.lastbuildstate *.ilk +*.VC.db Bin /Src/Shaders/Compiled/XboxOne*.inc /ipch diff --git a/Src/DGSLEffectFactory.cpp b/Src/DGSLEffectFactory.cpp index 99957c76b..d89eaae63 100644 --- a/Src/DGSLEffectFactory.cpp +++ b/Src/DGSLEffectFactory.cpp @@ -439,6 +439,8 @@ void DGSLEffectFactory::Impl::CreatePixelShader( const WCHAR* name, ID3D11PixelS ThrowIfFailed( device->CreatePixelShader( data.get(), dataSize, nullptr, pixelShader ) ); + _Analysis_assume_(*pixelShader != 0); + if ( mSharing && *name && it == mShaderCache.end() ) { std::lock_guard lock(mutex); diff --git a/Src/GeometricPrimitive.cpp b/Src/GeometricPrimitive.cpp index af3c6816c..ad569c7f8 100644 --- a/Src/GeometricPrimitive.cpp +++ b/Src/GeometricPrimitive.cpp @@ -100,6 +100,8 @@ namespace device->CreateBuffer(&bufferDesc, &dataDesc, pBuffer) ); + _Analysis_assume_(*pBuffer != 0); + SetDebugObjectName(*pBuffer, "DirectXTK:GeometricPrimitive"); } @@ -121,6 +123,8 @@ namespace pInputLayout) ); + _Analysis_assume_(*pInputLayout != 0); + SetDebugObjectName(*pInputLayout, "DirectXTK:GeometricPrimitive"); } } diff --git a/Src/Model.cpp b/Src/Model.cpp index e14bde1ff..af88c80c9 100644 --- a/Src/Model.cpp +++ b/Src/Model.cpp @@ -95,6 +95,8 @@ void ModelMeshPart::CreateInputLayout( ID3D11Device* d3dDevice, IEffect* ieffect shaderByteCode, byteCodeLength, iinputLayout ) ); + + _Analysis_assume_(*iinputLayout != 0); } diff --git a/Src/ModelLoadCMO.cpp b/Src/ModelLoadCMO.cpp index f2a6a6bd9..b392916cb 100644 --- a/Src/ModelLoadCMO.cpp +++ b/Src/ModelLoadCMO.cpp @@ -207,6 +207,8 @@ static void CreateInputLayout(_In_ ID3D11Device* device, IEffect* effect, _Out_ ); } + _Analysis_assume_(*pInputLayout != 0); + SetDebugObjectName(*pInputLayout, "ModelCMO"); } diff --git a/Src/ModelLoadSDKMESH.cpp b/Src/ModelLoadSDKMESH.cpp index 051434a67..62d8c9a5e 100644 --- a/Src/ModelLoadSDKMESH.cpp +++ b/Src/ModelLoadSDKMESH.cpp @@ -627,6 +627,8 @@ static void CreateInputLayout(_In_ ID3D11Device* device, _In_ IEffect* effect, s pInputLayout) ); + _Analysis_assume_(*pInputLayout != 0); + SetDebugObjectName(*pInputLayout, "ModelSDKMESH"); } diff --git a/Src/PrimitiveBatch.cpp b/Src/PrimitiveBatch.cpp index 295f203dd..84ef535aa 100644 --- a/Src/PrimitiveBatch.cpp +++ b/Src/PrimitiveBatch.cpp @@ -100,6 +100,8 @@ static void CreateBuffer(_In_ ID3D11Device* device, size_t bufferSize, D3D11_BIN device->CreateBuffer(&desc, nullptr, pBuffer) ); + _Analysis_assume_(*pBuffer != 0); + SetDebugObjectName(*pBuffer, "DirectXTK:PrimitiveBatch"); } #endif