mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 17:01:22 +00:00
a94949c009
After getting lights even vaguely working for alias models, I realized that it just wasn't going to be feasible to do nice lighting with forward rendering. This gets the bulk of the work done for deferred rendering, but still need to sort out the shaders before any real testing can be done.
50 lines
1.6 KiB
C
50 lines
1.6 KiB
C
#ifndef __QF_Vulkan_renderpass_h
|
|
#define __QF_Vulkan_renderpass_h
|
|
|
|
#include "QF/darray.h"
|
|
|
|
typedef struct qfv_attachmentdescription_s
|
|
DARRAY_TYPE (VkAttachmentDescription) qfv_attachmentdescription_t;
|
|
|
|
#define QFV_AllocAttachmentDescription(num, allocator) \
|
|
DARRAY_ALLOCFIXED (qfv_attachmentdescription_t, num, allocator)
|
|
|
|
typedef struct qfv_attachmentreference_s
|
|
DARRAY_TYPE (VkAttachmentReference) qfv_attachmentreference_t;
|
|
|
|
#define QFV_AllocAttachmentReference(num, allocator) \
|
|
DARRAY_ALLOCFIXED (qfv_attachmentreference_t, num, allocator)
|
|
|
|
typedef struct qfv_subpassparametersset_s
|
|
DARRAY_TYPE (VkSubpassDescription) qfv_subpassparametersset_t;
|
|
|
|
#define QFV_AllocSubpassParametersSet(num, allocator) \
|
|
DARRAY_ALLOCFIXED (qfv_subpassparametersset_t, num, allocator)
|
|
|
|
typedef struct qfv_subpassdependency_s
|
|
DARRAY_TYPE (VkSubpassDependency) qfv_subpassdependency_t;
|
|
|
|
#define QFV_AllocSubpassDependencies(num, allocator) \
|
|
DARRAY_ALLOCFIXED (qfv_subpassdependency_t, num, allocator)
|
|
|
|
typedef struct qfv_framebufferset_s
|
|
DARRAY_TYPE (VkFramebuffer) qfv_framebufferset_t;
|
|
|
|
#define QFV_AllocFrameBuffers(num, allocator) \
|
|
DARRAY_ALLOCFIXED (qfv_framebufferset_t, num, allocator)
|
|
|
|
struct qfv_device_s;
|
|
struct qfv_imageviewset_s;
|
|
VkRenderPass
|
|
QFV_CreateRenderPass (struct qfv_device_s *device,
|
|
qfv_attachmentdescription_t *attachments,
|
|
qfv_subpassparametersset_t *subpasses,
|
|
qfv_subpassdependency_t *dependencies);
|
|
|
|
VkFramebuffer
|
|
QFV_CreateFramebuffer (struct qfv_device_s *device,
|
|
VkRenderPass renderPass,
|
|
struct qfv_imageviewset_s *attachments,
|
|
VkExtent2D, uint32_t layers);
|
|
|
|
#endif//__QF_Vulkan_renderpass_h
|