#include <DebugDrawer.hpp>
|
C3D_API | DebugDrawer (crg::FramePassGroup &graph, crg::FramePass const *previous, RenderDevice const &device, RenderTarget &parent, crg::ImageViewIdArray colour, Texture const &depth, uint32_t const *passIndex) |
| Constructor.
|
|
C3D_API void | addAabbs (ashes::VkDescriptorSetLayoutBindingArray const &descriptorBindings, ashes::WriteDescriptorSetArray const &descriptorWrites, VkDeviceSize instanceCount, ashes::PipelineShaderStageCreateInfoArray const &shader, bool enableDepthTest) |
| Adds a buffer containing AABBs to draw.
|
|
C3D_API void | addDrawable (DebugVertexBuffers vertexBuffers, DebugIndexBuffer indexBuffer, ashes::VkVertexInputAttributeDescriptionArray const &vertexAttributes, ashes::VkVertexInputBindingDescriptionArray const &vertexBindings, ashes::VkDescriptorSetLayoutBindingArray const &descriptorBindings, ashes::WriteDescriptorSetArray const &descriptorWrites, VkDeviceSize instanceCount, ashes::PipelineShaderStageCreateInfoArray const &shader, bool enableDepthTest) |
| Adds a buffer containing AABBs to draw.
|
|
crg::FramePass const & | getLastPass () const noexcept |
|
RenderTarget * | getOwner () const noexcept |
|
void | setOwner (RenderTarget &owner) noexcept |
|
|
| OwnedBy (RenderTarget &owner) noexcept |
| Constructor.
|
|
◆ DebugDrawer()
C3D_API castor3d::DebugDrawer::DebugDrawer |
( |
crg::FramePassGroup & | graph, |
|
|
crg::FramePass const * | previous, |
|
|
RenderDevice const & | device, |
|
|
RenderTarget & | parent, |
|
|
crg::ImageViewIdArray | colour, |
|
|
Texture const & | depth, |
|
|
uint32_t const * | passIndex ) |
Constructor.
- Parameters
-
[in] | graph | The graph. |
[in] | previous | The previous pass. |
[in] | device | The GPU device. |
[in] | parent | The parent render target. |
[in] | colour | The target colour image. |
[in] | depth | The target depth image. |
[in] | passIndex | The pass index, to select the appropriate shader. |
◆ addAabbs()
C3D_API void castor3d::DebugDrawer::addAabbs |
( |
ashes::VkDescriptorSetLayoutBindingArray const & | descriptorBindings, |
|
|
ashes::WriteDescriptorSetArray const & | descriptorWrites, |
|
|
VkDeviceSize | instanceCount, |
|
|
ashes::PipelineShaderStageCreateInfoArray const & | shader, |
|
|
bool | enableDepthTest ) |
Adds a buffer containing AABBs to draw.
- Parameters
-
[in] | descriptorBindings | The shader data bindings. |
[in] | descriptorWrites | The shader data. |
[in] | instanceCount | The number of instances to draw. |
[in] | shader | The shader used to draw the AABB. |
[in] | enableDepthTest | true to enable depth test. |
◆ addDrawable()
C3D_API void castor3d::DebugDrawer::addDrawable |
( |
DebugVertexBuffers | vertexBuffers, |
|
|
DebugIndexBuffer | indexBuffer, |
|
|
ashes::VkVertexInputAttributeDescriptionArray const & | vertexAttributes, |
|
|
ashes::VkVertexInputBindingDescriptionArray const & | vertexBindings, |
|
|
ashes::VkDescriptorSetLayoutBindingArray const & | descriptorBindings, |
|
|
ashes::WriteDescriptorSetArray const & | descriptorWrites, |
|
|
VkDeviceSize | instanceCount, |
|
|
ashes::PipelineShaderStageCreateInfoArray const & | shader, |
|
|
bool | enableDepthTest ) |
Adds a buffer containing AABBs to draw.
- Parameters
-
[in] | vertexBuffers | The geometry vertex buffers. |
[in] | indexBuffer | The geometry index buffers. |
[in] | vertexAttributes | The geometry vertex attributes. |
[in] | vertexBindings | The geometry vertex bindings. |
[in] | descriptorBindings | The shader data bindings. |
[in] | descriptorWrites | The shader data. |
[in] | instanceCount | The number of instances to draw. |
[in] | shader | The shader used to draw the geometries. |
[in] | enableDepthTest | true to enable depth test. |
◆ getLastPass()
crg::FramePass const & castor3d::DebugDrawer::getLastPass |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following file: