UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWinD3D11ConstantBuffer Class Reference

#include <WindowsD3D11ConstantBuffer.h>

+ Inheritance diagram for FWinD3D11ConstantBuffer:

Public Member Functions

 FWinD3D11ConstantBuffer (FD3D11DynamicRHI *InD3DRHI)
 
virtual void InitRHI (FRHICommandListBase &RHICmdList) override
 
virtual void ReleaseRHI () override
 
ID3D11BufferGetConstantBuffer () const
 
uint32 FindSubBufferForAllocationSize (uint64 InSize) const
 
bool CommitConstantsToDevice (bool bDiscardSharedConstants)
 
- Public Member Functions inherited from FD3D11ConstantBuffer
 FD3D11ConstantBuffer (FD3D11DynamicRHI *InD3DRHI)
 
virtual ~FD3D11ConstantBuffer ()
 
void UpdateConstant (const uint8 *Data, uint16 Offset, uint16 InSize)
 
- Public Member Functions inherited from FRenderResource
RENDERCORE_API FRenderResource ()
 
RENDERCORE_API FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 
RENDERCORE_API FRenderResource (const FRenderResource &)
 
RENDERCORE_API FRenderResource (FRenderResource &&)
 
RENDERCORE_API FRenderResourceoperator= (const FRenderResource &Other)
 
RENDERCORE_API FRenderResourceoperator= (FRenderResource &&Other)
 
virtual RENDERCORE_API ~FRenderResource ()
 
virtual RENDERCORE_API void InitResource (FRHICommandListBase &RHICmdList)
 
virtual RENDERCORE_API void ReleaseResource ()
 
RENDERCORE_API void UpdateRHI (FRHICommandListBase &RHICmdList)
 
virtual FString GetFriendlyName () const
 
bool IsInitialized () const
 
int32 GetListIndex () const
 
EInitPhase GetInitPhase () const
 
void SetOwnerName (FName InOwnerName)
 
FName GetOwnerName () const
 
void SetResourceName (FName InResourceName)
 
FName GetResourceName () const
 
- Public Member Functions inherited from FRefCountedObject
 FRefCountedObject ()
 
virtual ~FRefCountedObject ()
 
 FRefCountedObject (const FRefCountedObject &Rhs)=delete
 
FRefCountedObjectoperator= (const FRefCountedObject &Rhs)=delete
 
FReturnedRefCountValue AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 

Additional Inherited Members

- Public Types inherited from FRenderResource
enum class  EInitPhase : uint8 { Pre , Default , MAX }
 
- Static Public Member Functions inherited from FD3D11ConstantBuffer
static constexpr uint32 GetMaxSize ()
 
- Static Public Member Functions inherited from FRenderResource
static RENDERCORE_API void ReleaseRHIForAllResources ()
 
static RENDERCORE_API void InitPreRHIResources ()
 
static RENDERCORE_API void ChangeFeatureLevel (ERHIFeatureLevel::Type NewFeatureLevel)
 
static RENDERCORE_API FName SetScopeName (FName Name)
 
- Public Attributes inherited from FRenderResource
ERenderResourceState ResourceState = ERenderResourceState::Default
 
- Protected Member Functions inherited from FRenderResource
void SetFeatureLevel (const FStaticFeatureLevel InFeatureLevel)
 
const FStaticFeatureLevel GetFeatureLevel () const
 
bool HasValidFeatureLevel () const
 
template<typename T >
FBufferRHIRef CreateRHIBuffer (FRHICommandListBase &RHICmdList, T &InOutResourceObject, uint32 ResourceCount, EBufferUsageFlags InBufferUsageFlags, const TCHAR *InDebugName)
 
void SetInitPhase (EInitPhase InInitPhase)
 
- Static Protected Member Functions inherited from FRenderResource
static RENDERCORE_API FRHICommandListBaseGetImmediateCommandList ()
 
- Protected Attributes inherited from FD3D11ConstantBuffer
FD3D11DynamicRHID3DRHI
 
uint8ShadowData = nullptr
 
uint32 CurrentUpdateSize = 0
 

Constructor & Destructor Documentation

◆ FWinD3D11ConstantBuffer()

FWinD3D11ConstantBuffer::FWinD3D11ConstantBuffer ( FD3D11DynamicRHI InD3DRHI)
inline

Member Function Documentation

◆ CommitConstantsToDevice()

bool FWinD3D11ConstantBuffer::CommitConstantsToDevice ( bool  bDiscardSharedConstants)

Unlocks the constant buffer so the data can be transmitted to the device

◆ FindSubBufferForAllocationSize()

uint32 FWinD3D11ConstantBuffer::FindSubBufferForAllocationSize ( uint64  InSize) const

◆ GetConstantBuffer()

ID3D11Buffer * FWinD3D11ConstantBuffer::GetConstantBuffer ( ) const
inline

Get the current pool buffer

◆ InitRHI()

void FWinD3D11ConstantBuffer::InitRHI ( FRHICommandListBase RHICmdList)
overridevirtual

Creates a constant buffer on the device

Reimplemented from FD3D11ConstantBuffer.

◆ ReleaseRHI()

void FWinD3D11ConstantBuffer::ReleaseRHI ( )
overridevirtual

Releases the RHI resources used by this resource. Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.

Reimplemented from FD3D11ConstantBuffer.


The documentation for this class was generated from the following files: