Low-level settings including the compression format, where compressed data should be written, and how to encode the data. This can be used in the low-level compression API (
- See also
- nvtt_encode) for any format NVTT supports.
Most new apps will only need to use format
and SetOutputToGPUMem()
. EncodeSettings' functions provide concise ways to change individual properties. For instance, here's one way to configure it to encode data to ASTC 4x4 at Production quality, attach a timing context, and output data on the GPU:
.SetQuality(Quality_Production)
.SetTimingContext(&tc)
Namespace for all public non-macro NVTT fields.
Definition nvtt.h:52
@ Format_ASTC_LDR_4x4
ASTC - LDR - format, tile size 4x4.
Definition nvtt_lowlevel.h:274
Definition nvtt_lowlevel.h:388
NVTT_API EncodeSettings & SetFormat(Format _format)
NVTT_API EncodeSettings & SetOutputToGPUMem(bool _to_device_mem)
A TimingContext is a way to collect timing data from a number of functions, and report how much time ...
Definition nvtt.h:1722
If your compiler supports C++20 aggregate initialization, it can also be used (and the C wrapper supports C99's designated initialization):
.quality = Quality_Production,
.timing_context = &tc,
@ EncodeFlags_OutputToGPUMem
Definition nvtt_lowlevel.h:349
@ EncodeFlags_UseGPU
Compress on the GPU if CUDA is available, instead of the CPU.
Definition nvtt_lowlevel.h:345
Format format
The desired compression format.
Definition nvtt_lowlevel.h:395
- Since
- NVTT 3.2