From 2c097545eaa324a91a035327abad2e8b4fa60469 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 14 Feb 2020 15:06:35 -0500 Subject: 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 --- tools/render-test/cuda/cuda-compute-util.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tools/render-test/cuda/cuda-compute-util.h') 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; }; -- cgit v1.2.3