mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-23 21:28:17 +08:00
-- add cudaCompressibleMemory sample
-- fix simpleD3D12 build issue -- fix simpleVulkanMMAP shader file locating issue
This commit is contained in:
@@ -27,9 +27,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <d3d12.h>
|
||||
#include <dxgi1_4.h>
|
||||
#include <D3Dcompiler.h>
|
||||
#include <DirectXMath.h>
|
||||
#include <cuda_runtime.h>
|
||||
#include "helper_cuda.h"
|
||||
#include "stdafx.h"
|
||||
|
||||
using namespace DirectX;
|
||||
|
||||
@@ -38,15 +41,6 @@ struct Vertex {
|
||||
XMFLOAT4 color;
|
||||
};
|
||||
|
||||
#if 0
|
||||
// Constant buffer used to send MVP matrices to the vertex shader.
|
||||
struct ModelViewProjectionConstantBuffer
|
||||
{
|
||||
XMFLOAT4X4 model;
|
||||
XMFLOAT4X4 view;
|
||||
XMFLOAT4X4 projection;
|
||||
};
|
||||
#endif
|
||||
|
||||
void RunSineWaveKernel(size_t mesh_width, size_t mesh_height,
|
||||
Vertex *cudaDevVertptr, cudaStream_t streamToRun,
|
||||
|
||||
@@ -25,8 +25,16 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "d3dx12.h"
|
||||
|
||||
#include <string>
|
||||
#include <wrl.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
#include <cuda_runtime.h>
|
||||
#include "ShaderStructs.h"
|
||||
#include "simpleD3D12.h"
|
||||
#include <aclapi.h>
|
||||
|
||||
|
||||
@@ -25,9 +25,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "ShaderStructs.h"
|
||||
#include "helper_cuda.h"
|
||||
|
||||
__global__ void sinewave_gen_kernel(Vertex *vertices, unsigned int width,
|
||||
unsigned int height, float time) {
|
||||
|
||||
Reference in New Issue
Block a user