UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FRHICommitResourceInfo Struct Reference

#include <RHITransition.h>

Public Member Functions

 FRHICommitResourceInfo (uint64 InSizeInBytes)
 

Public Attributes

uint64 SizeInBytes = 0
 

Detailed Description

Represents a change in physical memory allocation for a resource that was created with TexCreate/BUF_ReservedResource flag. Physical memory is allocated in tiles/pages and mapped to the tail of the currently committed region of the resource. This API may be used to grow or shrink reserved resources without moving the bulk of the data or re-creating SRVs/UAVs. The contents of the newly committed region of the resource is undefined and must be overwritten by the application before use. Reserved resources must be created with maximum expected size, which will not cost any memory until committed. Commit size must be smaller or equal to the maximum resource size specified at creation. Check GRHIGlobals.ReservedResources.Supported before using this API or TexCreate/BUF_ReservedResource flag.

Constructor & Destructor Documentation

◆ FRHICommitResourceInfo()

FRHICommitResourceInfo::FRHICommitResourceInfo ( uint64  InSizeInBytes)
inlineexplicit

Member Data Documentation

◆ SizeInBytes

uint64 FRHICommitResourceInfo::SizeInBytes = 0

The documentation for this struct was generated from the following file: