Skip to content

Commit 9b99a7e

Browse files
stuartcarnieWhalesState
authored andcommittedMar 24, 2025
Rendering: MoltenVK hack is no longer required, as bug was fixed.
Original issue: godotengine#51679 (comment) And related fix in SPIRV-Cross: KhronosGroup/SPIRV-Cross#2046
1 parent 99a4e85 commit 9b99a7e

File tree

1 file changed

+0
-7
lines changed
  • servers/rendering/renderer_rd/effects

1 file changed

+0
-7
lines changed
 

‎servers/rendering/renderer_rd/effects/fsr.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,11 @@ using namespace RendererRD;
3636

3737
FSR::FSR() {
3838
Vector<String> FSR_upscale_modes;
39-
40-
#if defined(MACOS_ENABLED) || defined(IOS_ENABLED)
41-
// MoltenVK does not support some of the operations used by the normal mode of FSR. Fallback works just fine though.
42-
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_FALLBACK\n");
43-
#else
44-
// Everyone else can use normal mode when available.
4539
if (RD::get_singleton()->has_feature(RD::SUPPORTS_FSR_HALF_FLOAT)) {
4640
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_NORMAL\n");
4741
} else {
4842
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_FALLBACK\n");
4943
}
50-
#endif
5144

5245
fsr_shader.initialize(FSR_upscale_modes);
5346

0 commit comments

Comments
 (0)
Please sign in to comment.