Cleanup: EEVEE-Next: Add pipeline defines

This commit is contained in:
Clément Foucault
2023-12-11 14:27:39 +01:00
parent 25e74f0115
commit 809365d24a
2 changed files with 2 additions and 4 deletions

View File

@@ -394,10 +394,6 @@ void ShaderModule::material_create_info_ammend(GPUMaterial *gpumat, GPUCodegenOu
}
}
if (pipeline_type == MAT_PIPE_PREPASS_FORWARD) {
info.define("MAT_FORWARD");
}
bool supports_render_passes = (pipeline_type == MAT_PIPE_DEFERRED);
/* Opaque forward do support AOVs and render pass if not using transparency. */
if (!GPU_material_flag_get(gpumat, GPU_MATFLAG_TRANSPARENT) &&

View File

@@ -149,6 +149,7 @@ GPU_SHADER_CREATE_INFO(eevee_cryptomatte_out)
.image_out(RBUFS_CRYPTOMATTE_SLOT, Qualifier::WRITE, GPU_RGBA32F, "rp_cryptomatte_img");
GPU_SHADER_CREATE_INFO(eevee_surf_deferred)
.define("MAT_DEFERRED")
/* NOTE: This removes the possibility of using gl_FragDepth. */
.early_fragment_test(true)
/* Direct output. (Emissive, Holdout) */
@@ -170,6 +171,7 @@ GPU_SHADER_CREATE_INFO(eevee_surf_deferred)
"eevee_hiz_data");
GPU_SHADER_CREATE_INFO(eevee_surf_forward)
.define("MAT_FORWARD")
/* Early fragment test is needed for render passes support for forward surfaces. */
/* NOTE: This removes the possibility of using gl_FragDepth. */
.early_fragment_test(true)