15 #include <vsg/state/Image.h>
21 extern VSG_DECLSPEC VkImageAspectFlags computeAspectFlagsForFormat(VkFormat format);
31 VkImageViewCreateFlags flags = 0;
33 VkImageViewType viewType = VK_IMAGE_VIEW_TYPE_2D;
34 VkFormat format = VK_FORMAT_UNDEFINED;
35 VkComponentMapping components = {VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_IDENTITY};
36 VkImageSubresourceRange subresourceRange;
39 VkImageView
vk(uint32_t deviceID)
const {
return _vulkanData[deviceID].imageView; }
43 virtual void compile(
Device* device);
44 virtual void compile(
Context& context);
51 VkImageView imageView = VK_NULL_HANDLE;
62 using ImageViews = std::vector<ref_ptr<ImageView>>;
71 extern VSG_DECLSPEC
void transferImageData(
ref_ptr<ImageView> imageView, VkImageLayout targetImageLayout,
Data::Properties properties, uint32_t width, uint32_t height, uint32_t depth, uint32_t mipLevels,
const Data::MipmapOffsets& mipmapOffsets,
ref_ptr<Buffer> stagingBuffer, VkDeviceSize stagingBufferOffset, VkCommandBuffer vk_commandBuffer,
vsg::Device* device);
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition: Device.h:37
ImageView class encapsulates VkImageView and VkImageViewCreateInfo settings used to set it up.
Definition: ImageView.h:25
VkImageView vk(uint32_t deviceID) const
Vulkan VkImageView handle.
Definition: ImageView.h:39
int compare(const Object &rhs_object) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
Definition: ImageView.h:50
vk_buffer that manages a single logical device supported.
Definition: vk_buffer.h:28