engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FD3D11ConstantBuffer类 参考

A D3D constant buffer 更多...

#include <D3D11ConstantBuffer.h>

+ 类 FD3D11ConstantBuffer 继承关系图:

Public 成员函数

virtual void InitDynamicRHI () override
 Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
 
virtual void ReleaseDynamicRHI () override
 Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
 
void UpdateConstant (const uint8 *Data, uint16 Offset, uint16 InSize)
 Updates a variable in the constant buffer. 更多...
 
- Public 成员函数 继承自 FRenderResource
 FRenderResource ()
 Default constructor.
 
 FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 Constructor when we know what feature level this resource should support
 
virtual FString GetFriendlyName () const
 
virtual void InitDynamicRHI ()
 Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
 
virtual void InitResource ()
 Initializes the resource. 更多...
 
virtual void InitRHI ()
 Initializes the RHI resources used by this resource. 更多...
 
virtual void ReleaseDynamicRHI ()
 Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
 
virtual void ReleaseResource ()
 Prepares the resource for deletion. 更多...
 
virtual void ReleaseRHI ()
 Releases the RHI resources used by this resource. 更多...
 
void UpdateRHI ()
 If the resource's RHI resources have been initialized, then release and reinitialize it. 更多...
 
virtual ~FRenderResource ()
 Destructor used to catch unreleased resources.
 

Protected 属性

uint32 CurrentUpdateSize
 Size of all constants that has been updated since the last call to Commit.
 
uint32 TotalUpdateSize
 Size of all constants that has been updated since the last Discard. 更多...
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FRenderResource
static void InitPreRHIResources ()
 Initialize all resources initialized before the RHI was initialized
 

详细描述

A D3D constant buffer

成员函数说明

◆ InitDynamicRHI()

virtual void FD3D11ConstantBuffer::InitDynamicRHI ( )
overridevirtual

Initializes the dynamic RHI resource and/or RHI render target used by this resource.

Called when the resource is initialized, or when reseting all RHI resources. Resources that need to initialize after a D3D device reset must implement this function. This is only called by the rendering thread.

重载 FRenderResource .

◆ ReleaseDynamicRHI()

virtual void FD3D11ConstantBuffer::ReleaseDynamicRHI ( )
overridevirtual

Releases the dynamic RHI resource and/or RHI render target resources used by this resource.

Called when the resource is released, or when reseting all RHI resources. Resources that need to release before a D3D device reset must implement this function. This is only called by the rendering thread.

重载 FRenderResource .

◆ UpdateConstant()

void FD3D11ConstantBuffer::UpdateConstant ( const uint8 *  Data,
uint16  Offset,
uint16  InSize 
)
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

类成员变量说明

◆ TotalUpdateSize

uint32 FD3D11ConstantBuffer::TotalUpdateSize
protected

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

Includes "shared" constants that don't necessarily gets updated between every Commit.


该类的文档由以下文件生成: