83 ESamplingMode SAMPLING = SAMPLER_NORMALIZED,
84 class FormatT =
typename ImageT::format_type,
85 unsigned int ASPECTS = FormatT::aspects,
86 ECubeMode CUBE = CUBE_ALLOW >
111 template<
class AttributesT >
142 unsigned int baseMipLevel,
143 unsigned int levelCount,
144 unsigned int baseArrayLayer,
145 unsigned int layerCount,
146 const VkComponentMapping& componentMapping = ComponentMapping()
150 operator VkImageView()
const;
187 template<
class AttributesT >
190 VkImageLayout layout = VK_IMAGE_LAYOUT_UNDEFINED );
220 template<
class AttributesT,
class SamplerT >
222 const SamplerT& sampler,
224 VkImageLayout layout = VK_IMAGE_LAYOUT_UNDEFINED );
A template encoding image view attributes inside C++ type.
Definition: vppImageView.hpp:87
Represents logical rendering device.
Definition: vppDevice.hpp:49
AttributesT::format_type format_type
Format type (an instance of vpp::format template).
Definition: vppImageView.hpp:119
FrameImageView frameView() const
Converts the typed view to untyped view.
AttributesT attributes_type
Attributes type (taken from the argument).
Definition: vppImageView.hpp:122
Untyped image view class. Useful for constructing FrameBuffer objects.
Definition: vppFrameImageView.hpp:46
The VPP namespace.
Definition: main.hpp:1
const Device & device() const
Retrieves the device.
auto bind(const ImageView< AttributesT > &view, VkImageLayout layout=VK_IMAGE_LAYOUT_UNDEFINED)
Helper function to bind specified image view to a binding point in a pipeline.
const VkImageSubresourceRange & subresourceRange() const
Retrieves the range of image slice (levels and layers).
const image_type & image() const
Retrieves the image.
AttributesT::image_type image_type
Image type.
Definition: vppImageView.hpp:116
ImageView()
Constructs null reference.
Typed image view.
Definition: vppImageView.hpp:112