ShaderCompiler: Add helpers for Metal framebuffer fetch

This commit is contained in:
OatmealDome 2021-08-02 23:40:59 -04:00
parent 40eb071562
commit f87f704f43

View file

@ -54,6 +54,9 @@ static const char SHADER_HEADER[] = R"(
#define VARYING_LOCATION(x) layout(location = x)
#define FORCE_EARLY_Z layout(early_fragment_tests) in
// Metal framebuffer fetch helpers.
#define FB_FETCH_VALUE subpassLoad(in_ocol0)
// hlsl to glsl function translation
#define API_VULKAN 1
#define float2 vec2