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
|
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 .
|
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 .
|
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 Discard.
Includes "shared" constants that don't necessarily gets updated between every Commit.