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

The interface RHI command context. 更多...

#include <MetalRHIContext.h>

+ 类 FMetalRHICommandContext 继承关系图:

Public 成员函数

FORCEINLINE FMetalContext & GetInternalContext () const
 Get the internal context
 
FORCEINLINE class FMetalProfiler * GetProfiler () const
 Get the profiler pointer
 
virtual void RHIBeginScene () override
 Signals the beginning of scene rendering. 更多...
 
virtual void RHIClearUAVFloat (FRHIUnorderedAccessView *UnorderedAccessViewRHI, const FVector4 &Values) final override
 Clears a UAV to the multi-component value provided.
 
virtual void RHIClearUAVUint (FRHIUnorderedAccessView *UnorderedAccessViewRHI, const FUintVector4 &Values) final override
 Clears a UAV to the multi-component unsigned integer value provided. 更多...
 
virtual void RHICopyToResolveTarget (FRHITexture *SourceTexture, FRHITexture *DestTexture, const FResolveParams &ResolveParams) final override
 Resolves from one texture to another. 更多...
 
virtual void RHICopyToStagingBuffer (FRHIVertexBuffer *SourceBufferRHI, FRHIStagingBuffer *DestinationStagingBufferRHI, uint32 Offset, uint32 NumBytes) final override
 Performs a copy of the data in 'SourceBuffer' to 'DestinationStagingBuffer. 更多...
 
virtual void RHIEndScene () override
 Signals the end of scene rendering. 更多...
 
virtual void RHISetComputeShader (FRHIComputeShader *ComputeShader) override
 Sets the current compute shader. 更多...
 
virtual void RHISetDepthBounds (float MinDepth, float MaxDepth) final override
 Sets Depth Bounds Testing with the given min/max depth. 更多...
 
virtual void RHISetShaderSampler (FRHIComputeShader *ComputeShader, uint32 SamplerIndex, FRHISamplerState *NewState) final override
 Sets sampler state. 更多...
 
virtual void RHISetShaderSampler (FRHIGraphicsShader *Shader, uint32 SamplerIndex, FRHISamplerState *NewState) final override
 Sets sampler state. 更多...
 
virtual void RHISetShaderTexture (FRHIComputeShader *PixelShader, uint32 TextureIndex, FRHITexture *NewTexture) final override
 Set the shader resource view of a surface. 更多...
 
virtual void RHISetShaderTexture (FRHIGraphicsShader *Shader, uint32 TextureIndex, FRHITexture *NewTexture) final override
 Set the shader resource view of a surface.
 
virtual void RHISetUAVParameter (FRHIComputeShader *ComputeShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV) final override
 Sets a compute shader UAV parameter.
 
virtual void RHISetUAVParameter (FRHIComputeShader *ComputeShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV, uint32 InitialCount) final override
 Sets a compute shader UAV parameter and initial count
 
virtual void RHISetUAVParameter (FRHIPixelShader *PixelShaderRHI, uint32 UAVIndex, FRHIUnorderedAccessView *UAVRHI) final override
 Sets a pixel shader UAV parameter.
 
virtual void RHISubmitCommandsHint () override
 Submit the current command buffer to the GPU if possible.
 
virtual void RHIWriteGPUFence (FRHIGPUFence *FenceRHI) final override
 Write the fence in the GPU timeline. 更多...
 
- Public 成员函数 继承自 IRHICommandContext
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. 更多...
 

Protected 属性

TSharedPtr< FMetalCommandBufferFence, ESPMode::ThreadSafe > CommandBufferFence
 Occlusion query batch fence
 
FMetalContext * Context
 Context implementation details.
 
FMetalBuffer PendingVertexBuffer
 Some local variables to track the pending primitive information used in RHIEnd*UP functions
 
class FMetalProfiler * Profiler
 Profiling implementation details.
 

详细描述

The interface RHI command context.

成员函数说明

◆ RHIBeginScene()

virtual void FMetalRHICommandContext::RHIBeginScene ( )
overridevirtual

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.

实现了 IRHICommandContext.

◆ RHIClearUAVUint()

virtual void FMetalRHICommandContext::RHIClearUAVUint ( FRHIUnorderedAccessView *  UnorderedAccessViewRHI,
const FUintVector4 &  Values 
)
finaloverridevirtual

Clears a UAV to the multi-component unsigned integer value provided.

Should only be called on UAVs with an integer format, or on structured buffers. Structured buffers are treated as a regular R32_UINT buffer during the clear operation, and the Values.X component is copied directly into the buffer without any format conversion. (Y,Z,W) of Values is ignored. Typed integer buffers undergo standard format conversion during the write operation. The conversion is determined by the format of the UAV.

参数
UnorderedAccessViewRHIThe UAV to clear.
ValuesThe values to clear the UAV to, one component per channel (XYZW = RGBA). Channels not supported by the UAV are ignored.

实现了 IRHIComputeContext.

◆ RHICopyToResolveTarget()

virtual void FMetalRHICommandContext::RHICopyToResolveTarget ( FRHITexture *  SourceTexture,
FRHITexture *  DestTexture,
const FResolveParams &  ResolveParams 
)
finaloverridevirtual

Resolves from one texture to another.

参数
SourceTexture- texture to resolve from, 0 is silenty ignored
DestTexture- texture to resolve to, 0 is silenty ignored
ResolveParams- optional resolve params

实现了 IRHICommandContext.

◆ RHICopyToStagingBuffer()

virtual void FMetalRHICommandContext::RHICopyToStagingBuffer ( FRHIVertexBuffer *  SourceBufferRHI,
FRHIStagingBuffer *  DestinationStagingBufferRHI,
uint32  InOffset,
uint32  InNumBytes 
)
finaloverridevirtual

Performs a copy of the data in 'SourceBuffer' to 'DestinationStagingBuffer.

' This will occur inline on the GPU timeline. This is a mechanism to perform nonblocking readback of a buffer at a point in time.

参数
SourceBufferThe source vertex buffer that will be inlined copied.
DestinationStagingBufferThe the host-visible destination buffer
OffsetThe start of the data in 'SourceBuffer'
NumBytesThe number of bytes to copy out of 'SourceBuffer'

重载 IRHIComputeContext .

◆ RHIEndScene()

virtual void FMetalRHICommandContext::RHIEndScene ( )
overridevirtual

Signals the end of scene rendering.

See RHIBeginScene.

实现了 IRHICommandContext.

◆ RHISetComputeShader()

virtual void FMetalRHICommandContext::RHISetComputeShader ( FRHIComputeShader *  ComputeShader)
overridevirtual

Sets the current compute shader.

Mostly for compliance with platforms that require shader setting before resource binding.

实现了 IRHIComputeContext.

◆ RHISetDepthBounds()

virtual void FMetalRHICommandContext::RHISetDepthBounds ( float  MinDepth,
float  MaxDepth 
)
finaloverridevirtual

Sets Depth Bounds Testing 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

实现了 IRHICommandContext.

◆ RHISetShaderSampler() [1/2]

virtual void FMetalRHICommandContext::RHISetShaderSampler ( FRHIComputeShader *  ComputeShader,
uint32  SamplerIndex,
FRHISamplerState *  NewState 
)
finaloverridevirtual

Sets sampler state.

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

实现了 IRHICommandContext.

◆ RHISetShaderSampler() [2/2]

virtual void FMetalRHICommandContext::RHISetShaderSampler ( FRHIGraphicsShader *  Shader,
uint32  SamplerIndex,
FRHISamplerState *  NewState 
)
finaloverridevirtual

Sets sampler state.

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

实现了 IRHICommandContext.

◆ RHISetShaderTexture()

virtual void FMetalRHICommandContext::RHISetShaderTexture ( FRHIComputeShader *  PixelShader,
uint32  TextureIndex,
FRHITexture *  NewTexture 
)
finaloverridevirtual

Set the shader resource view of a surface.

This is used for binding TextureMS parameter types that need a multi sampled view.

实现了 IRHICommandContext.

◆ RHIWriteGPUFence()

virtual void FMetalRHICommandContext::RHIWriteGPUFence ( FRHIGPUFence *  FenceRHI)
finaloverridevirtual

Write the fence in the GPU timeline.

The fence can then be tested on the CPU to know if the previous GPU commands are completed.

参数
Fence

重载 IRHIComputeContext .


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