10 uint32_t srcQueueFamilyIndex{VK_QUEUE_FAMILY_IGNORED};
11 uint32_t dstQueueFamilyIndex{VK_QUEUE_FAMILY_IGNORED};
12 const API::Buffer* buffer{
nullptr};
13 VkDeviceSize offset{0};
14 VkDeviceSize size{VK_WHOLE_SIZE};
22 VkImageAspectFlags aspectMask{VK_IMAGE_ASPECT_COLOR_BIT};
23 uint32_t baseMipLevel{0};
24 uint32_t levelCount{1};
25 uint32_t baseArrayLayer{0};
26 uint32_t layerCount{1};
36 VkImageLayout oldLayout{VK_IMAGE_LAYOUT_UNDEFINED};
37 VkImageLayout newLayout{VK_IMAGE_LAYOUT_UNDEFINED};
38 uint32_t srcQueueFamilyIndex{VK_QUEUE_FAMILY_IGNORED};
39 uint32_t dstQueueFamilyIndex{VK_QUEUE_FAMILY_IGNORED};
40 const API::Image* image{
nullptr};
50 VkPipelineLayout layout = VK_NULL_HANDLE;
51 VkShaderStageFlags stageFlags = VK_SHADER_STAGE_ALL;
54 const void* values =
nullptr;
59 VkDependencyFlags dependencyFlags = VK_DEPENDENCY_BY_REGION_BIT,
60 VkPipelineStageFlags srcStageMask = VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
61 VkPipelineStageFlags dstStageMask = VK_PIPELINE_STAGE_ALL_COMMANDS_BIT
64 void bindPipeline(
const API::GraphicsPipeline& pipeline, VkPipelineBindPoint pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS)
const;
66 const std::vector<const API::Buffer*>& buffers,
67 const std::vector<VkDeviceSize>& offsets,
68 uint32_t firstBinding = 0
70 void bindIndexBuffer(
const API::Buffer& buffer, VkIndexType indexType, VkDeviceSize offset = 0)
const;
72 void setViewport(
const std::vector<VkViewport>& viewports, uint32_t firstViewport = 0)
const;
73 void setScissor(
const std::vector<VkRect2D>& scissors, uint32_t firstScissor = 0)
const;
std::vector< ImageMemoryBarrier > imageMemoryBarriers
std::vector< MemoryBarrier > memoryBarriers
void setBlendConstants(const float blendConstants[4]) const
void pipelineBarrier(const CmdPipelineBarrier ¶meters, VkDependencyFlags dependencyFlags=VK_DEPENDENCY_BY_REGION_BIT, VkPipelineStageFlags srcStageMask=VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, VkPipelineStageFlags dstStageMask=VK_PIPELINE_STAGE_ALL_COMMANDS_BIT) const
VkAccessFlags dstAccessMask
VkAccessFlags srcAccessMask
VkAccessFlags srcAccessMask
ImageSubresourceRange subresourceRange
void bindPipeline(const API::GraphicsPipeline &pipeline, VkPipelineBindPoint pipelineBindPoint=VK_PIPELINE_BIND_POINT_GRAPHICS) const
void bindIndexBuffer(const API::Buffer &buffer, VkIndexType indexType, VkDeviceSize offset=0) const
VkAccessFlags dstAccessMask
std::vector< BufferMemoryBarrier > bufferMemoryBarriers
void setScissor(const std::vector< VkRect2D > &scissors, uint32_t firstScissor=0) const
void setViewport(const std::vector< VkViewport > &viewports, uint32_t firstViewport=0) const
void bindVertexBuffers(const std::vector< const API::Buffer *> &buffers, const std::vector< VkDeviceSize > &offsets, uint32_t firstBinding=0) const
void pushConstants(const CmdPushConstants ¶meters) const