ShaderCompiler: Add new helper define for input attachment binding

This commit is contained in:
OatmealDome 2021-07-30 04:09:22 -04:00
parent c12b9b013b
commit 40eb071562
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ static const char SHADER_HEADER[] = R"(
#define SAMPLER_BINDING(x) layout(set = 1, binding = x)
#define TEXEL_BUFFER_BINDING(x) layout(set = 1, binding = (x + 8))
#define SSBO_BINDING(x) layout(set = 2, binding = x)
#define INPUT_ATTACHMENT_BINDING(x, y, z) layout(set = x, binding = y, input_attachment_index = z)
#define VARYING_LOCATION(x) layout(location = x)
#define FORCE_EARLY_Z layout(early_fragment_tests) in