Berserk
|
Command list for commands capturing and submission. More...
#include <RHICommandList.hpp>
Public Member Functions | |
BRK_API | ~RHICommandList () override=default |
virtual BRK_API void | UpdateVertexBuffer (const Ref< RHIVertexBuffer > &buffer, uint32 byteOffset, uint32 byteSize, const Ref< Data > &data)=0 |
virtual BRK_API void | UpdateIndexBuffer (const Ref< RHIIndexBuffer > &buffer, uint32 byteOffset, uint32 byteSize, const Ref< Data > &data)=0 |
virtual BRK_API void | UpdateUniformBuffer (const Ref< RHIUniformBuffer > &buffer, uint32 byteOffset, uint32 byteSize, const Ref< Data > &data)=0 |
virtual BRK_API void | UpdateTexture2D (const Ref< RHITexture > &texture, uint32 mipLevel, const Rect2u ®ion, const Ref< Data > &data)=0 |
virtual BRK_API void | UpdateTexture2DArray (const Ref< RHITexture > &texture, uint32 arrayIndex, uint32 mipLevel, const Rect2u ®ion, const Ref< Data > &data)=0 |
virtual BRK_API void | UpdateTextureCube (const Ref< RHITexture > &texture, RHITextureCubemapFace face, uint32 mipLevel, const Rect2u ®ion, const Ref< Data > &data)=0 |
virtual BRK_API void | GenerateMipMaps (const Ref< RHITexture > &texture)=0 |
virtual BRK_API void | BeginRenderPass (const Ref< RHIRenderPass > &renderPass, const RHIRenderPassBeginInfo &beginInfo)=0 |
virtual BRK_API void | BindGraphicsPipeline (const Ref< RHIGraphicsPipeline > &pipeline)=0 |
virtual BRK_API void | BindVertexBuffers (const std::vector< Ref< RHIVertexBuffer >> &buffers)=0 |
virtual BRK_API void | BindIndexBuffer (const Ref< RHIIndexBuffer > &buffer, RHIIndexType indexType)=0 |
virtual BRK_API void | BindResourceSet (const Ref< RHIResourceSet > &resourceSet, uint32 set)=0 |
virtual BRK_API void | Draw (uint32 verticesCount, uint32 baseVertex, uint32 instancesCount)=0 |
virtual BRK_API void | DrawIndexed (uint32 indexCount, uint32 baseVertex, uint32 instanceCount)=0 |
virtual BRK_API void | EndRenderPass ()=0 |
virtual BRK_API void | SwapBuffers (const Ref< Window > &window)=0 |
virtual BRK_API void | Submit ()=0 |
![]() | |
BRK_API | ~RHIResource () override=default |
![]() | |
virtual | ~RefCnt () |
bool | IsUnique () const |
std::int32_t | GetRefs () const |
std::int32_t | AddRef () const |
std::int32_t | RelRef () const |
Additional Inherited Members | |
![]() | |
void | Destroy () const override |
Command list for commands capturing and submission.
|
overridedefault |
|
pure virtual |
Begin render pass for drawing (must be followed with end call)
Implemented in GLCommandList.
|
pure virtual |
Bind compiled graphics pipeline for the rendering (must be called inside render pass)
Implemented in GLCommandList.
|
pure virtual |
Bind index buffer (must be called inside render pass)
Implemented in GLCommandList.
|
pure virtual |
Bind resource set to specified set index (must be called inside render pass)
Implemented in GLCommandList.
|
pure virtual |
Bind vertex buffers (must be called inside render pass)
Implemented in GLCommandList.
|
pure virtual |
Issue draw call for vertex data only
Implemented in GLCommandList.
|
pure virtual |
Issue draw call for indexed data rendering only
Implemented in GLCommandList.
|
pure virtual |
End render pass (must be called in the end after begin render pass)
Implemented in GLCommandList.
|
pure virtual |
Generate mip maps for the texture (2d, 2d array, cube)
Implemented in GLCommandList.
|
pure virtual |
Submit list for execution
Implemented in GLCommandList.
Request buffers swap
Implemented in GLCommandList.
|
pure virtual |
Update index buffer with data
Implemented in GLCommandList.
|
pure virtual |
Update chosen region and mip level of 2d texture
Implemented in GLCommandList.
|
pure virtual |
Update chosen array index, region and mip level of 2d texture array
Implemented in GLCommandList.
|
pure virtual |
Update chosen face, region and mip level of cube texture
Implemented in GLCommandList.
|
pure virtual |
Update uniform buffer with data
Implemented in GLCommandList.
|
pure virtual |
Update vertex buffer with data
Implemented in GLCommandList.