Add default values if no attachments are present, correctly handle
override values when attachments are present. Bug# 13212, header
revision #36.
.pColorAttachments = (XGL_COLOR_ATTACHMENT_BIND_INFO*) &color_attachment,
.pDepthStencilAttachment = (XGL_DEPTH_STENCIL_BIND_INFO*) &depth_stencil,
.sampleCount = 1,
+ .width = demo->width,
+ .height = demo->height,
+ .layers = 1,
};
XGL_RENDER_PASS_CREATE_INFO rp_info;
.pColorAttachments = (XGL_COLOR_ATTACHMENT_BIND_INFO*) &color_attachment,
.pDepthStencilAttachment = (XGL_DEPTH_STENCIL_BIND_INFO*) &depth_stencil,
.sampleCount = 1,
+ .width = demo->width,
+ .height = demo->height,
+ .layers = 1,
};
XGL_RENDER_PASS_CREATE_INFO rp_info;
XGL_COLOR_ATTACHMENT_BIND_INFO* pColorAttachments;
XGL_DEPTH_STENCIL_BIND_INFO* pDepthStencilAttachment;
XGL_UINT sampleCount;
-
+ XGL_UINT width;
+ XGL_UINT height;
+ XGL_UINT layers;
} XGL_FRAMEBUFFER_CREATE_INFO;
typedef struct _XGL_DRAW_INDIRECT_CMD