#include <vkshaperenderer.h>
Inherits Base::ShapeRendererBase.
|
static const int | MaxNumVertices = 262140 |
| maximum amount of vertices to be rendered by drawprimitives and drawindexedprimitives
|
|
static const int | MaxNumIndices = 262140 |
| maximum amount of indices to be rendered by drawprimitives and drawindexedprimitives
|
|
static const int | MaxVertexWidth = 8 * sizeof(float) |
| maximum size for primitive size (4 floats for position, 4 floats for color)
|
|
static const int | MaxIndexWidth = sizeof(int) |
| maximum size for an index
|
|
|
| __DeclareClass (VkShapeRenderer) |
|
void | DrawBufferedPrimitives (const CoreGraphics::CmdBufferId cmdBuf) |
| draw buffered primitives
|
|
void | DrawBufferedIndexedPrimitives (const CoreGraphics::CmdBufferId cmdBuf) |
| draw buffered indexed primtives
|
|
void | GrowIndexBuffer () |
| grow index buffer
|
|
void | GrowVertexBuffer () |
| grow vertex buffer
|
|
void | DrawSimpleShape (const CoreGraphics::CmdBufferId cmdBuf, const Math::mat4 &modelTransform, CoreGraphics::RenderShape::Type shapeType, const Math::vec4 &color, const float lineThickness) |
| draw a shape
|
|
void | DrawMesh (const CoreGraphics::CmdBufferId cmdBuf, const Math::mat4 &modelTransform, const CoreGraphics::MeshId mesh, const Math::vec4 &color, const float lineThickness) |
| draw debug mesh
|
|
void | DrawPrimitives (const Math::mat4 &modelTransform, CoreGraphics::PrimitiveTopology::Code topology, SizeT numVertices, const void *vertices, const float lineThickness) |
| draw primitives
|
|
void | DrawIndexedPrimitives (const Math::mat4 &modelTransform, CoreGraphics::PrimitiveTopology::Code topology, SizeT numVertices, const void *vertices, SizeT numIndices, const void *indices, CoreGraphics::IndexType::Code indexType, const float lineThickness) |
| draw indexed primitives
|
|
◆ VkShapeRenderer()
Vulkan::VkShapeRenderer::VkShapeRenderer |
( |
| ) |
|
◆ ~VkShapeRenderer()
Vulkan::VkShapeRenderer::~VkShapeRenderer |
( |
| ) |
|
|
virtual |
◆ __DeclareClass()
◆ Close()
void Vulkan::VkShapeRenderer::Close |
( |
| ) |
|
◆ DrawBufferedIndexedPrimitives()
draw buffered indexed primtives
◆ DrawBufferedPrimitives()
◆ DrawIndexedPrimitives()
◆ DrawMesh()
◆ DrawPrimitives()
◆ DrawShapes()
draw attached shapes and clear deferred stack, must be called inside render loop
◆ DrawSimpleShape()
◆ GrowIndexBuffer()
void Vulkan::VkShapeRenderer::GrowIndexBuffer |
( |
| ) |
|
|
private |
◆ GrowVertexBuffer()
void Vulkan::VkShapeRenderer::GrowVertexBuffer |
( |
| ) |
|
|
private |
◆ Open()
void Vulkan::VkShapeRenderer::Open |
( |
| ) |
|
◆ comps
◆ diffuseColor
IndexT Vulkan::VkShapeRenderer::diffuseColor |
|
private |
◆ ibos
◆ indexBufferActiveIndex
IndexT Vulkan::VkShapeRenderer::indexBufferActiveIndex |
|
private |
◆ indexBufferCapacity
SizeT Vulkan::VkShapeRenderer::indexBufferCapacity |
|
private |
◆ indexBufferOffset
SizeT Vulkan::VkShapeRenderer::indexBufferOffset |
|
private |
◆ indexBufferPtr
byte* Vulkan::VkShapeRenderer::indexBufferPtr |
|
private |
◆ indexed
◆ lineWidth
IndexT Vulkan::VkShapeRenderer::lineWidth |
|
private |
◆ MaxIndexWidth
const int Vulkan::VkShapeRenderer::MaxIndexWidth = sizeof(int) |
|
static |
maximum size for an index
◆ MaxNumIndices
const int Vulkan::VkShapeRenderer::MaxNumIndices = 262140 |
|
static |
maximum amount of indices to be rendered by drawprimitives and drawindexedprimitives
◆ MaxNumVertices
const int Vulkan::VkShapeRenderer::MaxNumVertices = 262140 |
|
static |
maximum amount of vertices to be rendered by drawprimitives and drawindexedprimitives
◆ MaxVertexIndexBuffers
const SizeT Vulkan::VkShapeRenderer::MaxVertexIndexBuffers = 2 |
|
staticprivate |
◆ MaxVertexWidth
const int Vulkan::VkShapeRenderer::MaxVertexWidth = 8 * sizeof(float) |
|
static |
maximum size for primitive size (4 floats for position, 4 floats for color)
◆ meshes
◆ model
IndexT Vulkan::VkShapeRenderer::model |
|
private |
◆ shapeMeshResources
Util::FixedArray<Resources::ResourceId> Vulkan::VkShapeRenderer::shapeMeshResources |
|
private |
◆ unindexed
◆ vbos
◆ vertexBufferActiveIndex
IndexT Vulkan::VkShapeRenderer::vertexBufferActiveIndex |
|
private |
◆ vertexBufferCapacity
SizeT Vulkan::VkShapeRenderer::vertexBufferCapacity |
|
private |
◆ vertexBufferOffset
SizeT Vulkan::VkShapeRenderer::vertexBufferOffset |
|
private |
◆ vertexBufferPtr
byte* Vulkan::VkShapeRenderer::vertexBufferPtr |
|
private |
◆ vertexLayout
The documentation for this class was generated from the following files: