Language:
Discover
By Skill Level
By Category

IRHIComputeContext

Choose your OS:

Inheritance Hierarchy

Syntax

class IRHIComputeContext

Remarks

Context that is capable of doing Compute work. Can be async or compute on the gfx pipe.

Functions

Name Description

Public function

void

 

RHIDispatchComputeShader

(
    uint32 ThreadGroupCountX,
    uint32 ThreadGroupCountY,
    uint32 ThreadGroupCountZ
)

Public function

void

 

RHIDispatchIndirectComputeShader

(
    FVertexBufferRHIParamRef ArgumentBu...,
    uint32 ArgumentOffset
)

Public function Virtual

void

 

RHIEnqueueStagedRead

(
    FStagingBufferRHIParamRef StagingBu...,
    FGPUFenceRHIParamRef Fence,
    uint32 InOffset,
    uint32 InNumBytes
)

Enqueues on the GPU timeline any necessary operations to make the contents of 'StagingBuffer' accessible to the CPU, flushing outstanding GPU writes and/or transferring from inaccessible non-unified GPU memory to local CPU memory.

Public function Virtual

void

 

RHIInvalidateCachedState()

Some RHI implementations (OpenGL) cache render state internally Signal to RHI that cached state is no longer valid

Public function

void

 

RHIPopEvent()

Public function

void

 

RHIPushEvent

(
    const TCHAR * Name,
    FColor Color
)

Public function

void

 

RHISetAsyncComputeBudget

(
    EAsyncComputeBudget Budget
)

Public function Virtual

void

 

RHISetComputePipelineState

(
    FRHIComputePipelineState * Comp...
)

Public function

void

 

RHISetComputeShader

(
    FComputeShaderRHIParamRef ComputeSh...
)

Sets the current compute shader.

Public function

void

 

RHISetShaderParameter

(
    FComputeShaderRHIParamRef ComputeSh...,
    uint32 BufferIndex,
    uint32 BaseIndex,
    uint32 NumBytes,
    const void* NewValue
)

Public function

void

 

RHISetShaderResourceViewParameter

(
    FComputeShaderRHIParamRef ComputeSh...,
    uint32 SamplerIndex,
    FShaderResourceViewRHIParamRef SRV
)

Public function

void

 

RHISetShaderSampler

(
    FComputeShaderRHIParamRef ComputeSh...,
    uint32 SamplerIndex,
    FSamplerStateRHIParamRef NewState
)

Sets sampler state.

Public function

void

 

RHISetShaderTexture

(
    FComputeShaderRHIParamRef PixelShad...,
    uint32 TextureIndex,
    FTextureRHIParamRef NewTexture
)

Set the shader resource view of a surface.

Public function

void

 

RHISetShaderUniformBuffer

(
    FComputeShaderRHIParamRef ComputeSh...,
    uint32 BufferIndex,
    FUniformBufferRHIParamRef Buffer
)

Public function

void

 

RHISetUAVParameter

(
    FComputeShaderRHIParamRef ComputeSh...,
    uint32 UAVIndex,
    FUnorderedAccessViewRHIParamRef UAV
)

Sets a compute shader UAV parameter.

Public function

void

 

RHISetUAVParameter

(
    FComputeShaderRHIParamRef ComputeSh...,
    uint32 UAVIndex,
    FUnorderedAccessViewRHIParamRef UAV,
    uint32 InitialCount
)

Sets a compute shader counted UAV parameter and initial count

Public function

void

 

RHISubmitCommandsHint()

Submit the current command buffer to the GPU if possible.

Public function

void

 

RHITransitionResources

(
    EResourceTransitionAccess Transitio...,
    EResourceTransitionPipeline Transit...,
    FUnorderedAccessViewRHIParamRef ...,
    int32 NumUAVs,
    FComputeFenceRHIParamRef WriteCompu...
)

Explicitly transition a UAV from readable -> writable by the GPU or vice versa.

Public function

void

 

RHIWaitComputeFence

(
    FComputeFenceRHIParamRef InFence
)

Compute queue will wait for the fence to be written before continuing.

References

Module

RHI

Header

Runtime/RHI/Public/RHIContext.h