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