Set useCuda if CUDA enabled in Compression class.
This commit is contained in:
parent
90a0dc505b
commit
6f28642282
@ -46,7 +46,7 @@ namespace nvtt
|
|||||||
uint bmask;
|
uint bmask;
|
||||||
uint amask;
|
uint amask;
|
||||||
|
|
||||||
bool useCuda;
|
mutable bool useCuda;
|
||||||
|
|
||||||
nv::String externalCompressor;
|
nv::String externalCompressor;
|
||||||
|
|
||||||
|
@ -673,6 +673,9 @@ static bool compress(const InputOptions::Private & inputOptions, const OutputOpt
|
|||||||
/// Compress the input texture with the given compression options.
|
/// Compress the input texture with the given compression options.
|
||||||
bool Compressor::process(const InputOptions & inputOptions, const CompressionOptions & compressionOptions, const OutputOptions & outputOptions) const
|
bool Compressor::process(const InputOptions & inputOptions, const CompressionOptions & compressionOptions, const OutputOptions & outputOptions) const
|
||||||
{
|
{
|
||||||
|
// @@ Hack!
|
||||||
|
compressionOptions.m.useCuda = this->m.cudaEnabled;
|
||||||
|
|
||||||
return ::compress(inputOptions.m, outputOptions.m, compressionOptions.m);
|
return ::compress(inputOptions.m, outputOptions.m, compressionOptions.m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user