Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::DebugDrawer Class Reference

#include <DebugDrawer.hpp>

Inheritance diagram for castor3d::DebugDrawer:
Inheritance graph
[legend]
Collaboration diagram for castor3d::DebugDrawer:
Collaboration graph
[legend]

Public Member Functions

C3D_API DebugDrawer (RenderTarget &parent, RenderDevice const &device, Texture const &colour, Texture const &depth)
 Constructor.
 
C3D_API void addAabbs (VkBuffer buffer, VkDeviceSize offset, VkDeviceSize size, VkDeviceSize count, ashes::PipelineShaderStageCreateInfoArray shader)
 Adds a buffer containing AABBs to draw.
 
C3D_API crg::SemaphoreWaitArray render (ashes::Queue const &queue, crg::SemaphoreWaitArray toWait={})
 Renders added objects.
 
- Public Member Functions inherited from castor::OwnedBy< RenderTarget >
RenderTarget * getOwner () const
 

Additional Inherited Members

- Protected Member Functions inherited from castor::OwnedBy< RenderTarget >
 OwnedBy (RenderTarget &owner)
 Constructor.
 

Constructor & Destructor Documentation

◆ DebugDrawer()

C3D_API castor3d::DebugDrawer::DebugDrawer ( RenderTarget & parent,
RenderDevice const & device,
Texture const & colour,
Texture const & depth )

Constructor.

Parameters
[in]parentThe parent render target.
[in]deviceThe GPU device.
[in]colourThe target colour image.
[in]depthThe target depth image.

Member Function Documentation

◆ addAabbs()

C3D_API void castor3d::DebugDrawer::addAabbs ( VkBuffer buffer,
VkDeviceSize offset,
VkDeviceSize size,
VkDeviceSize count,
ashes::PipelineShaderStageCreateInfoArray shader )

Adds a buffer containing AABBs to draw.

Parameters
[in]bufferThe GPU buffer.
[in]offsetThe binary offset.
[in]sizeThe binary size.
[in]countThe AABB count.
[in]shaderThe shader stages.

◆ render()

C3D_API crg::SemaphoreWaitArray castor3d::DebugDrawer::render ( ashes::Queue const & queue,
crg::SemaphoreWaitArray toWait = {} )

Renders added objects.

Parameters
[in]queueThe queue receiving the render commands.
[in]toWaitThe semaphores to wait.
Returns
The semaphores signaled by this render.

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