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

#include <blitCmds.h>

+ Inheritance diagram for HgiGLBlitCmds:

Public Member Functions

HGIGL_API ~HgiGLBlitCmds () override
 
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
 
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
 
HGIGL_API void CopyBufferGpuToCpu (HgiBufferGpuToCpuOp const &copyOp) override
 
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 FillBuffer (HgiBufferHandle const &buffer, uint8_t value) override
 Fill a buffer with a constant value. More...
 
HGIGL_API void InsertMemoryBarrier (HgiMemoryBarrier barrier) override
 
- Public Member Functions inherited from HgiBlitCmds
HGI_API ~HgiBlitCmds () override
 
- Public Member Functions inherited from HgiCmds
virtual HGI_API ~HgiCmds ()
 
HGI_API bool IsSubmitted () const
 Returns true if the HgiCmds object has been submitted to GPU. More...
 

Protected Member Functions

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

Friends

class HgiGL
 

Detailed Description

OpenGL implementation of HgiBlitCmds.

Definition at line 39 of file blitCmds.h.

Constructor & Destructor Documentation

HGIGL_API HgiGLBlitCmds::~HgiGLBlitCmds ( )
override
HGIGL_API HgiGLBlitCmds::HgiGLBlitCmds ( )
protected

Member Function Documentation

HGIGL_API bool HgiGLBlitCmds::_Submit ( Hgi hgi,
HgiSubmitWaitType  wait 
)
overrideprotectedvirtual

Reimplemented from HgiCmds.

HGIGL_API void HgiGLBlitCmds::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 HgiGLBlitCmds::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 HgiGLBlitCmds::CopyBufferGpuToGpu ( HgiBufferGpuToGpuOp const &  copyOp)
overridevirtual

Copy a buffer resource from GPU to GPU.

Implements HgiBlitCmds.

HGIGL_API void HgiGLBlitCmds::CopyBufferToTexture ( HgiBufferToTextureOp const &  copyOp)
overridevirtual

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

Implements HgiBlitCmds.

HGIGL_API void HgiGLBlitCmds::CopyTextureCpuToGpu ( HgiTextureCpuToGpuOp const &  copyOp)
overridevirtual

Copy new data from the CPU into a GPU texture.

Implements HgiBlitCmds.

HGIGL_API void HgiGLBlitCmds::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 HgiGLBlitCmds::CopyTextureToBuffer ( HgiTextureToBufferOp const &  copyOp)
overridevirtual

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

Implements HgiBlitCmds.

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

Fill a buffer with a constant value.

Implements HgiBlitCmds.

HGIGL_API void HgiGLBlitCmds::GenerateMipMaps ( HgiTextureHandle const &  texture)
overridevirtual

Generate mip maps for a texture.

Implements HgiBlitCmds.

HGIGL_API void HgiGLBlitCmds::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.

HGIGL_API void HgiGLBlitCmds::PopDebugGroup ( )
overridevirtual

Pop the lastest debug.

Implements HgiBlitCmds.

HGIGL_API void HgiGLBlitCmds::PushDebugGroup ( const char *  label)
overridevirtual

Push a debug marker.

Implements HgiBlitCmds.

Friends And Related Function Documentation

friend class HgiGL
friend

Definition at line 82 of file blitCmds.h.


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