diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-02-14 15:06:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-14 15:06:35 -0500 |
| commit | 2c097545eaa324a91a035327abad2e8b4fa60469 (patch) | |
| tree | 95fd3890f2bfb0184ddbc7f1008de30698651473 /tools/render-test/cuda/cuda-compute-util.h | |
| parent | dfd3d263704445b6dcebea54dc47193897548822 (diff) | |
Feature/cuda coverage (#1223)
* Add cubemap support.
* Add CUDA fence instrinsics.
* Added Gather for CUDA.
* Use the CUDA driver API as much as possible.
* * Support 1D texture on CPU
* WIP on 1D texture on CUDA
* Added simplified texture test
* Fix test.
* Improve texture-simple tests.
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'tools/render-test/cuda/cuda-compute-util.h')
| -rw-r--r-- | tools/render-test/cuda/cuda-compute-util.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/render-test/cuda/cuda-compute-util.h b/tools/render-test/cuda/cuda-compute-util.h index 8965f5037..f1ca65502 100644 --- a/tools/render-test/cuda/cuda-compute-util.h +++ b/tools/render-test/cuda/cuda-compute-util.h @@ -8,22 +8,26 @@ namespace renderer_test { + struct CUDAComputeUtil { + // Define here, so we don't need to include the cude header + typedef size_t CUdeviceptr; + /// NOTE! MUST match up to definitions in the CUDA prelude struct ByteAddressBuffer { - void* data; + CUdeviceptr data; size_t sizeInBytes; }; struct StructuredBuffer { - void* data; + CUdeviceptr data; size_t count; }; struct Array { - void* data; + CUdeviceptr data; size_t count; }; |
