RetroArch/intl
Autechre 7b9cbc08d7
Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917)
* Add HDR support

* Attempt to fix Mingw build and Metal builds

* (D3D12) Fix relative header includes

* Add missing hdr_sm5.hlsl.h

* (d3d12_common.c) Some C89 build fixes

* Fix MSVC build

* - Attempt to fix build on mingw/msys unix with dirty hack
- Fix shader compilation of hdr_sm5.hlsl.h on MSVC/Visual Studio -
the define was seen as an error and was causing the first pipeline
to error out
- Make sure we manually set handle of backBuffer to NULL

* Moving the release of the texture above the freeing of desc.srv_heap
and desc.rtv_heap solves the hard crashes on teardown/setup in RA -
it was crashing hard in d3d12_release_texture before

* Add HAVE_D3D12_HDR ifdef - needs to be disabled for WinRT for now
because of several things that are Windows desktop-specific right now
(GetWindowRect)

* Add dirty GUID hack - should work for both mingw/msys on Windows/Linux
as well as MSVC/Visual Studio (hopefully)

* Change HAVE_D3D12_HDR to HAVE_DXGI_HDR

* Move away from camelcase named variables

* Fix RARCH_ERR logs - they need a newline at the end

* d3d12_check_display_hdr_support - make it return a bool on return
and set d3d12->hdr.support and d3d12->hdr.enable outside of the
function

* (DXGI) Remove D3D12 dependencies from dxgi_check_display_hdr_support and
move it to dxgi_common.c instead

* (DXGI) move d3d12_swapchain_color_space over to dxgi_common.c and
rename it dxgi_swapchain_color_space

* (DXGI) move d3d12_set_hdr_metadata to dxgi_common.c and
rename it dxgi_set_hdr_metadata

* (DXGI) dxgi_check_display_hdr_support - better error handling?

* Fix typo

* Remove video_force_resolution

* (D3D12) Address TODO/FIXME

* (D3D12) Backport
c1b6c0bff2
- Fixed resource transition for present when HDR is off
Fixed cel shader displaying all black as blending was enabled when the hdr shader was being applied - turned off blending during this shader

* Move d3d12_hdr_uniform_t to dxgi_common.h and
rename it dxgi_hdr_uniform_t

* (D3D11) Add HDR support

* Add TODO/FIXME notes

* Cache hdr_enable in video_frame_info_t

* Update comment
2021-09-03 06:15:25 +02:00
..
.gitignore
crowdin_sync.py
crowdin.yaml
fetch_progress.py
googleplay_ar.json
googleplay_ast.json
googleplay_chs.json
googleplay_cht.json
googleplay_cs.json
googleplay_cy.json
googleplay_da.json
googleplay_de.json
googleplay_el.json
googleplay_eo.json
googleplay_es.json
googleplay_fa.json
googleplay_fi.json
googleplay_fr.json
googleplay_gl.json
googleplay_he.json
googleplay_hu.json
googleplay_id.json
googleplay_it.json
googleplay_ja.json
googleplay_ko.json
googleplay_nl.json
googleplay_oc.json
googleplay_pl.json
googleplay_pt_br.json
googleplay_pt_pt.json
googleplay_ru.json
googleplay_sk.json
googleplay_sv.json
googleplay_tr.json
googleplay_uk.json
googleplay_us.json
googleplay_vn.json
h2json.py
json2h.py
msg_hash_ar.c
msg_hash_ar.h
msg_hash_ast.c
msg_hash_ast.h
msg_hash_chs.c
msg_hash_chs.h
msg_hash_cht.c
msg_hash_cht.h
msg_hash_cs.h
msg_hash_cy.h
msg_hash_da.h
msg_hash_de.c
msg_hash_de.h
msg_hash_el.c
msg_hash_el.h
msg_hash_eo.c
msg_hash_eo.h
msg_hash_es.c
msg_hash_es.h
msg_hash_fa.c
msg_hash_fa.h
msg_hash_fi.c
msg_hash_fi.h
msg_hash_fr.c
msg_hash_fr.h
msg_hash_gl.h
msg_hash_he.c
msg_hash_he.h
msg_hash_hu.h
msg_hash_id.h
msg_hash_it.c
msg_hash_it.h
msg_hash_ja.c
msg_hash_ja.h
msg_hash_ko.c
msg_hash_ko.h
msg_hash_lbl.h
msg_hash_nl.c
msg_hash_nl.h
msg_hash_oc.h
msg_hash_pl.c
msg_hash_pl.h
msg_hash_pt_br.c
msg_hash_pt_br.h
msg_hash_pt_pt.c
msg_hash_pt_pt.h
msg_hash_ru.c
msg_hash_ru.h
msg_hash_sk.c
msg_hash_sk.h
msg_hash_sv.h
msg_hash_tr.c
msg_hash_tr.h
msg_hash_uk.h
msg_hash_us.c
msg_hash_us.h
msg_hash_vn.c
msg_hash_vn.h
progress.h
README.md
steam_ar.json
steam_ast.json
steam_chs.json
steam_cht.json
steam_cs.json
steam_cy.json
steam_da.json
steam_de.json
steam_el.json
steam_eo.json
steam_es.json
steam_fa.json
steam_fi.json
steam_fr.json
steam_gl.json
steam_he.json
steam_hu.json
steam_id.json
steam_it.json
steam_ja.json
steam_ko.json
steam_nl.json
steam_oc.json
steam_pl.json
steam_pt_br.json
steam_pt_pt.json
steam_ru.json
steam_sk.json
steam_sv.json
steam_tr.json
steam_uk.json
steam_us.json
steam_vn.json

Internationalization Workflow

For Translators

Use Crowdin

  1. Register user account at https://crowdin.com/
  2. Join the project https://crowdin.com/project/retroarch/
  3. Select your language to translate
  4. Click the file name msg_hash_us.json and the editor should open
  5. Select an untranslated (red) string from the list
  6. Type translation and save
  7. Next string...

Links:

Request New Language

You can open a new issue and @guoyunhe to add new language.

For Maintainers

Set Up

Install Java, Python3 and Git

Synchronize

cd intl
python3 crowin_sync.py

Manage Crowdin Project

  1. You need to be project admin. Please contact @guoyunhe or @twinaphex
  2. Go to https://crowdin.com/project/retroarch/settings
  3. You can manage languages, members etc. here

Links:

Message File Format

  1. Must NOT contain #else
  2. Must NOT have multiple-line string syntax
    // bad
    MSG_HASH(
      MENU_ENUM_SUBLABEL_CHEEVOS_ENABLE,
      "Compete to earn custom-made achievements in classic games.\n"
      "For more information, visit http://retroachievements.org"
      )
    // good
    MSG_HASH(
      MENU_ENUM_SUBLABEL_CHEEVOS_ENABLE,
      "Compete to earn custom-made achievements in classic games.\nFor more information, visit http://retroachievements.org"
      )
    
  3. Must NOT contain lowercase letters in key name
    // bad (x)
    MSG_HASH(
      MENU_ENUM_LABEL_VALUE_CTR_VIDEO_MODE_2D_800x240,
      "2D (High Resolution)"
      )
    // good (X)
    MSG_HASH(
      MENU_ENUM_LABEL_VALUE_CTR_VIDEO_MODE_2D_800X240,
      "2D (High Resolution)"
      )
    

Add New Languages

  1. Go to Crowdin and add the language
  2. Run Crowdin script to download new translations
  3. Add new language into menu (see #10787)