mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-15 01:11:27 +00:00
e5708100bb
This makes it easy to add resource nodes defining contextually named resources. It is already used for shaders, set layouts, and pipeline layouts.
31 lines
689 B
C
31 lines
689 B
C
#ifndef __vkparse_h
|
|
#define __vkparse_h
|
|
|
|
#include "QF/cexpr.h"
|
|
#include "QF/Vulkan/renderpass.h"
|
|
#ifdef vkparse_internal
|
|
#include "libs/video/renderer/vulkan/vkparse.hinc"
|
|
#endif
|
|
|
|
typedef struct parsectx_s {
|
|
struct exprctx_s *ectx;
|
|
struct vulkan_ctx_s *vctx;
|
|
} parsectx_t;
|
|
|
|
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;
|
|
|
|
VkRenderPass QFV_ParseRenderPass (vulkan_ctx_t *ctx, plitem_t *plist);
|
|
void QFV_ParseResources (vulkan_ctx_t *ctx, plitem_t *plist);
|
|
void QFV_InitParse (void);
|
|
exprenum_t *QFV_GetEnum (const char *name);
|
|
|
|
#endif//__vkparse_h
|