File tree Expand file tree Collapse file tree
D3D12PredicationQueries/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ void D3D1211on12::LoadAssets()
224224 ComPtr<ID3DBlob> vertexShader;
225225 ComPtr<ID3DBlob> pixelShader;
226226
227- #if DEBUG
227+ #ifdef _DEBUG
228228 // Enable better shader debugging with the graphics debugging tools.
229229 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
230230#else
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ void D3D12ExecuteIndirect::LoadAssets()
211211 ComPtr<ID3DBlob> computeShader;
212212 ComPtr<ID3DBlob> error;
213213
214- #if DEBUG
214+ #ifdef _DEBUG
215215 // Enable better shader debugging with the graphics debugging tools.
216216 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
217217#else
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ void D3D12HelloBundles::LoadAssets()
148148 ComPtr<ID3DBlob> vertexShader;
149149 ComPtr<ID3DBlob> pixelShader;
150150
151- #if DEBUG
151+ #ifdef _DEBUG
152152 // Enable better shader debugging with the graphics debugging tools.
153153 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
154154#else
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ void D3D12HelloConstBuffers::LoadAssets()
172172 ComPtr<ID3DBlob> vertexShader;
173173 ComPtr<ID3DBlob> pixelShader;
174174
175- #if DEBUG
175+ #ifdef _DEBUG
176176 // Enable better shader debugging with the graphics debugging tools.
177177 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
178178#else
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ void D3D12HelloTriangle::LoadAssets()
147147 ComPtr<ID3DBlob> vertexShader;
148148 ComPtr<ID3DBlob> pixelShader;
149149
150- #if DEBUG
150+ #ifdef _DEBUG
151151 // Enable better shader debugging with the graphics debugging tools.
152152 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
153153#else
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ void D3D12Multithreading::LoadAssets()
195195 ComPtr<ID3DBlob> vertexShader;
196196 ComPtr<ID3DBlob> pixelShader;
197197
198- #if DEBUG
198+ #ifdef _DEBUG
199199 // Enable better shader debugging with the graphics debugging tools.
200200 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
201201#else
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ void D3D12PredicationQueries::LoadAssets()
185185 ComPtr<ID3DBlob> vertexShader;
186186 ComPtr<ID3DBlob> pixelShader;
187187
188- #if DEBUG
188+ #ifdef _DEBUG
189189 // Enable better shader debugging with the graphics debugging tools.
190190 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
191191#else
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ void D3D12nBodyGravity::LoadAssets()
212212 ComPtr<ID3DBlob> pixelShader;
213213 ComPtr<ID3DBlob> computeShader;
214214
215- #if DEBUG
215+ #ifdef _DEBUG
216216 // Enable better shader debugging with the graphics debugging tools.
217217 UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION ;
218218#else
You can’t perform that action at this time.
0 commit comments