All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiGLBlitCmds Class Referencefinal

OpenGL implementation of HgiBlitCmds. More...

+ Inheritance diagram for HgiGLBlitCmds:

Public Member Functions

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

Protected Member Functions

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

Friends

class HgiGL
 

Detailed Description

OpenGL implementation of HgiBlitCmds.

Definition at line 39 of file blitCmds.h.

Member Function Documentation

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.

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.

HGIGL_API void CopyBufferGpuToGpu ( HgiBufferGpuToGpuOp const &  copyOp)
overridevirtual

Copy a buffer resource from GPU to GPU.

Implements HgiBlitCmds.

HGIGL_API void CopyBufferToTexture ( HgiBufferToTextureOp const &  copyOp)
overridevirtual

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

Implements HgiBlitCmds.

HGIGL_API void CopyTextureCpuToGpu ( HgiTextureCpuToGpuOp const &  copyOp)
overridevirtual

Copy new data from the CPU into a GPU texture.

Implements HgiBlitCmds.

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.

HGIGL_API void CopyTextureToBuffer ( HgiTextureToBufferOp const &  copyOp)
overridevirtual

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

Implements HgiBlitCmds.

HGIGL_API void GenerateMipMaps ( HgiTextureHandle const &  texture)
overridevirtual

Generate mip maps for a texture.

Implements HgiBlitCmds.

HGIGL_API void MemoryBarrier ( 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.

HGIGL_API void PopDebugGroup ( )
overridevirtual

Pop the lastest debug.

Implements HgiBlitCmds.

HGIGL_API void PushDebugGroup ( const char *  label)
overridevirtual

Push a debug marker.

Implements HgiBlitCmds.


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