Lugdunum  0.1.0
RenderPass.inl
Go to the documentation of this file.
2  const API::Framebuffer& framebuffer;
3  VkRect2D renderArea;
4  std::vector<VkClearValue> clearValues;
5 };
6 
7 struct CmdDraw {
8  uint32_t vertexCount = 0;
9  uint32_t instanceCount = 0;
10  uint32_t firstVertex = 0;
11  uint32_t firstInstance = 0;
12 };
13 
15  uint32_t indexCount = 0;
16  uint32_t instanceCount = 0;
17  uint32_t firstIndex = 0;
18  uint32_t vertexOffset = 0;
19  uint32_t firstInstance = 0;
20 };
21 
22 void beginRenderPass(const API::RenderPass& renderPass,
23  const CmdBeginRenderPass& parameters,
24  VkSubpassContents contents = VK_SUBPASS_CONTENTS_INLINE
25 ) const;
26 void endRenderPass() const;
27 void draw(const CmdDraw& params) const;
28 void drawIndexed(const CmdDrawIndexed& params) const;
void draw(const CmdDraw &params) const
std::vector< VkClearValue > clearValues
Definition: RenderPass.inl:4
void beginRenderPass(const API::RenderPass &renderPass, const CmdBeginRenderPass &parameters, VkSubpassContents contents=VK_SUBPASS_CONTENTS_INLINE) const
void drawIndexed(const CmdDrawIndexed &params) const
const API::Framebuffer & framebuffer
Definition: RenderPass.inl:2
void endRenderPass() const
VkRect2D renderArea
Definition: RenderPass.inl:3