tabs -> spaces
This commit is contained in:
parent
19f872161e
commit
765a89951d
@ -53,7 +53,6 @@ extern "C" void compressKernelDXT3(uint firstBlock, uint blockNum, uint w, uint
|
|||||||
//extern "C" void compressNormalKernelDXT1(uint blockNum, uint * d_data, uint * d_result, uint * d_bitmaps);
|
//extern "C" void compressNormalKernelDXT1(uint blockNum, uint * d_data, uint * d_result, uint * d_bitmaps);
|
||||||
//extern "C" void compressKernelCTX1(uint blockNum, uint * d_data, uint * d_result, uint * d_bitmaps);
|
//extern "C" void compressKernelCTX1(uint blockNum, uint * d_data, uint * d_result, uint * d_bitmaps);
|
||||||
|
|
||||||
|
|
||||||
#include "BitmapTable.h"
|
#include "BitmapTable.h"
|
||||||
#include "nvtt/SingleColorLookup.h"
|
#include "nvtt/SingleColorLookup.h"
|
||||||
|
|
||||||
@ -130,8 +129,6 @@ void CudaCompressor::compress(nvtt::InputFormat inputFormat, nvtt::AlphaMode alp
|
|||||||
{
|
{
|
||||||
nvDebugCheck(cuda::isHardwarePresent());
|
nvDebugCheck(cuda::isHardwarePresent());
|
||||||
|
|
||||||
#if defined HAVE_CUDA
|
|
||||||
|
|
||||||
// Allocate image as a cuda array.
|
// Allocate image as a cuda array.
|
||||||
cudaArray * d_image;
|
cudaArray * d_image;
|
||||||
if (inputFormat == nvtt::InputFormat_BGRA_8UB)
|
if (inputFormat == nvtt::InputFormat_BGRA_8UB)
|
||||||
@ -192,14 +189,8 @@ void CudaCompressor::compress(nvtt::InputFormat inputFormat, nvtt::AlphaMode alp
|
|||||||
|
|
||||||
free(h_result);
|
free(h_result);
|
||||||
cudaFreeArray(d_image);
|
cudaFreeArray(d_image);
|
||||||
|
|
||||||
#else
|
|
||||||
outputOptions.error(Error_CudaError);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined HAVE_CUDA
|
|
||||||
|
|
||||||
void CudaCompressorDXT1::setup(cudaArray * image, const nvtt::CompressionOptions::Private & compressionOptions)
|
void CudaCompressorDXT1::setup(cudaArray * image, const nvtt::CompressionOptions::Private & compressionOptions)
|
||||||
{
|
{
|
||||||
@ -598,5 +589,3 @@ void CudaCompressor::compressDXT5n(const nvtt::CompressionOptions::Private & com
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // 0
|
#endif // 0
|
||||||
|
|
||||||
#endif // defined HAVE_CUDA
|
|
||||||
|
Loading…
Reference in New Issue
Block a user