15 #include <vsg/state/ImageView.h>
16 #include <vsg/vk/RenderPass.h>
27 operator VkFramebuffer()
const {
return _framebuffer; }
28 VkFramebuffer vk()
const {
return _framebuffer; }
30 Device* getDevice() {
return _device; }
31 const Device* getDevice()
const {
return _device; }
33 RenderPass* getRenderPass() {
return _renderPass; }
34 const RenderPass* getRenderPass()
const {
return _renderPass; }
36 ImageViews& getAttachments() {
return _attachments; }
37 const ImageViews& getAttachments()
const {
return _attachments; }
39 uint32_t width()
const {
return _width; }
40 uint32_t height()
const {
return _height; }
41 uint32_t layers()
const {
return _layers; }
43 VkExtent2D extent2D()
const {
return VkExtent2D{_width, _height}; }
48 VkFramebuffer _framebuffer;
52 ImageViews _attachments;
54 const uint32_t _width;
55 const uint32_t _height;
56 const uint32_t _layers;
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition: Device.h:37
Framebuffer encapsulates VkFramebuffer, used as a rendering target associated with a Window or for re...
Definition: Framebuffer.h:23
RenderPass encapsulation of VkRenderPass.
Definition: RenderPass.h:86