2020-07-16 06:42:49 +00:00
|
|
|
#ifndef __vkparse_h
|
|
|
|
#define __vkparse_h
|
|
|
|
|
2021-01-05 14:42:30 +00:00
|
|
|
typedef struct parsectx_s {
|
|
|
|
struct exprctx_s *ectx;
|
|
|
|
struct vulkan_ctx_s *vctx;
|
2021-02-14 02:35:06 +00:00
|
|
|
struct plitem_s *properties;
|
|
|
|
void *data;
|
2021-01-05 14:42:30 +00:00
|
|
|
} parsectx_t;
|
|
|
|
|
2020-12-23 16:36:17 +00:00
|
|
|
#include "QF/cexpr.h"
|
2021-03-21 07:13:03 +00:00
|
|
|
#include "QF/plist.h"
|
2020-07-16 06:42:49 +00:00
|
|
|
#include "QF/Vulkan/renderpass.h"
|
2021-01-04 08:26:39 +00:00
|
|
|
#ifdef vkparse_internal
|
2020-12-21 09:38:31 +00:00
|
|
|
#include "libs/video/renderer/vulkan/vkparse.hinc"
|
2021-01-04 08:26:39 +00:00
|
|
|
#endif
|
2020-07-16 06:42:49 +00:00
|
|
|
|
2021-02-04 11:40:28 +00:00
|
|
|
#define QFV_PROPERTIES "properties"
|
|
|
|
|
2021-01-05 05:15:35 +00:00
|
|
|
typedef struct parseres_s {
|
|
|
|
const char *name;
|
|
|
|
plfield_t *field;
|
|
|
|
size_t offset;
|
|
|
|
} parseres_t;
|
|
|
|
|
|
|
|
typedef struct handleref_s {
|
|
|
|
char *name;
|
|
|
|
uint64_t handle;
|
|
|
|
} handleref_t;
|
2021-01-04 08:36:11 +00:00
|
|
|
|
2021-01-05 10:55:17 +00:00
|
|
|
void QFV_InitParse (vulkan_ctx_t *ctx);
|
2021-01-04 08:26:39 +00:00
|
|
|
exprenum_t *QFV_GetEnum (const char *name);
|
2020-07-16 06:42:49 +00:00
|
|
|
|
2021-02-04 11:40:28 +00:00
|
|
|
uint64_t QFV_GetHandle (struct hashtab_s *tab, const char *name);
|
|
|
|
void QFV_AddHandle (struct hashtab_s *tab, const char *name, uint64_t handle);
|
|
|
|
|
2021-02-14 02:35:06 +00:00
|
|
|
VkRenderPass QFV_ParseRenderPass (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
VkPipeline QFV_ParsePipeline (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
VkDescriptorPool QFV_ParseDescriptorPool (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
2021-02-04 08:03:49 +00:00
|
|
|
VkDescriptorSetLayout QFV_ParseDescriptorSetLayout (vulkan_ctx_t *ctx,
|
2021-02-14 02:35:06 +00:00
|
|
|
plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
VkPipelineLayout QFV_ParsePipelineLayout (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
VkSampler QFV_ParseSampler (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
VkImage QFV_ParseImage (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
VkImageView QFV_ParseImageView (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
struct qfv_imageset_s *QFV_ParseImageSet (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
struct qfv_imageviewset_s *QFV_ParseImageViewSet (vulkan_ctx_t *ctx,
|
|
|
|
plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
VkFramebuffer QFV_ParseFramebuffer (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
2021-02-23 05:37:48 +00:00
|
|
|
int QFV_ParseClearValues (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
|
|
plitem_t *properties);
|
|
|
|
|
2021-01-05 14:42:30 +00:00
|
|
|
|
2020-07-16 06:42:49 +00:00
|
|
|
#endif//__vkparse_h
|