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

Context that is capable of doing Compute work. 更多...

#include <RHIContext.h>

+ 类 IRHIComputeContext 继承关系图:

Public 成员函数

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. 更多...
 

详细描述

Context that is capable of doing Compute work.

Can be async or compute on the gfx pipe.

成员函数说明

◆ RHIClearUAVFloat()

virtual void IRHIComputeContext::RHIClearUAVFloat ( FRHIUnorderedAccessView *  UnorderedAccessViewRHI,
const FVector4 &  Values 
)
pure virtual

Clears a UAV to the multi-channel floating point value provided.

Should only be called on UAVs with a floating point 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 floating point 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.

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

◆ RHIClearUAVUint()

virtual void IRHIComputeContext::RHIClearUAVUint ( FRHIUnorderedAccessView *  UnorderedAccessViewRHI,
const FUintVector4 &  Values 
)
pure virtual

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.

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

◆ RHICopyToStagingBuffer()

virtual void IRHIComputeContext::RHICopyToStagingBuffer ( FRHIVertexBuffer *  SourceBufferRHI,
FRHIStagingBuffer *  DestinationStagingBufferRHI,
uint32  InOffset,
uint32  InNumBytes 
)
inlinevirtual

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'

被 FOpenGLDynamicRHI , 以及 FMetalRHICommandContext 重载.

◆ RHISetShaderSampler()

virtual void IRHIComputeContext::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.

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

◆ RHISetShaderTexture()

virtual void IRHIComputeContext::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.

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

◆ RHISetUAVParameter() [1/2]

virtual void IRHIComputeContext::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.

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

◆ RHISetUAVParameter() [2/2]

virtual void IRHIComputeContext::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.

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

◆ RHIWriteGPUFence()

virtual void IRHIComputeContext::RHIWriteGPUFence ( FRHIGPUFence *  FenceRHI)
inlinevirtual

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

被 FMetalRHICommandContext , 以及 FOpenGLDynamicRHI 重载.


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