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 VkImageLayout imageLayout,
250 const VkClearColorValue& color,
258 VkImageLayout imageLayout,
259 const VkClearColorValue& color,
260 const std::vector< VkImageSubresourceRange >& regions,
268 VkImageLayout imageLayout,
269 float depth, std::uint32_t stencil,
277 VkImageLayout imageLayout,
278 float depth, std::uint32_t stencil,
279 const std::vector< VkImageSubresourceRange >& regions,
286 const QueryPool& hPool,
295 const QueryPool& hPool,
298 static void cmdCopyQueryPoolResults (
299 const Buf& hDstBuffer,
300 const QueryPool& hPool,
301 VkQueryResultFlags flags,
304 VkDeviceSize dstOffset,
307 static void cmdCopyQueryPoolResults (
308 const Buf& hDstBuffer,
309 const QueryPool& hPool,
310 VkQueryResultFlags flags,
338 static void cmdExecuteCommands (
339 const VkCommandBuffer* pBuffers,
343 static void cmdExecuteCommands (
348 static void cmdExecuteCommands (
349 const std::vector< CommandBuffer >& buffers,
352 static void cmdWaitEvents (
353 const std::vector< Event >& events,
354 VkPipelineStageFlags srcStageMask,
355 VkPipelineStageFlags dstStageMask,
356 const Barriers& barriers = Barriers(),
359 static void cmdPipelineBarrier (
360 VkPipelineStageFlags srcStageMask,
361 VkPipelineStageFlags dstStageMask,
362 VkDependencyFlags dependencyFlags,
363 const Barriers& barriers,
366 static void cmdImagePipelineBarrier (
368 VkPipelineStageFlags srcStageMask,
369 VkPipelineStageFlags dstStageMask,
370 VkAccessFlags srcAccessMask,
371 VkAccessFlags dstAccessMask,
373 VkImageLayout oldLayout = VK_IMAGE_LAYOUT_GENERAL,
374 VkImageLayout newLayout = VK_IMAGE_LAYOUT_GENERAL,
380 static void cmdBufferPipelineBarrier (
382 VkPipelineStageFlags srcStageMask,
383 VkPipelineStageFlags dstStageMask,
384 VkAccessFlags srcAccessMask,
385 VkAccessFlags dstAccessMask,
389 static void cmdSetViewport (
390 const VkViewport& viewport,
391 std::uint32_t index = 0,
394 static void cmdSetViewport (
395 const std::vector< VkViewport >& viewports,
396 std::uint32_t first = 0,
399 static void cmdSetLineWidth (
403 static void cmdSetDepthBias (
404 float constantFactor,
409 static void cmdSetDepthBounds (
410 float minDepthBounds,
411 float maxDepthBounds,
414 static void cmdSetScissor (
415 const VkRect2D& scissor,
416 std::uint32_t index = 0,
419 static void cmdSetScissor (
420 const std::vector< VkRect2D >& scissors,
421 std::uint32_t first = 0,
424 static void cmdSetStencilCompareMask (
425 VkStencilFaceFlags faceMask,
426 std::uint32_t compareMask,
429 static void cmdSetStencilWriteMask (
430 VkStencilFaceFlags faceMask,
431 std::uint32_t writeMask,
434 static void cmdSetStencilReference (
435 VkStencilFaceFlags faceMask,
436 std::uint32_t reference,
439 static void cmdSetBlendConstants (
440 const float blendConstants [ 4 ],
443 static void cmdBeginQuery (
444 const QueryPool& hPool,
446 VkQueryControlFlags flags,
449 static void cmdEndQuery (
450 const QueryPool& hPool,
454 static void cmdWriteTimestamp (
455 const QueryPool& hPool,
457 VkPipelineStageFlagBits pipelineStage,
460 static void cmdBindPipeline (
462 VkPipelineBindPoint pipelineBindPoint,
465 static void cmdBindDescriptorSets (
469 static void cmdBindIndexInput (
471 VkIndexType indexType,
475 static void cmdBindVertexBuffers (
476 const std::vector< Buf >& buffers,
477 const std::vector< VkDeviceSize >& offsets,
478 std::uint32_t first = 0,
481 static void cmdBindVertexBuffers (
482 const std::vector< Buf >& buffers,
483 std::uint32_t first = 0,
486 static void cmdPushConstants (
487 const PipelineLayoutBase& hPipelineLayout,
488 VkShaderStageFlags stageFlags,
491 std::uint32_t offset = 0,
503 static void cmdChangeImageLayout (
505 VkImageLayout oldImageLayout,
506 VkImageLayout newImageLayout,
507 std::uint32_t levelCount = 1,
508 std::uint32_t layerCount = 1,
509 std::uint32_t baseMipLevel = 0,
510 std::uint32_t baseArrayLayer = 0,
511 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:335
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.
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:498
static void cmdCopyImageToBuffer(const Img &hSrcImage, VkImageLayout srcImageLayout, const Buf &hDstBuffer, CommandBuffer hCmdBuffer=CommandBuffer())
Copies entire contents from an image to a buffer.
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.
static void cmdClearColorImage(const Img &hImage, VkImageLayout imageLayout, const VkClearColorValue &color, CommandBuffer hCmdBuffer=CommandBuffer())
Clears an image with specified color.
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.