2021-11-05 17:11:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "vk_core.h"
|
|
|
|
|
|
|
|
qboolean XVK_DenoiserInit( void );
|
|
|
|
void XVK_DenoiserDestroy( void );
|
|
|
|
|
2021-11-07 21:46:27 +01:00
|
|
|
void XVK_DenoiserReloadPipeline( void );
|
|
|
|
|
2021-11-05 17:11:40 +01:00
|
|
|
typedef struct {
|
|
|
|
VkCommandBuffer cmdbuf;
|
2021-11-07 19:07:01 +01:00
|
|
|
uint32_t width, height;
|
2021-11-07 21:46:27 +01:00
|
|
|
|
|
|
|
struct {
|
|
|
|
VkImageView base_color_view;
|
|
|
|
VkImageView diffuse_gi_view;
|
2021-11-09 19:59:36 +01:00
|
|
|
VkImageView specular_view;
|
|
|
|
VkImageView additive_view;
|
2021-11-12 19:42:56 +01:00
|
|
|
VkImageView normals_view;
|
2021-11-07 21:46:27 +01:00
|
|
|
} src;
|
|
|
|
|
|
|
|
VkImageView dst_view;
|
2021-11-05 17:11:40 +01:00
|
|
|
} xvk_denoiser_args_t;
|
|
|
|
|
|
|
|
void XVK_DenoiserDenoise( const xvk_denoiser_args_t* args );
|