RealDocs

UKismetRenderingLibrary::CreateRenderTargetVolume

function Engine Blueprint Since 5.0
#include "Kismet/KismetRenderingLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintCallable

Description

Creates a new volume render target and initializes it to the specified 3D dimensions, typically for volumetric effects written via compute shaders.

Caveats & Gotchas

  • Volume render targets are memory-hungry — Width * Height * Depth texels at the chosen format, so doubling any dimension octuples cost relative to all three.
  • Writing to a volume target usually requires bSupportUAVs = true and a compute shader; there is no Blueprint-only path to populate one meaningfully.
  • Default dimensions (16x16x16) are intentionally small — most real usage needs to set explicit dimensions matching the intended volumetric effect.

Signature

static UTextureRenderTargetVolume* CreateRenderTargetVolume(UObject* WorldContextObject, int32 Width = 16, int32 Height = 16, int32 Depth = 16, ETextureRenderTargetFormat Format = RTF_RGBA16f, FLinearColor ClearColor = FLinearColor::Black, bool bAutoGenerateMipMaps = false, bool bSupportUAVs = false);

Parameters

Name Type Description Default
WorldContextObject UObject* Object used to resolve the current world.
Width int32 Width of the volume in texels. 16
Height int32 Height of the volume in texels. 16
Depth int32 Depth of the volume in texels. 16
Format ETextureRenderTargetFormat Pixel format of the render target. RTF_RGBA16f
ClearColor FLinearColor Default clear color used when the target is cleared. FLinearColor::Black
bAutoGenerateMipMaps bool Whether mips are generated automatically after rendering. false
bSupportUAVs bool Whether the render target's resource supports unordered access views for compute shader writes. false

Return Type

UTextureRenderTargetVolume*

Example

Create a volume target for a compute shader C++
UTextureRenderTargetVolume* VolumeRT = UKismetRenderingLibrary::CreateRenderTargetVolume(this, 32, 32, 32, RTF_R16f, FLinearColor::Black, false, true);

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.