Skip to content

Commit

Permalink
Merge pull request #40 from marat569/YS10
Browse files Browse the repository at this point in the history
[YS10] Upgrade RGBA8_Unorm render targets
  • Loading branch information
marat569 authored Oct 27, 2024
2 parents 28d8d07 + 1dba683 commit d6cbbca
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/games/ys10/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,19 @@ BOOL APIENTRY DllMain(HMODULE h_module, DWORD fdw_reason, LPVOID lpv_reserved) {
renodx::mods::swapchain::force_borderless = false; // needed for stability
renodx::mods::swapchain::prevent_full_screen = false; // needed for stability

// RGBA8_typeless
// renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
// .old_format = reshade::api::format::r8g8b8a8_typeless,
// .new_format = reshade::api::format::r16g16b16a16_float,
// });
// RGBA8_UNORM 16:9
renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
.old_format = reshade::api::format::r8g8b8a8_unorm,
.new_format = reshade::api::format::r16g16b16a16_float,
.aspect_ratio = 16.f / 9.f,
});

// RGBA8_UNORM 512x512
renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
.old_format = reshade::api::format::r8g8b8a8_unorm,
.new_format = reshade::api::format::r16g16b16a16_float,
.dimensions = {512,512},
});

// R11G11B10
// renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({.old_format = reshade::api::format::r11g11b10_float,
Expand Down

0 comments on commit d6cbbca

Please sign in to comment.