Fix errors when cuda is not enabled.
This commit is contained in:
parent
b19cd63558
commit
42a641f0a5
@ -219,6 +219,7 @@ void CudaCompressor::compress(nvtt::InputFormat inputFormat, nvtt::AlphaMode alp
|
||||
|
||||
}
|
||||
|
||||
#if defined HAVE_CUDA
|
||||
|
||||
void CudaCompressorDXT1::setup(cudaArray * image, const nvtt::CompressionOptions::Private & compressionOptions)
|
||||
{
|
||||
@ -290,7 +291,7 @@ void CudaCompressorDXT5::compressBlocks(uint first, uint count, uint w, uint h,
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif // defined HAVE_CUDA
|
||||
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#define NV_TT_CUDACOMPRESSORDXT_H
|
||||
|
||||
#include "nvtt/nvtt.h"
|
||||
#include "../Compressor.h" // CompressorInterface
|
||||
#include "nvtt/Compressor.h" // CompressorInterface
|
||||
|
||||
struct cudaArray;
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
// OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
#include <nvcore/Debug.h>
|
||||
#include <nvcore/Library.h>
|
||||
#include "nvcore/Debug.h"
|
||||
#include "nvcore/Library.h"
|
||||
#include "CudaUtils.h"
|
||||
|
||||
#if defined HAVE_CUDA
|
||||
|
Loading…
Reference in New Issue
Block a user