![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <D3D11ConstantBuffer.h>
Inheritance diagram for FD3D11ConstantBuffer:Static Public Member Functions | |
| 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) |
Protected Attributes | |
| FD3D11DynamicRHI * | D3DRHI |
| uint8 * | ShadowData = nullptr |
| uint32 | CurrentUpdateSize = 0 |
Additional Inherited Members | |
Public Types inherited from FRenderResource | |
| enum class | EInitPhase : uint8 { Pre , Default , MAX } |
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 FRHICommandListBase & | GetImmediateCommandList () |
A D3D constant buffer
| FD3D11ConstantBuffer::FD3D11ConstantBuffer | ( | FD3D11DynamicRHI * | InD3DRHI | ) |
|
virtual |
|
overridevirtual |
Creates a constant buffer on the device
Reimplemented from FRenderResource.
Reimplemented in FWinD3D11ConstantBuffer.
|
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 FRenderResource.
Reimplemented in FWinD3D11ConstantBuffer.
|
inline |
Updates a variable in the constant buffer.
| Data | - The data to copy into the constant buffer |
| Offset | - The offset in the constant buffer to place the data at |
| InSize | - The size of the data being copied |
|
protected |
Size of all constants that has been updated since the last call to Commit.
|
protected |
|
protected |