You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Merge pull request #100653 from stuartcarnie/remove_moltenvk_hack
Rendering: MoltenVK hack is no longer required, as bug was fixed.
This commit is contained in:
@@ -36,18 +36,11 @@ using namespace RendererRD;
|
|||||||
|
|
||||||
FSR::FSR() {
|
FSR::FSR() {
|
||||||
Vector<String> FSR_upscale_modes;
|
Vector<String> FSR_upscale_modes;
|
||||||
|
|
||||||
#if defined(MACOS_ENABLED) || defined(IOS_ENABLED)
|
|
||||||
// MoltenVK does not support some of the operations used by the normal mode of FSR. Fallback works just fine though.
|
|
||||||
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_FALLBACK\n");
|
|
||||||
#else
|
|
||||||
// Everyone else can use normal mode when available.
|
|
||||||
if (RD::get_singleton()->has_feature(RD::SUPPORTS_FSR_HALF_FLOAT)) {
|
if (RD::get_singleton()->has_feature(RD::SUPPORTS_FSR_HALF_FLOAT)) {
|
||||||
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_NORMAL\n");
|
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_NORMAL\n");
|
||||||
} else {
|
} else {
|
||||||
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_FALLBACK\n");
|
FSR_upscale_modes.push_back("\n#define MODE_FSR_UPSCALE_FALLBACK\n");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
fsr_shader.initialize(FSR_upscale_modes);
|
fsr_shader.initialize(FSR_upscale_modes);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user