MemsetResource

Can store arbitrary data so long as it follows alignment restrictions.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/UnifiedBuffer.h

Include

#include "UnifiedBuffer.h"

Source

/Engine/Source/Runtime/RenderCore/Private/UnifiedBuffer.cpp

Syntax

template<typename ResourceType>
void MemsetResource
(
    FRHICommandList & RHICmdList,
    const ResourceType & DstBuffer,
    uint32 Value,
    uint32 NumBytes,
    uint32 DstOffset
)

Remarks

Can store arbitrary data so long as it follows alignment restrictions. Intended mostly for read only data uploaded from CPU. Allows sparse allocations and updates from CPU. Float4 versions exist for platforms that don't yet support byte address buffers.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss