59 const Buf& hDstBuffer,
60 size_t offset,
size_t size, std::uint32_t value,
67 const Buf& hSrcBuffer,
68 const Buf& hDstBuffer,
75 const Buf& hSrcBuffer,
76 const Buf& hDstBuffer,
77 const std::vector< VkBufferCopy >& regions,
87 const Buf& hDstBuffer,
88 size_t offset,
size_t size,
const std::uint32_t* pData,
96 VkImageLayout srcImageLayout,
98 VkImageLayout dstImageLayout,
105 const Img& hSrcImage,
106 VkImageLayout srcImageLayout,
107 const Img& hDstImage,
108 VkImageLayout dstImageLayout,
109 const std::vector< VkImageCopy >& regions,
116 const Buf& hSrcBuffer,
117 const Img& hDstImage,
118 VkImageLayout dstImageLayout,
125 const Buf& hSrcBuffer,
126 const Img& hDstImage,
127 VkImageLayout dstImageLayout,
128 const std::vector< VkBufferImageCopy >& regions,
135 const Img& hSrcImage,
136 VkImageLayout srcImageLayout,
137 const Buf& hDstBuffer,
144 const Img& hSrcImage,
145 VkImageLayout srcImageLayout,
146 const Buf& hDstBuffer,
147 const std::vector< VkBufferImageCopy >& regions,
156 const Img& hSrcImage,
157 VkImageLayout srcImageLayout,
158 const Img& hDstImage,
159 VkImageLayout dstImageLayout,
160 const VkOffset3D& srcBegin,
const VkOffset3D& srcEnd,
161 const VkOffset3D& dstBegin,
const VkOffset3D& dstEnd,
169 const Img& hSrcImage,
170 VkImageLayout srcImageLayout,
171 const Img& hDstImage,
172 VkImageLayout dstImageLayout,
173 const VkOffset3D& srcBegin,
const VkOffset3D& srcEnd,
174 const VkOffset3D& dstBegin,
183 const Img& hSrcImage,
184 VkImageLayout srcImageLayout,
185 const Img& hDstImage,
186 VkImageLayout dstImageLayout,
187 const std::vector< VkImageBlit >& regions,
201 const Img& hSrcImage,
202 VkImageLayout srcImageLayout,
203 const Img& hDstImage,
204 VkImageLayout dstImageLayout,
205 const VkOffset3D& srcOffset,
const VkOffset3D& dstOffset,
206 const VkExtent3D& size,
220 const Img& hSrcImage,
221 VkImageLayout srcImageLayout,
222 const Img& hDstImage,
223 VkImageLayout dstImageLayout,
237 const Img& hSrcImage,
238 VkImageLayout srcImageLayout,
239 const Img& hDstImage,
240 VkImageLayout dstImageLayout,
241 const std::vector< VkImageResolve >& regions,
249 const VkClearColorValue& color,
257 const VkClearColorValue& color,
258 const std::vector< VkImageSubresourceRange >& regions,
266 VkImageLayout imageLayout,
267 float depth, std::uint32_t stencil,
275 VkImageLayout imageLayout,
276 float depth, std::uint32_t stencil,
277 const std::vector< VkImageSubresourceRange >& regions,
284 const QueryPool& hPool,
293 const QueryPool& hPool,
296 static void cmdCopyQueryPoolResults (
297 const Buf& hDstBuffer,
298 const QueryPool& hPool,
299 VkQueryResultFlags flags,
302 VkDeviceSize dstOffset,
305 static void cmdCopyQueryPoolResults (
306 const Buf& hDstBuffer,
307 const QueryPool& hPool,
308 VkQueryResultFlags flags,
336 static void cmdExecuteCommands (
337 const VkCommandBuffer* pBuffers,
341 static void cmdExecuteCommands (
346 static void cmdExecuteCommands (
347 const std::vector< CommandBuffer >& buffers,
350 static void cmdWaitEvents (
351 const std::vector< Event >& events,
352 VkPipelineStageFlags srcStageMask,
353 VkPipelineStageFlags dstStageMask,
357 static void cmdPipelineBarrier (
358 VkPipelineStageFlags srcStageMask,
359 VkPipelineStageFlags dstStageMask,
360 VkDependencyFlags dependencyFlags,
364 static void cmdImagePipelineBarrier (
366 VkPipelineStageFlags srcStageMask,
367 VkPipelineStageFlags dstStageMask,
368 VkAccessFlags srcAccessMask,
369 VkAccessFlags dstAccessMask,
371 VkImageLayout oldLayout = VK_IMAGE_LAYOUT_GENERAL,
372 VkImageLayout newLayout = VK_IMAGE_LAYOUT_GENERAL,
378 static void cmdBufferPipelineBarrier (
380 VkPipelineStageFlags srcStageMask,
381 VkPipelineStageFlags dstStageMask,
382 VkAccessFlags srcAccessMask,
383 VkAccessFlags dstAccessMask,
387 static void cmdSetViewport (
388 const VkViewport& viewport,
389 std::uint32_t index = 0,
392 static void cmdSetViewport (
393 const std::vector< VkViewport >& viewports,
394 std::uint32_t first = 0,
397 static void cmdSetLineWidth (
401 static void cmdSetDepthBias (
402 float constantFactor,
407 static void cmdSetDepthBounds (
408 float minDepthBounds,
409 float maxDepthBounds,
412 static void cmdSetScissor (
413 const VkRect2D& scissor,
414 std::uint32_t index = 0,
417 static void cmdSetScissor (
418 const std::vector< VkRect2D >& scissors,
419 std::uint32_t first = 0,
422 static void cmdSetStencilCompareMask (
423 VkStencilFaceFlags faceMask,
424 std::uint32_t compareMask,
427 static void cmdSetStencilWriteMask (
428 VkStencilFaceFlags faceMask,
429 std::uint32_t writeMask,
432 static void cmdSetStencilReference (
433 VkStencilFaceFlags faceMask,
434 std::uint32_t reference,
437 static void cmdSetBlendConstants (
438 const float blendConstants [ 4 ],
441 static void cmdBeginQuery (
442 const QueryPool& hPool,
444 VkQueryControlFlags flags,
447 static void cmdEndQuery (
448 const QueryPool& hPool,
452 static void cmdWriteTimestamp (
453 const QueryPool& hPool,
455 VkPipelineStageFlagBits pipelineStage,
458 static void cmdBindPipeline (
460 VkPipelineBindPoint pipelineBindPoint,
463 static void cmdBindDescriptorSets (
467 static void cmdBindIndexInput (
469 VkIndexType indexType,
473 static void cmdBindVertexBuffers (
474 const std::vector< Buf >& buffers,
475 const std::vector< VkDeviceSize >& offsets,
476 std::uint32_t first = 0,
479 static void cmdBindVertexBuffers (
480 const std::vector< Buf >& buffers,
481 std::uint32_t first = 0,
484 static void cmdPushConstants (
485 const PipelineLayoutBase& hPipelineLayout,
486 VkShaderStageFlags stageFlags,
489 std::uint32_t offset = 0,
501 static void cmdChangeImageLayout (
503 VkImageLayout oldImageLayout,
504 VkImageLayout newImageLayout,
505 std::uint32_t levelCount = 1,
506 std::uint32_t layerCount = 1,
507 std::uint32_t baseMipLevel = 0,
508 std::uint32_t baseArrayLayer = 0,
509 VkImageAspectFlags aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
Class representing generic (untyped) Vulkan image.
Definition: vppImage.hpp:54
Compiled pipeline class for graphics pipelines.
Definition: vppPipeline.hpp:48
Set of commands that may be used anywhere (inside or outside rendering context).
Definition: vppCommands.hpp:333
The VPP namespace.
Definition: main.hpp:1
Set of commands that may be used outside rendering context.
Definition: vppCommands.hpp:52
Represents a sequence of Vulkan commands.
Definition: vppCommandBuffer.hpp:68
static void cmdResolveImage(const Img &hSrcImage, VkImageLayout srcImageLayout, const Img &hDstImage, VkImageLayout dstImageLayout, const VkOffset3D &srcOffset, const VkOffset3D &dstOffset, const VkExtent3D &size, CommandBuffer hCmdBuffer=CommandBuffer())
Resolves source multisampled image region into destination regular image.
BarrierList barriers(VkPipelineStageFlags sourceStage, VkPipelineStageFlags targetStage, Args &&... args)
Creates a BarrierList object for specified resources.
static void cmdClearDepthStencilImage(const Img &hImage, VkImageLayout imageLayout, float depth, std::uint32_t stencil, CommandBuffer hCmdBuffer=CommandBuffer())
Clears a depth or stencil image with specified value.
Definition: vppCommands.hpp:496
static void cmdClearColorImage(const Img &hImage, const VkClearColorValue &color, CommandBuffer hCmdBuffer=CommandBuffer())
Clears an image with specified color.
static void cmdCopyImageToBuffer(const Img &hSrcImage, VkImageLayout srcImageLayout, const Buf &hDstBuffer, CommandBuffer hCmdBuffer=CommandBuffer())
Copies entire contents from an image to a buffer.
General class encapsulating description of a set of pipeline barriers.
Definition: vppBarriers.hpp:211
static void cmdCopyImage(const Img &hSrcImage, VkImageLayout srcImageLayout, const Img &hDstImage, VkImageLayout dstImageLayout, CommandBuffer hCmdBuffer=CommandBuffer())
Copies entire contents from one image to another.
Generic class representing Vulkan buffers.
Definition: vppBuffer.hpp:43
static void cmdCopyBuffer(const Buf &hSrcBuffer, const Buf &hDstBuffer, CommandBuffer hCmdBuffer=CommandBuffer())
Copies entire contents from one buffer to another.
static void cmdBlitImage(const Img &hSrcImage, VkImageLayout srcImageLayout, const Img &hDstImage, VkImageLayout dstImageLayout, const VkOffset3D &srcBegin, const VkOffset3D &srcEnd, const VkOffset3D &dstBegin, const VkOffset3D &dstEnd, CommandBuffer hCmdBuffer=CommandBuffer())
Copies source image region into destination image, potentially performing format conversion, arbitrary scaling and filtering.
static void cmdResetQueryPool(const QueryPool &hPool, std::uint32_t first, std::uint32_t count, CommandBuffer hCmdBuffer=CommandBuffer())
Resets a range of queries in a query pool.
static void cmdFillBuffer(const Buf &hDstBuffer, size_t offset, size_t size, std::uint32_t value, CommandBuffer hCmdBuffer=CommandBuffer())
Fills specified buffer (or a region of it) with constant value.
static void cmdUpdateBuffer(const Buf &hDstBuffer, size_t offset, size_t size, const std::uint32_t *pData, CommandBuffer hCmdBuffer=CommandBuffer())
Modifies a buffer region with specified data.
Represents a group of resources bound to rendering or compute pipeline.
Definition: vppShaderDataBlock.hpp:129
static void cmdCopyBufferToImage(const Buf &hSrcBuffer, const Img &hDstImage, VkImageLayout dstImageLayout, CommandBuffer hCmdBuffer=CommandBuffer())
Copies entire contents from a buffer to an image.