-- add cudaCompressibleMemory sample

-- fix simpleD3D12 build issue
-- fix simpleVulkanMMAP shader file locating issue
This commit is contained in:
Mahesh Doijade
2020-05-22 22:07:30 +05:30
parent 53e9e413a8
commit 56b5b4c767
20 changed files with 1470 additions and 30 deletions

View File

@@ -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,

View File

@@ -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>

View File

@@ -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) {