FD3D12ConstantBuffer

A D3D constant buffer

Windows
MacOS
Linux

Inheritance Hierarchy

FD3D12DeviceChild

FD3D12ConstantBuffer

References

Module

D3D12RHI

Header

/Engine/Source/Runtime/D3D12RHI/Public/D3D12ConstantBuffer.h

Include

#include "D3D12ConstantBuffer.h"

Syntax

class FD3D12ConstantBuffer : public FD3D12DeviceChild

Remarks

A D3D constant buffer

Variables

Name Description

Protected variable

FD3D12FastConst...

 

Allocator

Protected variable

bool

 

bIsDirty

Indicates that a constant has been updated but this one hasn't been flushed.

Protected variable

uint32

 

CurrentUpdateSize

Size of all constants that has been updated since the last call to Commit.

Protected variable

uint32

 

TotalUpdateSize

Size of all constants that has been updated since the last Discard.

Constructors

Name Description

Public function

FD3D12ConstantBuffer

(
    FD3D12Device* InParent,
    FD3D12FastConstantAllocator& InAll...
)

Destructors

Name Description

Public function Virtual

~FD3D12ConstantBuffer()

Functions

Name Description

Protected function

 

__declspec

(
    align(16)
)

Public function

void

 

Reset()

Public function

void

 

UpdateConstant

(
    const uint8* Data,
    uint16 Offset,
    uint16 InSize
)

Updates a variable in the constant buffer.

Public function

bool

 

Version

(
    FD3D12ResourceLocation& BufferOut,
    bool bDiscardSharedConstants
)

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