UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BlockCodingHelpers.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "PixelFormat.h"
7
9
10/*
11 * Bake a colored border of width pixels around the specified image.
12 * If the pixel format is block compressed the width, height and borders will be rounded up to the nearest block size
13 *
14 * If baking borders is not supported for this pixel format no borders will be baked.
15 */
17
18/*
19* Fill a block with uniformely colored data.
20* If the pixel format is block compressed the width, height will be rounded up to the nearest block size
21* - If the pixel format is compressed some loss may occur if the color can't be exactly represented
22* - If the pixel format is floating point the color will be scaled by 1/255
23* Not all formats may be supported we will return false in this case and fill the block with zeros
24*/
void BakeDebugInfo(const FVTUploadTileBuffer &TileBuffer, int32 Width, int32 Height, int32 Border, EPixelFormat Format, int32 MipLevel)
Definition BlockCodingHelpers.cpp:322
bool UniformColorPixels(const FVTUploadTileBuffer &TileBuffer, int32 Width, int32 Height, EPixelFormat Format, const uint8 *Color)
Definition BlockCodingHelpers.cpp:417
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EPixelFormat
Definition PixelFormat.h:16
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition VirtualTextureUploadCache.h:32