HDK
|
#include <blitCmds.h>
Public Member Functions | |
HGI_API | ~HgiBlitCmds () override |
virtual HGI_API void | PushDebugGroup (const char *label)=0 |
Push a debug marker. More... | |
virtual HGI_API void | PopDebugGroup ()=0 |
Pop the lastest debug. More... | |
virtual HGI_API void | CopyTextureGpuToCpu (HgiTextureGpuToCpuOp const ©Op)=0 |
virtual HGI_API void | CopyTextureCpuToGpu (HgiTextureCpuToGpuOp const ©Op)=0 |
Copy new data from the CPU into a GPU texture. More... | |
virtual HGI_API void | CopyBufferGpuToGpu (HgiBufferGpuToGpuOp const ©Op)=0 |
Copy a buffer resource from GPU to GPU. More... | |
virtual HGI_API void | CopyBufferCpuToGpu (HgiBufferCpuToGpuOp const ©Op)=0 |
virtual HGI_API void | CopyBufferGpuToCpu (HgiBufferGpuToCpuOp const ©Op)=0 |
virtual HGI_API void | CopyTextureToBuffer (HgiTextureToBufferOp const ©Op)=0 |
Copy a texture resource into a buffer resource from GPU to GPU. More... | |
virtual HGI_API void | CopyBufferToTexture (HgiBufferToTextureOp const ©Op)=0 |
Copy a buffer resource into a texture resource from GPU to GPU. More... | |
virtual HGI_API void | GenerateMipMaps (HgiTextureHandle const &texture)=0 |
Generate mip maps for a texture. More... | |
virtual HGI_API void | FillBuffer (HgiBufferHandle const &buffer, uint8_t value)=0 |
Fill a buffer with a constant value. More... | |
virtual HGI_API void | InsertMemoryBarrier (HgiMemoryBarrier barrier)=0 |
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 | |
HGI_API | HgiBlitCmds () |
Protected Member Functions inherited from HgiCmds | |
HGI_API | HgiCmds () |
virtual HGI_API bool | _Submit (Hgi *hgi, HgiSubmitWaitType wait) |
HGI_API void | _SetSubmitted () |
A graphics API independent abstraction of resource copy commands. HgiBlitCmds is a lightweight object that cannot be re-used after it has been submitted. A new cmds object should be acquired for each frame.
Definition at line 54 of file blitCmds.h.
|
override |
|
protected |
|
pure virtual |
Copy new data from CPU into GPU buffer. For example copy new data into a uniform block or storage buffer.
Implemented in HgiGLBlitCmds.
|
pure virtual |
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.
Implemented in HgiGLBlitCmds.
|
pure virtual |
Copy a buffer resource from GPU to GPU.
Implemented in HgiGLBlitCmds.
|
pure virtual |
Copy a buffer resource into a texture resource from GPU to GPU.
Implemented in HgiGLBlitCmds.
|
pure virtual |
Copy new data from the CPU into a GPU texture.
Implemented in HgiGLBlitCmds.
|
pure virtual |
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.
Implemented in HgiGLBlitCmds.
|
pure virtual |
Copy a texture resource into a buffer resource from GPU to GPU.
Implemented in HgiGLBlitCmds.
|
pure virtual |
Fill a buffer with a constant value.
Implemented in HgiGLBlitCmds.
|
pure virtual |
Generate mip maps for a texture.
Implemented in HgiGLBlitCmds.
|
pure virtual |
Inserts a barrier so that data written to memory by commands before the barrier is available to commands after the barrier.
Implemented in HgiGLBlitCmds.
Pop the lastest debug.
Implemented in HgiGLBlitCmds.
Push a debug marker.
Implemented in HgiGLBlitCmds.