mirror of
				https://github.com/NVIDIA/cuda-samples.git
				synced 2025-11-04 07:27:49 +08:00 
			
		
		
		
	Merge Bug 5199167: Fix the includes issue for 5_Domain_Specific\simpleD3D12
See merge request cuda-samples/cuda-samples!106
This commit is contained in:
		
						commit
						49daf0e4e0
					
				@ -52,6 +52,9 @@ The MIT License (MIT)
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include <d3d12.h>
 | 
			
		||||
#include <dxgi1_6.h>
 | 
			
		||||
 | 
			
		||||
#include "DXSampleHelper.h"
 | 
			
		||||
#include "Win32Application.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -52,7 +52,13 @@ The MIT License (MIT)
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
// includes for Windows
 | 
			
		||||
#include <d3d12.h> // DirectX 12 header
 | 
			
		||||
#include <stdexcept>
 | 
			
		||||
#include <windows.h>                   // Windows Platform SDK - must come first
 | 
			
		||||
#include <wrl.h>                       // For basic WRL support
 | 
			
		||||
#include <wrl/client.h>                // For ComPtr
 | 
			
		||||
#include <wrl/wrappers/corewrappers.h> // For Wrappers::FileHandle
 | 
			
		||||
// Note that while ComPtr is used to manage the lifetime of resources on the
 | 
			
		||||
// CPU, it has no understanding of the lifetime of resources on the GPU. Apps
 | 
			
		||||
// must account for the GPU lifetime of resources to avoid destroying objects
 | 
			
		||||
 | 
			
		||||
@ -27,8 +27,15 @@
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include <DirectXMath.h>
 | 
			
		||||
#include <d3d12.h>
 | 
			
		||||
#include <d3dcompiler.h>
 | 
			
		||||
#include <dxgi1_6.h>
 | 
			
		||||
#include <wrl.h>
 | 
			
		||||
 | 
			
		||||
#include "DX12CudaSample.h"
 | 
			
		||||
#include "ShaderStructs.h"
 | 
			
		||||
#include "d3dx12.h"
 | 
			
		||||
 | 
			
		||||
using namespace DirectX;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user