|
| FORCEINLINE void | CachedSetupTextureStage (FOpenGLContextState &ContextState, GLint TextureIndex, GLenum Target, GLuint Resource, GLint BaseMip, GLint NumMips) |
| | Set a resource on texture target of a specific real OpenGL stage. 更多...
|
| |
|
| FOpenGLDynamicRHI () |
| | Initialization constructor.
|
| |
|
virtual void | Init () |
| | Initializes the RHI; separate from IDynamicRHIModule::CreateRHI so that GDynamicRHI is set when it is called.
|
| |
|
void | InternalSetShaderTexture (FOpenGLTextureBase *Texture, FOpenGLShaderResourceView *SRV, GLint TextureIndex, GLenum Target, GLuint Resource, int NumMips, int LimitMip) |
| | Remember what RHI user wants set on a specific OpenGL texture stage, translating from Stage and TextureIndex for stage pair.
|
| |
|
void | InvalidateQueries () |
| | Inform all queries about the need to recreate themselves after OpenGL context they're in gets deleted.
|
| |
| virtual void * | LockStagingBuffer_RenderThread (class FRHICommandListImmediate &RHICmdList, FRHIStagingBuffer *StagingBuffer, FRHIGPUFence *Fence, uint32 Offset, uint32 SizeRHI) final override |
| | Lock a staging buffer to read contents on the CPU that were written by the GPU, without having to stall. 更多...
|
| |
|
virtual void | PostInit () |
| | Called after the RHI is initialized; before the render thread is started.
|
| |
|
void | RegisterQuery (FOpenGLRenderQuery *Query) |
| | Add query to Queries list upon its creation.
|
| |
| virtual FTexture2DRHIRef | RHIAsyncCreateTexture2D (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, void **InitialMipData, uint32 NumInitialMips) final override |
| | Thread-safe function that can be used to create a texture outside of the rendering thread. 更多...
|
| |
| virtual FTexture2DRHIRef | RHIAsyncReallocateTexture2D (FRHITexture2D *Texture2D, int32 NewMipCount, int32 NewSizeX, int32 NewSizeY, FThreadSafeCounter *RequestStatus) final override |
| | Starts an asynchronous texture reallocation. 更多...
|
| |
| virtual void | RHIBeginScene () final override |
| | Signals the beginning of scene rendering. 更多...
|
| |
| virtual uint64 | RHICalcTexture2DPlatformSize (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, const FRHIResourceCreateInfo &CreateInfo, uint32 &OutAlign) final override |
| | Computes the total size of a 2D texture with the specified parameters. 更多...
|
| |
| virtual uint64 | RHICalcTexture3DPlatformSize (uint32 SizeX, uint32 SizeY, uint32 SizeZ, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, const FRHIResourceCreateInfo &CreateInfo, uint32 &OutAlign) final override |
| | Computes the total size of a 3D texture with the specified parameters. 更多...
|
| |
| virtual uint64 | RHICalcTextureCubePlatformSize (uint32 Size, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, const FRHIResourceCreateInfo &CreateInfo, uint32 &OutAlign) final override |
| | Computes the total size of a cube texture with the specified parameters. 更多...
|
| |
| virtual ETextureReallocationStatus | RHICancelAsyncReallocateTexture2D (FRHITexture2D *Texture2D, bool bBlockUntilCompleted) final override |
| | Cancels an async reallocation for the specified texture. 更多...
|
| |
| virtual void | RHIClearUAVFloat (FRHIUnorderedAccessView *UnorderedAccessViewRHI, const FVector4 &Values) final override |
| | Clears a UAV to the multi-channel floating point value provided. 更多...
|
| |
| virtual void | RHIClearUAVUint (FRHIUnorderedAccessView *UnorderedAccessViewRHI, const FUintVector4 &Values) final override |
| | Clears a UAV to the multi-component unsigned integer value provided. 更多...
|
| |
| virtual uint32 | RHIComputeMemorySize (FRHITexture *TextureRHI) final override |
| | Computes the size in memory required by a given texture. 更多...
|
| |
| virtual void | RHICopySharedMips (FRHITexture2D *DestTexture2D, FRHITexture2D *SrcTexture2D) final override |
| | Copies shared mip levels from one texture to another. 更多...
|
| |
| 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 InOffset, uint32 InNumBytes) final override |
| | Performs a copy of the data in 'SourceBuffer' to 'DestinationStagingBuffer. 更多...
|
| |
| virtual void | RHICopyVertexBuffer (FRHIVertexBuffer *SourceBuffer, FRHIVertexBuffer *DestBuffer) final override |
| | Copies the contents of one vertex buffer to another vertex buffer. 更多...
|
| |
| virtual FBoundShaderStateRHIRef | RHICreateBoundShaderState (FRHIVertexDeclaration *VertexDeclarationRHI, FRHIVertexShader *VertexShaderRHI, FRHIHullShader *HullShaderRHI, FRHIDomainShader *DomainShaderRHI, FRHIPixelShader *PixelShaderRHI, FRHIGeometryShader *GeometryShaderRHI) final override |
| | Creates a bound shader state instance which encapsulates a decl, vertex shader, hull shader, domain shader and pixel shader CAUTION: Even though this is marked as threadsafe, it is only valid to call from the render thread or the RHI thread. 更多...
|
| |
| virtual FRenderQueryPoolRHIRef | RHICreateRenderQueryPool (ERenderQueryType QueryType, uint32 NumQueries=UINT32_MAX) final override |
| | Creates a pool for querys like timers or occlusion queries. 更多...
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (const FShaderResourceViewInitializer &Initializer) final override |
| | Creates a shader resource view
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHIIndexBuffer *Buffer) final override |
| | Creates a shader resource view of the given index buffer.
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHIStructuredBuffer *StructuredBuffer) final override |
| | Creates a shader resource view of the given structured buffer.
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHITexture *Texture, const FRHITextureSRVCreateInfo &CreateInfo) final override |
| | Creates a shader resource view for a texture
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHIVertexBuffer *VertexBuffer, uint32 Stride, uint8 Format) final override |
| | Creates a shader resource view of the given vertex buffer.
|
| |
| virtual FStagingBufferRHIRef | RHICreateStagingBuffer () final override |
| | Creates a staging buffer, which is memory visible to the cpu without any locking. 更多...
|
| |
| virtual FStructuredBufferRHIRef | RHICreateStructuredBuffer (uint32 Stride, uint32 Size, uint32 InUsage, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| |
| virtual FTexture2DRHIRef | RHICreateTexture2D (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| | Creates a 2D RHI texture resource 更多...
|
| |
| virtual FTexture2DArrayRHIRef | RHICreateTexture2DArray (uint32 SizeX, uint32 SizeY, uint32 SizeZ, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| | Creates a Array RHI texture resource 更多...
|
| |
| virtual FTexture3DRHIRef | RHICreateTexture3D (uint32 SizeX, uint32 SizeY, uint32 SizeZ, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| | Creates a 3d RHI texture resource 更多...
|
| |
| virtual FTextureCubeRHIRef | RHICreateTextureCube (uint32 Size, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| | Creates a Cube RHI texture resource 更多...
|
| |
| virtual FTextureCubeRHIRef | RHICreateTextureCubeArray (uint32 Size, uint32 ArraySize, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| | Creates a Cube Array RHI texture resource 更多...
|
| |
| virtual FTexture2DRHIRef | RHICreateTextureExternal2D (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| | Creates a 2D RHI texture external resource 更多...
|
| |
| virtual FUniformBufferRHIRef | RHICreateUniformBuffer (const void *Contents, const FRHIUniformBufferLayout &Layout, EUniformBufferUsage Usage, EUniformBufferValidation Validation) final override |
| | Creates a uniform buffer. 更多...
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHIIndexBuffer *IndexBuffer, uint8 Format) final override |
| | Creates an unordered access view of the given index buffer.
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHIStructuredBuffer *StructuredBuffer, bool bUseUAVCounter, bool bAppendBuffer) final override |
| | Creates an unordered access view of the given structured buffer.
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHITexture *Texture, uint32 MipLevel) final override |
| | Creates an unordered access view of the given texture.
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHIVertexBuffer *VertexBuffer, uint8 Format) final override |
| | Creates an unordered access view of the given vertex buffer.
|
| |
| virtual FVertexBufferRHIRef | RHICreateVertexBuffer (uint32 Size, uint32 InUsage, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) final override |
| |
| virtual void | RHIEndScene () final override |
| | Signals the end of scene rendering. 更多...
|
| |
| virtual ETextureReallocationStatus | RHIFinalizeAsyncReallocateTexture2D (FRHITexture2D *Texture2D, bool bBlockUntilCompleted) final override |
| | Finalizes an async reallocation request. 更多...
|
| |
|
virtual void | RHIGenerateMips (FRHITexture *Texture) final override |
| | Generates mip maps for a texture.
|
| |
| virtual bool | RHIGetAvailableResolutions (FScreenResolutionArray &Resolutions, bool bIgnoreRefreshRate) final override |
| | Retrieve available screen resolutions. 更多...
|
| |
| virtual uint64 | RHIGetMinimumAlignmentForBufferBackedSRV (EPixelFormat Format) final override |
| | Gets the minimum alignment (in bytes) required for creating a shader resource view on a buffer-backed resource. 更多...
|
| |
| virtual void * | RHIGetNativeDevice () final override |
| | Provides access to the native device. 更多...
|
| |
| virtual void * | RHIGetNativeInstance () final override |
| | Provides access to the native instance. 更多...
|
| |
| virtual void | RHIGetResourceInfo (FRHITexture *Ref, FRHIResourceInfo &OutInfo) final override |
| |
| virtual void | RHIGetSupportedResolution (uint32 &Width, uint32 &Height) final override |
| | Returns a supported screen resolution that most closely matches input. 更多...
|
| |
| virtual void | RHIGetTextureMemoryStats (FTextureMemoryStats &OutStats) final override |
| | Retrieves texture memory stats. 更多...
|
| |
| virtual bool | RHIGetTextureMemoryVisualizeData (FColor *TextureData, int32 SizeX, int32 SizeY, int32 Pitch, int32 PixelSize) final override |
| | Fills a texture with to visualize the texture pool memory. 更多...
|
| |
|
virtual void | RHIInvalidateCachedState () final override |
| | Some RHI implementations (OpenGL) cache render state internally Signal to RHI that cached state is no longer valid
|
| |
| virtual void * | RHILockStagingBuffer (FRHIStagingBuffer *StagingBuffer, FRHIGPUFence *Fence, uint32 Offset, uint32 SizeRHI) final override |
| | Lock a staging buffer to read contents on the CPU that were written by the GPU, without having to stall. 更多...
|
| |
| virtual void * | RHILockTexture2D (FRHITexture2D *Texture, uint32 MipIndex, EResourceLockMode LockMode, uint32 &DestStride, bool bLockWithinMiptail) final override |
| | Locks an RHI texture's mip-map for read/write operations on the CPU 更多...
|
| |
| virtual void * | RHILockTexture2DArray (FRHITexture2DArray *Texture, uint32 TextureIndex, uint32 MipIndex, EResourceLockMode LockMode, uint32 &DestStride, bool bLockWithinMiptail) final override |
| | Locks an RHI texture's mip-map for read/write operations on the CPU 更多...
|
| |
| virtual void * | RHILockTextureCubeFace (FRHITextureCube *Texture, uint32 FaceIndex, uint32 ArrayIndex, uint32 MipIndex, EResourceLockMode LockMode, uint32 &DestStride, bool bLockWithinMiptail) final override |
| | Locks an RHI texture's mip-map for read/write operations on the CPU 更多...
|
| |
|
virtual void | RHIMapStagingSurface (FRHITexture *Texture, FRHIGPUFence *Fence, void *&OutData, int32 &OutWidth, int32 &OutHeight, uint32 GPUIndex=0) final override |
| | Watch out for OutData to be 0 (can happen on DXGI_ERROR_DEVICE_REMOVED), don't call RHIUnmapStagingSurface in that case.
|
| |
|
void | RHIPerFrameRHIFlushComplete () |
| | Called once per frame just before deferred deletion in FRHIResource::FlushPendingDeletes
|
| |
| virtual void | RHIReadSurfaceData (FRHITexture *Texture, FIntRect Rect, TArray< FColor > &OutData, FReadSurfaceDataFlags InFlags) final override |
| | Reads the contents of a texture to an output buffer (non MSAA and MSAA) and returns it as a FColor array. 更多...
|
| |
|
virtual void | RHISetComputeShader (FRHIComputeShader *ComputeShader) final override |
| | Sets the current compute shader.
|
| |
| virtual void | RHISetDepthBounds (float MinDepth, float MaxDepth) final override |
| | Sets Depth Bounds range 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 counted UAV parameter and initial count 更多...
|
| |
| virtual void | RHISetUAVParameter (FRHIPixelShader *PixelShader, uint32 UAVIndex, FRHIUnorderedAccessView *UAV) final override |
| | Sets a pixel shader UAV parameter. 更多...
|
| |
|
virtual void | RHISubmitCommandsHint () final override |
| | Submit the current command buffer to the GPU if possible.
|
| |
| virtual void | RHITransferIndexBufferUnderlyingResource (FRHIIndexBuffer *DestIndexBuffer, FRHIIndexBuffer *SrcIndexBuffer) final override |
| | Transfer metadata and underlying resource from src to dest and release any resource owned by dest. 更多...
|
| |
| virtual void | RHITransferVertexBufferUnderlyingResource (FRHIVertexBuffer *DestVertexBuffer, FRHIVertexBuffer *SrcVertexBuffer) final override |
| | Transfer metadata and underlying resource from src to dest and release any resource owned by dest. 更多...
|
| |
| virtual void | RHIUnlockStagingBuffer (FRHIStagingBuffer *StagingBuffer) final override |
| | Unlock a staging buffer previously locked with RHILockStagingBuffer. 更多...
|
| |
| virtual void | RHIUnlockTexture2D (FRHITexture2D *Texture, uint32 MipIndex, bool bLockWithinMiptail) final override |
| | Unlocks a previously locked RHI texture resource 更多...
|
| |
| virtual void | RHIUnlockTexture2DArray (FRHITexture2DArray *Texture, uint32 TextureIndex, uint32 MipIndex, bool bLockWithinMiptail) final override |
| | Unlocks a previously locked RHI texture resource 更多...
|
| |
| virtual void | RHIUnlockTextureCubeFace (FRHITextureCube *Texture, uint32 FaceIndex, uint32 ArrayIndex, uint32 MipIndex, bool bLockWithinMiptail) final override |
| | Unlocks a previously locked RHI texture resource 更多...
|
| |
|
virtual void | RHIUnmapStagingSurface (FRHITexture *Texture, uint32 GPUIndex=0) final override |
| | call after a succesful RHIMapStagingSurface() call
|
| |
| virtual void | RHIUpdateTexture2D (FRHITexture2D *Texture, uint32 MipIndex, const struct FUpdateTextureRegion2D &UpdateRegion, uint32 SourcePitch, const uint8 *SourceData) final override |
| | Updates a region of a 2D texture from system memory 更多...
|
| |
| virtual void | RHIUpdateTexture3D (FRHITexture3D *Texture, uint32 MipIndex, const struct FUpdateTextureRegion3D &UpdateRegion, uint32 SourceRowPitch, uint32 SourceDepthPitch, const uint8 *SourceData) final override |
| | Updates a region of a 3D texture from system memory 更多...
|
| |
| virtual void | RHIVirtualTextureSetFirstMipInMemory (FRHITexture2D *Texture, uint32 FirstMip) final override |
| | Function that is used to allocate / free space used for virtual texture mip levels. 更多...
|
| |
| virtual void | RHIVirtualTextureSetFirstMipVisible (FRHITexture2D *Texture, uint32 FirstMip) final override |
| | Function that can be used to update which is the first visible mip to the GPU. 更多...
|
| |
| virtual void | RHIWriteGPUFence (FRHIGPUFence *FenceRHI) final override |
| | Write the fence in the GPU timeline. 更多...
|
| |
|
virtual void | Shutdown () |
| | Shutdown the RHI; handle shutdown and resource destruction before the RHI's actual destructor is called (so that all resources of the RHI are still available for shutdown).
|
| |
| virtual void | UnlockStagingBuffer_RenderThread (class FRHICommandListImmediate &RHICmdList, FRHIStagingBuffer *StagingBuffer) final override |
| | Unlock a staging buffer previously locked with LockStagingBuffer_RenderThread. 更多...
|
| |
|
void | UnregisterQuery (FOpenGLRenderQuery *Query) |
| | Remove query from Queries list upon its deletion.
|
| |
|
| ~FOpenGLDynamicRHI () |
| | Destructor
|
| |
|
virtual void | Init ()=0 |
| | Initializes the RHI; separate from IDynamicRHIModule::CreateRHI so that GDynamicRHI is set when it is called.
|
| |
|
void | InitPixelFormatInfo (const TArray< uint32 > &PixelFormatBlockBytesIn) |
| | Called after PostInit to initialize the pixel format info, which is needed for some commands default implementations
|
| |
| virtual void * | LockStagingBuffer_RenderThread (class FRHICommandListImmediate &RHICmdList, FRHIStagingBuffer *StagingBuffer, FRHIGPUFence *Fence, uint32 Offset, uint32 SizeRHI) |
| | Lock a staging buffer to read contents on the CPU that were written by the GPU, without having to stall. 更多...
|
| |
|
virtual void | PostInit () |
| | Called after the RHI is initialized; before the render thread is started.
|
| |
| virtual FTexture2DRHIRef | RHIAsyncCreateTexture2D (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, void **InitialMipData, uint32 NumInitialMips)=0 |
| | Thread-safe function that can be used to create a texture outside of the rendering thread. 更多...
|
| |
| virtual FTexture2DRHIRef | RHIAsyncReallocateTexture2D (FRHITexture2D *Texture2D, int32 NewMipCount, int32 NewSizeX, int32 NewSizeY, FThreadSafeCounter *RequestStatus)=0 |
| | Starts an asynchronous texture reallocation. 更多...
|
| |
| virtual uint64 | RHICalcTexture2DPlatformSize (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, const FRHIResourceCreateInfo &CreateInfo, uint32 &OutAlign)=0 |
| | Computes the total size of a 2D texture with the specified parameters. 更多...
|
| |
| virtual uint64 | RHICalcTexture3DPlatformSize (uint32 SizeX, uint32 SizeY, uint32 SizeZ, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, const FRHIResourceCreateInfo &CreateInfo, uint32 &OutAlign)=0 |
| | Computes the total size of a 3D texture with the specified parameters. 更多...
|
| |
| virtual uint64 | RHICalcTextureCubePlatformSize (uint32 Size, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, const FRHIResourceCreateInfo &CreateInfo, uint32 &OutAlign)=0 |
| | Computes the total size of a cube texture with the specified parameters. 更多...
|
| |
| virtual uint64 | RHICalcVMTexture2DPlatformSize (uint32 Mip0Width, uint32 Mip0Height, uint8 Format, uint32 NumMips, uint32 FirstMipIdx, uint32 NumSamples, ETextureCreateFlags Flags, uint32 &OutAlign) |
| | Computes the total size of a virtual memory (VM) based 2D texture with the specified parameters. 更多...
|
| |
| virtual ETextureReallocationStatus | RHICancelAsyncReallocateTexture2D (FRHITexture2D *Texture2D, bool bBlockUntilCompleted)=0 |
| | Cancels an async reallocation for the specified texture. 更多...
|
| |
| virtual uint32 | RHIComputeMemorySize (FRHITexture *TextureRHI)=0 |
| | Computes the size in memory required by a given texture. 更多...
|
| |
| virtual void | RHICopySharedMips (FRHITexture2D *DestTexture2D, FRHITexture2D *SrcTexture2D)=0 |
| | Copies shared mip levels from one texture to another. 更多...
|
| |
| virtual void | RHICopyVertexBuffer (FRHIVertexBuffer *SourceBuffer, FRHIVertexBuffer *DestBuffer)=0 |
| | Copies the contents of one vertex buffer to another vertex buffer. 更多...
|
| |
| virtual FBoundShaderStateRHIRef | RHICreateBoundShaderState (FRHIVertexDeclaration *VertexDeclaration, FRHIVertexShader *VertexShader, FRHIHullShader *HullShader, FRHIDomainShader *DomainShader, FRHIPixelShader *PixelShader, FRHIGeometryShader *GeometryShader)=0 |
| | Creates a bound shader state instance which encapsulates a decl, vertex shader, hull shader, domain shader and pixel shader CAUTION: Even though this is marked as threadsafe, it is only valid to call from the render thread or the RHI thread. 更多...
|
| |
| FComputeFenceRHIRef | RHICreateComputeFence (const FName &Name) |
| | Creates a compute fence. 更多...
|
| |
| virtual FGraphicsPipelineStateRHIRef | RHICreateGraphicsPipelineState (const FGraphicsPipelineStateInitializer &Initializer) |
| | Creates a graphics pipeline state object (PSO) that represents a complete gpu pipeline for rendering. 更多...
|
| |
| virtual FRenderQueryPoolRHIRef | RHICreateRenderQueryPool (ERenderQueryType QueryType, uint32 NumQueries=UINT32_MAX) |
| | Creates a pool for querys like timers or occlusion queries. 更多...
|
| |
| virtual FRHIShaderLibraryRef | RHICreateShaderLibrary (EShaderPlatform Platform, FString const &FilePath, FString const &Name) |
| | Attempts to open a shader library for the given shader platform & name within the provided directory. 更多...
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (const FShaderResourceViewInitializer &Initializer)=0 |
| | Creates a shader resource view
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHIIndexBuffer *Buffer)=0 |
| | Creates a shader resource view of the given index buffer.
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHIStructuredBuffer *StructuredBuffer)=0 |
| | Creates a shader resource view of the given structured buffer.
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHITexture *Texture2DRHI, const FRHITextureSRVCreateInfo &CreateInfo)=0 |
| | Creates a shader resource view for a texture
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceView (FRHIVertexBuffer *VertexBuffer, uint32 Stride, uint8 Format)=0 |
| | Creates a shader resource view of the given vertex buffer.
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceViewFMask (FRHITexture2D *Texture2DRHI) |
| | Create a shader resource view that can be used to access the multi-sample fmask metadata of a render target on supported platforms.
|
| |
|
virtual FShaderResourceViewRHIRef | RHICreateShaderResourceViewWriteMask (FRHITexture2D *Texture2DRHI) |
| | Create a shader resource view that can be used to access the write mask metadata of a render target on supported platforms.
|
| |
| virtual FStagingBufferRHIRef | RHICreateStagingBuffer () |
| | Creates a staging buffer, which is memory visible to the cpu without any locking. 更多...
|
| |
| virtual FStructuredBufferRHIRef | RHICreateStructuredBuffer (uint32 Stride, uint32 Size, uint32 InUsage, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo)=0 |
| |
| virtual FTexture2DRHIRef | RHICreateTexture2D (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo)=0 |
| | Creates a 2D RHI texture resource 更多...
|
| |
| virtual FTexture2DArrayRHIRef | RHICreateTexture2DArray (uint32 SizeX, uint32 SizeY, uint32 SizeZ, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo)=0 |
| | Creates a Array RHI texture resource 更多...
|
| |
| virtual FTexture3DRHIRef | RHICreateTexture3D (uint32 SizeX, uint32 SizeY, uint32 SizeZ, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo)=0 |
| | Creates a 3d RHI texture resource 更多...
|
| |
| virtual FTextureCubeRHIRef | RHICreateTextureCube (uint32 Size, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo)=0 |
| | Creates a Cube RHI texture resource 更多...
|
| |
| virtual FTextureCubeRHIRef | RHICreateTextureCubeArray (uint32 Size, uint32 ArraySize, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo)=0 |
| | Creates a Cube Array RHI texture resource 更多...
|
| |
| virtual FTexture2DRHIRef | RHICreateTextureExternal2D (uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, uint32 NumSamples, ETextureCreateFlags Flags, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo) |
| | Creates a 2D RHI texture external resource 更多...
|
| |
| virtual FUniformBufferRHIRef | RHICreateUniformBuffer (const void *Contents, const FRHIUniformBufferLayout &Layout, EUniformBufferUsage Usage, EUniformBufferValidation Validation)=0 |
| | Creates a uniform buffer. 更多...
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHIIndexBuffer *IndexBuffer, uint8 Format)=0 |
| | Creates an unordered access view of the given index buffer.
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHIStructuredBuffer *StructuredBuffer, bool bUseUAVCounter, bool bAppendBuffer)=0 |
| | Creates an unordered access view of the given structured buffer.
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHITexture *Texture, uint32 MipLevel)=0 |
| | Creates an unordered access view of the given texture.
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHITexture *Texture, uint32 MipLevel, uint8 Format) |
| | Creates an unordered access view of the given texture.
|
| |
|
virtual FUnorderedAccessViewRHIRef | RHICreateUnorderedAccessView (FRHIVertexBuffer *VertexBuffer, uint8 Format)=0 |
| | Creates an unordered access view of the given vertex buffer.
|
| |
| virtual FVertexBufferRHIRef | RHICreateVertexBuffer (uint32 Size, uint32 InUsage, ERHIAccess InResourceState, FRHIResourceCreateInfo &CreateInfo)=0 |
| |
| virtual ETextureReallocationStatus | RHIFinalizeAsyncReallocateTexture2D (FRHITexture2D *Texture2D, bool bBlockUntilCompleted)=0 |
| | Finalizes an async reallocation request. 更多...
|
| |
|
virtual void | RHIGenerateMips (FRHITexture *Texture) |
| | Generates mip maps for a texture.
|
| |
| virtual bool | RHIGetAvailableResolutions (FScreenResolutionArray &Resolutions, bool bIgnoreRefreshRate)=0 |
| | Retrieve available screen resolutions. 更多...
|
| |
| virtual uint64 | RHIGetMinimumAlignmentForBufferBackedSRV (EPixelFormat Format) |
| | Gets the minimum alignment (in bytes) required for creating a shader resource view on a buffer-backed resource. 更多...
|
| |
| virtual void * | RHIGetNativeDevice ()=0 |
| | Provides access to the native device. 更多...
|
| |
| virtual void * | RHIGetNativeInstance ()=0 |
| | Provides access to the native instance. 更多...
|
| |
| virtual void | RHIGetResourceInfo (FRHITexture *Ref, FRHIResourceInfo &OutInfo)=0 |
| |
| virtual void | RHIGetSupportedResolution (uint32 &Width, uint32 &Height)=0 |
| | Returns a supported screen resolution that most closely matches input. 更多...
|
| |
| virtual void | RHIGetTextureMemoryStats (FTextureMemoryStats &OutStats)=0 |
| | Retrieves texture memory stats. 更多...
|
| |
| virtual bool | RHIGetTextureMemoryVisualizeData (FColor *TextureData, int32 SizeX, int32 SizeY, int32 Pitch, int32 PixelSize)=0 |
| | Fills a texture with to visualize the texture pool memory. 更多...
|
| |
| virtual void * | RHILockStagingBuffer (FRHIStagingBuffer *StagingBuffer, FRHIGPUFence *Fence, uint32 Offset, uint32 SizeRHI) |
| | Lock a staging buffer to read contents on the CPU that were written by the GPU, without having to stall. 更多...
|
| |
| virtual void * | RHILockTexture2D (FRHITexture2D *Texture, uint32 MipIndex, EResourceLockMode LockMode, uint32 &DestStride, bool bLockWithinMiptail)=0 |
| | Locks an RHI texture's mip-map for read/write operations on the CPU 更多...
|
| |
| virtual void * | RHILockTexture2DArray (FRHITexture2DArray *Texture, uint32 TextureIndex, uint32 MipIndex, EResourceLockMode LockMode, uint32 &DestStride, bool bLockWithinMiptail)=0 |
| | Locks an RHI texture's mip-map for read/write operations on the CPU 更多...
|
| |
| virtual void * | RHILockTextureCubeFace (FRHITextureCube *Texture, uint32 FaceIndex, uint32 ArrayIndex, uint32 MipIndex, EResourceLockMode LockMode, uint32 &DestStride, bool bLockWithinMiptail)=0 |
| | Locks an RHI texture's mip-map for read/write operations on the CPU 更多...
|
| |
|
virtual void | RHIMapStagingSurface (FRHITexture *Texture, FRHIGPUFence *Fence, void *&OutData, int32 &OutWidth, int32 &OutHeight, uint32 GPUIndex=0)=0 |
| | Watch out for OutData to be 0 (can happen on DXGI_ERROR_DEVICE_REMOVED), don't call RHIUnmapStagingSurface in that case.
|
| |
|
virtual void | RHIPerFrameRHIFlushComplete () |
| | Called once per frame just before deferred deletion in FRHIResource::FlushPendingDeletes
|
| |
| virtual void | RHIReadSurfaceData (FRHITexture *Texture, FIntRect Rect, TArray< FColor > &OutData, FReadSurfaceDataFlags InFlags)=0 |
| | Reads the contents of a texture to an output buffer (non MSAA and MSAA) and returns it as a FColor array. 更多...
|
| |
| virtual void | RHITransferIndexBufferUnderlyingResource (FRHIIndexBuffer *DestIndexBuffer, FRHIIndexBuffer *SrcIndexBuffer) |
| | Transfer metadata and underlying resource from src to dest and release any resource owned by dest. 更多...
|
| |
| virtual void | RHITransferTexture (FRHITexture2D *Texture, FIntRect Rect, uint32 SrcGPUIndex, uint32 DestGPUIndex, bool PullData) |
| | Synchronizes the content of a texture resource between two GPUs using a copy operation. 更多...
|
| |
| virtual void | RHITransferVertexBufferUnderlyingResource (FRHIVertexBuffer *DestVertexBuffer, FRHIVertexBuffer *SrcVertexBuffer) |
| | Transfer metadata and underlying resource from src to dest and release any resource owned by dest. 更多...
|
| |
| virtual void | RHIUnlockStagingBuffer (FRHIStagingBuffer *StagingBuffer) |
| | Unlock a staging buffer previously locked with RHILockStagingBuffer. 更多...
|
| |
| virtual void | RHIUnlockTexture2D (FRHITexture2D *Texture, uint32 MipIndex, bool bLockWithinMiptail)=0 |
| | Unlocks a previously locked RHI texture resource 更多...
|
| |
| virtual void | RHIUnlockTexture2DArray (FRHITexture2DArray *Texture, uint32 TextureIndex, uint32 MipIndex, bool bLockWithinMiptail)=0 |
| | Unlocks a previously locked RHI texture resource 更多...
|
| |
| virtual void | RHIUnlockTextureCubeFace (FRHITextureCube *Texture, uint32 FaceIndex, uint32 ArrayIndex, uint32 MipIndex, bool bLockWithinMiptail)=0 |
| | Unlocks a previously locked RHI texture resource 更多...
|
| |
|
virtual void | RHIUnmapStagingSurface (FRHITexture *Texture, uint32 GPUIndex=0)=0 |
| | call after a succesful RHIMapStagingSurface() call
|
| |
| virtual void | RHIUpdateFromBufferTexture2D (FRHITexture2D *Texture, uint32 MipIndex, const struct FUpdateTextureRegion2D &UpdateRegion, uint32 SourcePitch, FRHIStructuredBuffer *Buffer, uint32 BufferOffset) |
| | Updates a region of a 2D texture from GPU memory provided by the given buffer (may not be implemented on every platform) 更多...
|
| |
| virtual void | RHIUpdateTexture2D (FRHITexture2D *Texture, uint32 MipIndex, const struct FUpdateTextureRegion2D &UpdateRegion, uint32 SourcePitch, const uint8 *SourceData)=0 |
| | Updates a region of a 2D texture from system memory 更多...
|
| |
| virtual void | RHIUpdateTexture3D (FRHITexture3D *Texture, uint32 MipIndex, const struct FUpdateTextureRegion3D &UpdateRegion, uint32 SourceRowPitch, uint32 SourceDepthPitch, const uint8 *SourceData)=0 |
| | Updates a region of a 3D texture from system memory 更多...
|
| |
| virtual void | RHIVirtualTextureSetFirstMipInMemory (FRHITexture2D *Texture, uint32 FirstMip)=0 |
| | Function that is used to allocate / free space used for virtual texture mip levels. 更多...
|
| |
| virtual void | RHIVirtualTextureSetFirstMipVisible (FRHITexture2D *Texture, uint32 FirstMip)=0 |
| | Function that can be used to update which is the first visible mip to the GPU. 更多...
|
| |
|
virtual void | Shutdown ()=0 |
| | Shutdown the RHI; handle shutdown and resource destruction before the RHI's actual destructor is called (so that all resources of the RHI are still available for shutdown).
|
| |
| virtual void | UnlockStagingBuffer_RenderThread (class FRHICommandListImmediate &RHICmdList, FRHIStagingBuffer *StagingBuffer) |
| | Unlock a staging buffer previously locked with LockStagingBuffer_RenderThread. 更多...
|
| |
|
virtual | ~FDynamicRHI () |
| | Declare a virtual destructor, so the dynamic RHI can be deleted without knowing its type.
|
| |