Skip to content

v0.0.24

Choose a tag to compare

@github-actions github-actions released this 18 Nov 15:07
· 13 commits to main since this release
388db9b

repsp v0.0.24

표시 단계의 화면 셰이더(libretro GLSL).

issue 내용 커밋
#50 re2DJ v0.0.75의 화면 셰이더를 가져왔다. 표시 단계에서만: GL 헬퍼 DrawTexture의 마지막 quad를 셰이더로 그리고, 게스트가 읽을 수 있는 것은 바뀌지 않는다. none이면 GL 호출이 이전과 같다. 형식: libretro 단일 pass .glsl과 다단계 .glslp의 부분집합, #pragma parameter. repsp는 GL 3.3 core 문맥이라 GLSL 1.20 소스를 조립 단계에서 바꾼다(#version 교체, attribute/varying/texture2D 매크로, gl_FragColor 토큰 치환). 크기: TextureSize/InputSize는 입력 텍스처의 실제 픽셀 크기, 새 LogicalSize는 게임의 논리 해상도다. 내장: crt, scanline(이 둘은 LogicalSize 기준), fsr, scalefx, anime4k. 제어: include/repsp/platform/post_shader.h(목록, Select, Reload, 매개변수, SetPostShaderDirectory, SetInitialPostShader, ChoosePostShader). 실패하면 none으로 그리고 이유를 남긴다. 위아래가 뒤집힌 CPU 화면은 다단계 셰이더 앞에서 바로 세운 사본으로 만들어, OrigTexture·PassPrevN을 읽는 pass도 방향이 맞다. gl_probe와 post_shader_probe가 검사한다. 이 릴리스의 squash merge 커밋

라이선스: re2DJ(BSD 3-Clause), FSR 1.0·ScaleFX·Anime4K(MIT). THIRD_PARTY_NOTICES.md에 적었다.

측정(한 게임): 셰이더 none에서 플레이 화면까지 입력 스크립트 3회, 표시 간격 평균 20.30~20.47 ms, 미발견 주소 dispatch 0건. 3배 창에서 내장 다섯 개 모두 끝까지 진행했다. 사용자가 창 모드에서 확인했다.

검증: Win64(Visual Studio) Release, Win64 Ninja Debug/Release, Linux x64 Debug/Release 빌드와 CTest.


repsp v0.0.24

Screen shaders (libretro GLSL) at presentation.

Issue #50 brings over re2DJ v0.0.75's screen shaders.

  • At presentation only: the GL helper's DrawTexture draws its last quad through the shader. Nothing the guest can read changes, and none issues the same GL calls as before.
  • Format: a subset of libretro single-pass .glsl and multi-pass .glslp, with #pragma parameter. repsp's context is GL 3.3 core, so GLSL 1.20 sources are translated at assembly: the #version is replaced, attribute, varying and texture2D become macros, and gl_FragColor is replaced token by token.
  • Sizes: TextureSize and InputSize are the input texture's actual pixel size. The new LogicalSize is the game's logical resolution.
  • Built-ins: crt and scanline (both counting by LogicalSize), fsr, scalefx and anime4k.
  • Control: include/repsp/platform/post_shader.h gives the list, Select, Reload, parameters, SetPostShaderDirectory, SetInitialPostShader and ChoosePostShader. A failure draws with none and records the reason.
  • Orientation: a top-down CPU picture is drawn upright before a multi-pass chain, so passes reading OrigTexture or PassPrevN see it the right way up.
  • gl_probe and post_shader_probe cover this.

Licenses: re2DJ (BSD 3-Clause); FSR 1.0, ScaleFX and Anime4K (MIT). See THIRD_PARTY_NOTICES.md.

Measured (one title):

  • With none, input script to gameplay, three runs: mean present interval 20.30-20.47 ms, no unresolved-address dispatches.
  • All five built-ins run through at a 3x window.

Confirmed by the user in windowed mode.

Verified: build and CTest pass on Win64 (Visual Studio) Release, Win64 Ninja Debug/Release and Linux x64 Debug/Release.