ShaderCompiler: Add helpers for Metal framebuffer fetch
This commit is contained in:
parent
40eb071562
commit
f87f704f43
|
@ -54,6 +54,9 @@ static const char SHADER_HEADER[] = R"(
|
||||||
#define VARYING_LOCATION(x) layout(location = x)
|
#define VARYING_LOCATION(x) layout(location = x)
|
||||||
#define FORCE_EARLY_Z layout(early_fragment_tests) in
|
#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
|
// hlsl to glsl function translation
|
||||||
#define API_VULKAN 1
|
#define API_VULKAN 1
|
||||||
#define float2 vec2
|
#define float2 vec2
|
||||||
|
|
Loading…
Reference in New Issue