engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IRHICommandContext类 参考abstract

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.

成员函数说明

◆ RHIBeginScene()

virtual void IRHICommandContext::RHIBeginScene ( )
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 内被实现.

◆ RHICopyToResolveTarget()

virtual void IRHICommandContext::RHICopyToResolveTarget ( FRHITexture *  SourceTexture,
FRHITexture *  DestTexture,
const FResolveParams &  ResolveParams 
)
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 内被实现.

◆ RHIEndScene()

virtual void IRHICommandContext::RHIEndScene ( )
pure virtual

Signals the end of scene rendering.

See RHIBeginScene.

在 FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 FMetalRHICommandContext 内被实现.

◆ RHIResummarizeHTile()

virtual void IRHICommandContext::RHIResummarizeHTile ( FRHITexture2D *  DepthTexture)
inlinevirtual

Rebuilds the depth target HTILE meta data (on supported platforms).

参数
DepthTexture- the depth surface to resummarize.

◆ RHISetDepthBounds()

virtual void IRHICommandContext::RHISetDepthBounds ( float  MinDepth,
float  MaxDepth 
)
pure virtual

Sets Depth Bounds range with the given min/max depth.

参数
MinDepthThe minimum depth for depth bounds test
MaxDepthThe maximum depth for depth bounds test. The valid values for fMinDepth and fMaxDepth are such that 0 <= fMinDepth <= fMaxDepth <= 1

在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.

◆ RHISetShaderSampler() [1/2]

virtual void IRHICommandContext::RHISetShaderSampler ( FRHIComputeShader *  ComputeShader,
uint32  SamplerIndex,
FRHISamplerState *  NewState 
)
pure virtual

Sets sampler state.

参数
ComputeShaderThe compute shader to set the sampler for.
SamplerIndexThe index of the sampler.
NewStateThe new sampler state.

实现了 IRHIComputeContext.

在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.

◆ RHISetShaderSampler() [2/2]

virtual void IRHICommandContext::RHISetShaderSampler ( FRHIGraphicsShader *  Shader,
uint32  SamplerIndex,
FRHISamplerState *  NewState 
)
pure virtual

Sets sampler state.

参数
ShaderThe shader to set the sampler for.
SamplerIndexThe index of the sampler.
NewStateThe new sampler state.

在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.

◆ RHISetShaderTexture()

virtual void IRHICommandContext::RHISetShaderTexture ( FRHIComputeShader *  PixelShader,
uint32  TextureIndex,
FRHITexture *  NewTexture 
)
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 内被实现.

◆ RHISetUAVParameter() [1/3]

virtual void IRHICommandContext::RHISetUAVParameter ( FRHIComputeShader *  ComputeShader,
uint32  UAVIndex,
FRHIUnorderedAccessView *  UAV 
)
pure virtual

Sets a compute shader UAV parameter.

参数
ComputeShaderThe compute shader to set the UAV for.
UAVIndexThe index of the UAVIndex.
UAVThe new UAV.

实现了 IRHIComputeContext.

在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.

◆ RHISetUAVParameter() [2/3]

virtual void IRHICommandContext::RHISetUAVParameter ( FRHIComputeShader *  ComputeShader,
uint32  UAVIndex,
FRHIUnorderedAccessView *  UAV,
uint32  InitialCount 
)
pure virtual

Sets a compute shader counted UAV parameter and initial count

参数
ComputeShaderThe compute shader to set the UAV for.
UAVIndexThe index of the UAVIndex.
UAVThe new UAV.
InitialCountThe initial number of items in the UAV.

实现了 IRHIComputeContext.

在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.

◆ RHISetUAVParameter() [3/3]

virtual void IRHICommandContext::RHISetUAVParameter ( FRHIPixelShader *  PixelShader,
uint32  UAVIndex,
FRHIUnorderedAccessView *  UAV 
)
pure virtual

Sets a pixel shader UAV parameter.

参数
PixelShaderThe pixel shader to set the UAV for.
UAVIndexThe index of the UAVIndex.
UAVThe new UAV.

在 FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 FMetalRHICommandContext 内被实现.


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