[Vulkan] Samplerless texelFetch

This commit is contained in:
Triang3l
2022-03-27 00:09:44 +03:00
parent 67a0ccb7c0
commit 2cd6c31998
26 changed files with 9449 additions and 9509 deletions

View File

@@ -30,7 +30,7 @@ void CasFilter(out float pixel_r, out float pixel_g, out float pixel_b,
bool no_scaling);
xesl_entry
xesl_fetchSampler(xesl_sampler2D, xe_cas_source, set=0, binding=0, t0, space0)
xesl_texture(xesl_texture2D, xe_cas_source, set=0, binding=0, t0, space0)
xesl_entry_bindings_end
xesl_input_frag_coord
xesl_entry_signature_next
@@ -65,7 +65,7 @@ xesl_entry_end
#define A_GPU 1
#include "../../../../third_party/FidelityFX-CAS/ffx-cas/ffx_a.h"
xesl_float3 CasLoad(xesl_int2 p) {
return xesl_texelFetch2D_comb(xe_cas_source, p, 0).rgb;
return xesl_texelFetch2D(xe_cas_source, p, 0).rgb;
}
void CasInput(inout float r, inout float g, inout float b) {
// Linear conversion approximation as recommended in the CAS presentation.