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.
|
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.
| UnorderedAccessViewRHI | The UAV to clear. |
| Values | The values to clear the UAV to, one component per channel (XYZW = RGBA). Channels not supported by the UAV are ignored. |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
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.
| UnorderedAccessViewRHI | The UAV to clear. |
| Values | The values to clear the UAV to, one component per channel (XYZW = RGBA). Channels not supported by the UAV are ignored. |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI , 以及 FOpenGLDynamicRHI 内被实现.
|
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.
| SourceBuffer | The source vertex buffer that will be inlined copied. |
| DestinationStagingBuffer | The the host-visible destination buffer |
| Offset | The start of the data in 'SourceBuffer' |
| NumBytes | The number of bytes to copy out of 'SourceBuffer' |
被 FOpenGLDynamicRHI , 以及 FMetalRHICommandContext 重载.
|
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. |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 IRHICommandContext 内被实现.
|
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 内被实现.
|
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. |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 IRHICommandContext 内被实现.
|
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. |
在 FMetalRHICommandContext, FEmptyDynamicRHI, FNullDynamicRHI, FOpenGLDynamicRHI , 以及 IRHICommandContext 内被实现.
|
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 重载.