# (Switch) How to use multiple ASTC compression formats simultaneously?

**URL:** <https://forums.unrealengine.com/t/switch-how-to-use-multiple-astc-compression-formats-simultaneously/454898>\
**Category:** Rendering\
**Tags:** Switch, unreal-engine, question\
**Created:** [September 5, 2019, 3:59pm UTC](https://forums.unrealengine.com/t/switch-how-to-use-multiple-astc-compression-formats-simultaneously/454898 "2019-09-05T15:59:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UDasTest1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UDasTest1](https://forums.unrealengine.com/u/UDasTest1)\
**Post date:** [September 5, 2019, 3:59pm UTC](https://forums.unrealengine.com/t/switch-how-to-use-multiple-astc-compression-formats-simultaneously/454898/1 "2019-09-05T15:59:03Z")

</div>

I have multiple textures that can use ASTC, but I’d like to use **ASTC\_4x4 for the smaller textures (512x512 or smaller)** and **ASTC\_8x8 for the larger textures (1024x1024 or larger)**. How can I do this simultaneously on the Switch? Specifically, which files do I need to modify? I attempted to modify the the TextureFormatIntelISPCTexComp.cpp to set the CompressedPixelFormat with the following lines:

```
int32 CompressionOverride = BuildSettings.CompressionQuality;
			if (InImage.SizeX <= 256 || InImage.SizeY <= 256)
			{
				CompressionOverride = 4;
			}	
			CompressedPixelFormat = GetQualityFormat( BlockWidth, BlockHeight, bIsNormalMap ? FORCED_NORMAL_MAP_COMPRESSION_SIZE_VALUE : CompressionOverride );

```

It sets the compressed pixel format but this doesn’t change anything in the compression. How can I actually use multiple forms of ASTC compression in the same cook?
