MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _getSquishFormat

Function _getSquishFormat

Engine/source/gfx/bitmap/imageUtils.cpp:48–65  ·  view source on GitHub ↗

get squish compression flag

Source from the content-addressed store, hash-verified

46
47 // get squish compression flag
48 S32 _getSquishFormat(const GFXFormat compressFormat)
49 {
50 switch (compressFormat)
51 {
52 case GFXFormatBC1:
53 return squish::kDxt1;
54 case GFXFormatBC2:
55 return squish::kDxt3;
56 case GFXFormatBC3:
57 return squish::kDxt5;
58 case GFXFormatBC4:
59 return squish::kBc4;
60 case GFXFormatBC5:
61 return squish::kBc5;
62 default:
63 return squish::kDxt1;
64 }
65 }
66
67 //Thread work job for compression
68 struct CompressJob : public ThreadPool::WorkItem

Callers 2

rawCompressFunction · 0.85
decompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected