Check if VRS is supported on creating VRS object
This commit is contained in:
parent
c241f1c523
commit
e328a0bcf8
1 changed files with 4 additions and 1 deletions
|
@ -1419,10 +1419,13 @@ void RendererSceneRenderRD::init() {
|
|||
cull_argument.set_page_pool(&cull_argument_pool);
|
||||
|
||||
bool can_use_storage = _render_buffers_can_be_storage();
|
||||
bool can_use_vrs = is_vrs_supported();
|
||||
bokeh_dof = memnew(RendererRD::BokehDOF(!can_use_storage));
|
||||
copy_effects = memnew(RendererRD::CopyEffects(!can_use_storage));
|
||||
tone_mapper = memnew(RendererRD::ToneMapper);
|
||||
vrs = memnew(RendererRD::VRS);
|
||||
if (can_use_vrs) {
|
||||
vrs = memnew(RendererRD::VRS);
|
||||
}
|
||||
if (can_use_storage) {
|
||||
fsr = memnew(RendererRD::FSR);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue