FD3D12ConstantBuffer

A D3D constant buffer

Choose your operating system:

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

TArray< uint8 >

 

ShadowData

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

Public function

void

 

Reset()

Public function

FORCEINLINE_...

 

UpdateConstant

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

Updates a variable in the constant buffer.

Public function

bool

 

Version

(
    FD3D12ResourceLocation& BufferOut,
    bool bDiscardSharedConstants
)