The interface RHI command context. 更多...
#include <RHIContext.h>
类 IRHICommandContext 继承关系图:Public 成员函数 | |
| virtual void | RHIBeginScene ()=0 |
| Signals the beginning of scene rendering. 更多... | |
| virtual void | RHIBeginUpdateMultiFrameResource (FRHITexture *Texture) |
| Signals the beginning and ending of rendering to a resource to be used in the next frame on a multiGPU system | |
| virtual void | RHICopyToResolveTarget (FRHITexture *SourceTexture, FRHITexture *DestTexture, const FResolveParams &ResolveParams)=0 |
| Resolves from one texture to another. 更多... | |
| virtual void | RHIEndScene ()=0 |
| Signals the end of scene rendering. 更多... | |
| virtual void | RHIResummarizeHTile (FRHITexture2D *DepthTexture) |
| Rebuilds the depth target HTILE meta data (on supported platforms). 更多... | |
| virtual void | RHISetDepthBounds (float MinDepth, float MaxDepth)=0 |
| Sets Depth Bounds range with the given min/max depth. 更多... | |
| virtual void | RHISetShaderSampler (FRHIComputeShader *ComputeShader, uint32 SamplerIndex, FRHISamplerState *NewState)=0 |
| Sets sampler state. 更多... | |
| virtual void | RHISetShaderSampler (FRHIGraphicsShader *Shader, uint32 SamplerIndex, FRHISamplerState *NewState)=0 |
| Sets sampler state. 更多... | |
| virtual void | RHISetShaderTexture (FRHIComputeShader *PixelShader, uint32 TextureIndex, FRHITexture *NewTexture)=0 |
| Set the shader resource view of a surface. 更多... | |
| virtual void | RHISetShaderTexture (FRHIGraphicsShader *Shader, uint32 TextureIndex, FRHITexture *NewTexture)=0 |
| Set the shader resource view of a surface. | |
| virtual void | RHISetUAVParameter (FRHIComputeShader *ComputeShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV)=0 |
| Sets a compute shader UAV parameter. 更多... | |
| virtual void | RHISetUAVParameter (FRHIComputeShader *ComputeShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV, uint32 InitialCount)=0 |
| Sets a compute shader counted UAV parameter and initial count 更多... | |
| virtual void | RHISetUAVParameter (FRHIPixelShader *PixelShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV)=0 |
| Sets a pixel shader UAV parameter. 更多... | |
Public 成员函数 继承自 IRHIComputeContext | |
| virtual void | RHIClearUAVFloat (FRHIUnorderedAccessView *UnorderedAccessViewRHI, const FVector4 &Values)=0 |
| Clears a UAV to the multi-channel floating point value provided. 更多... | |
| virtual void | RHIClearUAVUint (FRHIUnorderedAccessView *UnorderedAccessViewRHI, const FUintVector4 &Values)=0 |
| Clears a UAV to the multi-component unsigned integer value provided. 更多... | |
| virtual void | RHICopyToStagingBuffer (FRHIVertexBuffer *SourceBufferRHI, FRHIStagingBuffer *DestinationStagingBufferRHI, uint32 InOffset, uint32 InNumBytes) |
| Performs a copy of the data in 'SourceBuffer' to 'DestinationStagingBuffer. 更多... | |
| virtual void | RHIInvalidateCachedState () |
| Some RHI implementations (OpenGL) cache render state internally Signal to RHI that cached state is no longer valid | |
| virtual void | RHISetComputeShader (FRHIComputeShader *ComputeShader)=0 |
| Sets the current compute shader. | |
| virtual void | RHISetShaderSampler (FRHIComputeShader *ComputeShader, uint32 SamplerIndex, FRHISamplerState *NewState)=0 |
| Sets sampler state. 更多... | |
| virtual void | RHISetShaderTexture (FRHIComputeShader *PixelShader, uint32 TextureIndex, FRHITexture *NewTexture)=0 |
| Set the shader resource view of a surface. 更多... | |
| virtual void | RHISetUAVParameter (FRHIComputeShader *ComputeShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV)=0 |
| Sets a compute shader UAV parameter. 更多... | |
| virtual void | RHISetUAVParameter (FRHIComputeShader *ComputeShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV, uint32 InitialCount)=0 |
| Sets a compute shader counted UAV parameter and initial count 更多... | |
| virtual void | RHISubmitCommandsHint ()=0 |
| Submit the current command buffer to the GPU if possible. | |
| virtual void | RHIWriteGPUFence (FRHIGPUFence *FenceRHI) |
| Write the fence in the GPU timeline. 更多... | |
The interface RHI command context.
Sometimes the RHI handles these. On platforms that can processes command lists in parallel, it is a separate object.
|
pure virtual |
Signals the beginning of scene rendering.
The RHI makes certain caching assumptions between calls to BeginScene/EndScene. Currently the only restriction is that you can't update texture references.
在 FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 FMetalRHICommandContext 内被实现.
|
pure virtual |
Resolves from one texture to another.
| SourceTexture | - texture to resolve from, 0 is silently ignored |
| DestTexture | - texture to resolve to, 0 is silently ignored |
| ResolveParams | - optional resolve params |
| Fence | - optional fence, will be set once copy is completed by GPU |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
pure virtual |
Signals the end of scene rendering.
See RHIBeginScene.
在 FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 FMetalRHICommandContext 内被实现.
|
inlinevirtual |
Rebuilds the depth target HTILE meta data (on supported platforms).
| DepthTexture | - the depth surface to resummarize. |
|
pure virtual |
Sets Depth Bounds range with the given min/max depth.
| MinDepth | The minimum depth for depth bounds test |
| MaxDepth | The maximum depth for depth bounds test. The valid values for fMinDepth and fMaxDepth are such that 0 <= fMinDepth <= fMaxDepth <= 1 |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
pure virtual |
Sets sampler state.
| ComputeShader | The compute shader to set the sampler for. |
| SamplerIndex | The index of the sampler. |
| NewState | The new sampler state. |
实现了 IRHIComputeContext.
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
pure virtual |
Sets sampler state.
| Shader | The shader to set the sampler for. |
| SamplerIndex | The index of the sampler. |
| NewState | The new sampler state. |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
pure virtual |
Set the shader resource view of a surface.
This is used for binding TextureMS parameter types that need a multi sampled view.
实现了 IRHIComputeContext.
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
pure virtual |
Sets a compute shader UAV parameter.
| ComputeShader | The compute shader to set the UAV for. |
| UAVIndex | The index of the UAVIndex. |
| UAV | The new UAV. |
实现了 IRHIComputeContext.
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
pure virtual |
Sets a compute shader counted UAV parameter and initial count
| ComputeShader | The compute shader to set the UAV for. |
| UAVIndex | The index of the UAVIndex. |
| UAV | The new UAV. |
| InitialCount | The initial number of items in the UAV. |
实现了 IRHIComputeContext.
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
pure virtual |
Sets a pixel shader UAV parameter.
| PixelShader | The pixel shader to set the UAV for. |
| UAVIndex | The index of the UAVIndex. |
| UAV | The new UAV. |
在 FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 FMetalRHICommandContext 内被实现.