Loading...
Searching...
No Matches
HgiGLBlitCmds Class Referencefinal

OpenGL implementation of HgiBlitCmds. More...

#include <blitCmds.h>

+ Inheritance diagram for HgiGLBlitCmds:

Public Member Functions

HGIGL_API void PushDebugGroup (const char *label) override
 Push a debug marker.
 
HGIGL_API void PopDebugGroup () override
 Pop the lastest debug.
 
HGIGL_API void CopyTextureGpuToCpu (HgiTextureGpuToCpuOp const &copyOp) override
 Copy a texture resource from GPU to CPU.
 
HGIGL_API void CopyTextureCpuToGpu (HgiTextureCpuToGpuOp const &copyOp) override
 Copy new data from the CPU into a GPU texture.
 
HGIGL_API void CopyBufferGpuToGpu (HgiBufferGpuToGpuOp const &copyOp) override
 Copy a buffer resource from GPU to GPU.
 
HGIGL_API void CopyBufferCpuToGpu (HgiBufferCpuToGpuOp const &copyOp) override
 Copy new data from CPU into GPU buffer.
 
HGIGL_API void CopyBufferGpuToCpu (HgiBufferGpuToCpuOp const &copyOp) override
 Copy new data from GPU into CPU buffer.
 
HGIGL_API void CopyTextureToBuffer (HgiTextureToBufferOp const &copyOp) override
 Copy a texture resource into a buffer resource from GPU to GPU.
 
HGIGL_API void CopyBufferToTexture (HgiBufferToTextureOp const &copyOp) override
 Copy a buffer resource into a texture resource from GPU to GPU.
 
HGIGL_API void GenerateMipMaps (HgiTextureHandle const &texture) override
 Generate mip maps for a texture.
 
HGIGL_API void FillBuffer (HgiBufferHandle const &buffer, uint8_t value) override
 Fill a buffer with a constant value.
 
HGIGL_API void InsertMemoryBarrier (HgiMemoryBarrier barrier) override
 Inserts a barrier so that data written to memory by commands before the barrier is available to commands after the barrier.
 
virtual HGI_API void PushDebugGroup (const char *label)=0
 Push a debug marker.
 
virtual HGI_API void PopDebugGroup ()=0
 Pop the lastest debug.
 
virtual HGI_API void CopyTextureGpuToCpu (HgiTextureGpuToCpuOp const &copyOp)=0
 Copy a texture resource from GPU to CPU.
 
virtual HGI_API void CopyTextureCpuToGpu (HgiTextureCpuToGpuOp const &copyOp)=0
 Copy new data from the CPU into a GPU texture.
 
virtual HGI_API void CopyBufferGpuToGpu (HgiBufferGpuToGpuOp const &copyOp)=0
 Copy a buffer resource from GPU to GPU.
 
virtual HGI_API void CopyBufferCpuToGpu (HgiBufferCpuToGpuOp const &copyOp)=0
 Copy new data from CPU into GPU buffer.
 
virtual HGI_API void CopyBufferGpuToCpu (HgiBufferGpuToCpuOp const &copyOp)=0
 Copy new data from GPU into CPU buffer.
 
virtual HGI_API void CopyTextureToBuffer (HgiTextureToBufferOp const &copyOp)=0
 Copy a texture resource into a buffer resource from GPU to GPU.
 
virtual HGI_API void CopyBufferToTexture (HgiBufferToTextureOp const &copyOp)=0
 Copy a buffer resource into a texture resource from GPU to GPU.
 
virtual HGI_API void GenerateMipMaps (HgiTextureHandle const &texture)=0
 Generate mip maps for a texture.
 
virtual HGI_API void FillBuffer (HgiBufferHandle const &buffer, uint8_t value)=0
 Fill a buffer with a constant value.
 
virtual HGI_API void InsertMemoryBarrier (HgiMemoryBarrier barrier)=0
 Inserts a barrier so that data written to memory by commands before the barrier is available to commands after the barrier.
 
- Public Member Functions inherited from HgiCmds
HGI_API bool IsSubmitted () const
 Returns true if the HgiCmds object has been submitted to GPU.
 

Protected Member Functions

HGIGL_API bool _Submit (Hgi *hgi, HgiSubmitWaitType wait) override
 
- Protected Member Functions inherited from HgiCmds
virtual HGI_API bool _Submit (Hgi *hgi, HgiSubmitWaitType wait)
 
HGI_API void _SetSubmitted ()
 

Friends

class HgiGL
 

Detailed Description

OpenGL implementation of HgiBlitCmds.

Definition at line 39 of file blitCmds.h.

Member Function Documentation

◆ _Submit()

HGIGL_API bool _Submit ( Hgi hgi,
HgiSubmitWaitType  wait 
)
overrideprotectedvirtual

Reimplemented from HgiCmds.

◆ CopyBufferCpuToGpu()

HGIGL_API void CopyBufferCpuToGpu ( HgiBufferCpuToGpuOp const &  copyOp)
overridevirtual

Copy new data from CPU into GPU buffer.

For example copy new data into a uniform block or storage buffer.

Implements HgiBlitCmds.

◆ CopyBufferGpuToCpu()

HGIGL_API void CopyBufferGpuToCpu ( HgiBufferGpuToCpuOp const &  copyOp)
overridevirtual

Copy new data from GPU into CPU buffer.

Synchronization between GPU writes and CPU reads must be managed by the client by supplying the correct 'wait' flags in SubmitCmds.

Implements HgiBlitCmds.

◆ CopyBufferGpuToGpu()

HGIGL_API void CopyBufferGpuToGpu ( HgiBufferGpuToGpuOp const &  copyOp)
overridevirtual

Copy a buffer resource from GPU to GPU.

Implements HgiBlitCmds.

◆ CopyBufferToTexture()

HGIGL_API void CopyBufferToTexture ( HgiBufferToTextureOp const &  copyOp)
overridevirtual

Copy a buffer resource into a texture resource from GPU to GPU.

Implements HgiBlitCmds.

◆ CopyTextureCpuToGpu()

HGIGL_API void CopyTextureCpuToGpu ( HgiTextureCpuToGpuOp const &  copyOp)
overridevirtual

Copy new data from the CPU into a GPU texture.

Implements HgiBlitCmds.

◆ CopyTextureGpuToCpu()

HGIGL_API void CopyTextureGpuToCpu ( HgiTextureGpuToCpuOp const &  copyOp)
overridevirtual

Copy a texture resource from GPU to CPU.

Synchronization between GPU writes and CPU reads must be managed by the client by supplying the correct 'wait' flags in SubmitCmds.

Implements HgiBlitCmds.

◆ CopyTextureToBuffer()

HGIGL_API void CopyTextureToBuffer ( HgiTextureToBufferOp const &  copyOp)
overridevirtual

Copy a texture resource into a buffer resource from GPU to GPU.

Implements HgiBlitCmds.

◆ FillBuffer()

HGIGL_API void FillBuffer ( HgiBufferHandle const &  buffer,
uint8_t  value 
)
overridevirtual

Fill a buffer with a constant value.

Implements HgiBlitCmds.

◆ GenerateMipMaps()

HGIGL_API void GenerateMipMaps ( HgiTextureHandle const &  texture)
overridevirtual

Generate mip maps for a texture.

Implements HgiBlitCmds.

◆ InsertMemoryBarrier()

HGIGL_API void InsertMemoryBarrier ( HgiMemoryBarrier  barrier)
overridevirtual

Inserts a barrier so that data written to memory by commands before the barrier is available to commands after the barrier.

Implements HgiBlitCmds.

◆ PopDebugGroup()

HGIGL_API void PopDebugGroup ( )
overridevirtual

Pop the lastest debug.

Implements HgiBlitCmds.

◆ PushDebugGroup()

HGIGL_API void PushDebugGroup ( const char *  label)
overridevirtual

Push a debug marker.

Implements HgiBlitCmds.

Friends And Related Function Documentation

◆ HgiGL

friend class HgiGL
friend

Definition at line 82 of file blitCmds.h.


The documentation for this class was generated from the following file: