mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 22:52:21 +00:00
918237507e
This is for the new system.
93 lines
3.3 KiB
C
93 lines
3.3 KiB
C
#ifndef __vkparse_h
|
|
#define __vkparse_h
|
|
|
|
typedef struct parsectx_s {
|
|
struct exprctx_s *ectx;
|
|
struct vulkan_ctx_s *vctx;
|
|
struct plitem_s *properties;
|
|
void *data;
|
|
} parsectx_t;
|
|
|
|
typedef struct scriptctx_s {
|
|
struct vulkan_ctx_s *vctx;
|
|
struct hashctx_s *hashctx;
|
|
|
|
struct plitem_s *pipelineDef;
|
|
struct hashtab_s *shaderModules;
|
|
struct hashtab_s *setLayouts;
|
|
struct hashtab_s *pipelineLayouts;
|
|
struct hashtab_s *descriptorPools;
|
|
struct hashtab_s *samplers;
|
|
struct hashtab_s *images;
|
|
struct hashtab_s *imageViews;
|
|
struct hashtab_s *renderpasses;
|
|
|
|
qfv_output_t output;
|
|
} scriptctx_t;
|
|
|
|
void Vulkan_Init_Cvars (void);
|
|
void Vulkan_Script_Init (struct vulkan_ctx_s *ctx);
|
|
void Vulkan_Script_Shutdown (struct vulkan_ctx_s *ctx);
|
|
void Vulkan_Script_SetOutput (struct vulkan_ctx_s *ctx, qfv_output_t *output);
|
|
|
|
#include "QF/cexpr.h"
|
|
#include "QF/plist.h"
|
|
|
|
#define QFV_PROPERTIES "properties"
|
|
|
|
exprenum_t *QFV_GetEnum (const char *name);
|
|
|
|
uint64_t QFV_GetHandle (struct hashtab_s *tab, const char *name);
|
|
void QFV_AddHandle (struct hashtab_s *tab, const char *name, uint64_t handle);
|
|
|
|
VkRenderPass QFV_ParseRenderPass (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
plitem_t *properties);
|
|
VkPipeline QFV_ParseComputePipeline (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
plitem_t *properties);
|
|
VkPipeline QFV_ParseGraphicsPipeline (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
plitem_t *properties);
|
|
VkDescriptorPool QFV_ParseDescriptorPool (vulkan_ctx_t *ctx, plitem_t *plist,
|
|
plitem_t *properties);
|
|
VkDescriptorSetLayout QFV_ParseDescriptorSetLayout (vulkan_ctx_t *ctx,
|
|
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);
|
|
struct clearvalueset_s *QFV_ParseClearValues (vulkan_ctx_t *ctx,
|
|
plitem_t *plist,
|
|
plitem_t *properties);
|
|
|
|
struct qfv_subpassset_s *QFV_ParseSubpasses (vulkan_ctx_t *ctx,
|
|
plitem_t *plist,
|
|
plitem_t *properties);
|
|
int QFV_ParseRGBA (vulkan_ctx_t *ctx, float *rgba, plitem_t *plist,
|
|
plitem_t *properties);
|
|
int QFV_ParseOutput (vulkan_ctx_t *ctx, qfv_output_t *output, plitem_t *plist,
|
|
plitem_t *properties);
|
|
exprtab_t *QFV_CreateSymtab (plitem_t *dict, const char *properties,
|
|
const char **extra_items, exprsym_t *extra_syms,
|
|
exprctx_t *ectx);
|
|
void QFV_DestroySymtab (exprtab_t *tab);
|
|
|
|
struct qfv_renderctx_s;
|
|
struct qfv_renderinfo_s *QFV_ParseRenderInfo (vulkan_ctx_t *ctx,
|
|
plitem_t *item,
|
|
struct qfv_renderctx_s *rctx);
|
|
struct memsuper_s;
|
|
int QFV_ParseLayoutInfo (vulkan_ctx_t *ctx, struct memsuper_s *memsuper,
|
|
exprtab_t *symtab, const char *ref,
|
|
qfv_layoutinfo_t *layout);
|
|
#endif//__vkparse_h
|