twinaphex
4b5951bda3
Rename gl_common.h to gl2_common.h and remove some file dependencies
...
on it
2021-09-26 17:42:12 +02:00
OsirizX
b96a0c495a
[VITA] Add support for Vita GLES2 (PIGLET)
2021-01-06 19:14:30 +01:00
HyperspaceMadness
0c526b6498
Shaders Load Refactor and Fix Referenced Texture Loading
...
Partial update to work with shaders directly
More Edits
More changes
more shader fixes
More Fixes Compiling, reference load still wrong
Added Feedback & things are working
Logging Fixes
Log Fix
More Fixes
Added Feedback Logging
Fixes for file pathing in Linux
Fix GLCore and Crash in QT Saving
Code Cleanup
Removed Unused Function filepath.c
Code Cleanup
2020-12-26 21:09:27 -05:00
twinaphex
44b7234756
Move cheat_manager and state_manager to root folder
2020-10-15 05:29:20 +02:00
twinaphex
a1ce1e4f1d
gl_glsl_set_proc_address unneeded - remove it
2020-08-04 03:58:51 +02:00
twinaphex
c387071298
Add static globals TODO/FIXME note
2020-07-20 02:02:00 +02:00
twinaphex
87b9c2a367
Add HAVE_REWIND switch
2020-07-01 21:04:05 +02:00
twinaphex
808c00db41
(drivers_shader) Move static functions to top of files
2020-06-26 18:54:30 +02:00
Higor Eurípedes
1f45018ee8
shader_glsl.c: Move buffer null pointer check in gl_glsl_set_coords()
...
`buffer` is initialized to a statically allocated variable and can only be NULL
when the allocation of a bigger buffer fails. When only the core frame is being
displayed, the buffer never points to the heap thanks to the small buffer
optimization.
2020-06-06 20:08:28 -03:00
twinaphex
1fd6d024eb
More buildfixes for ANGLE
2019-12-07 07:24:20 +01:00
twinaphex
b94b9e2adb
Go back to plain strlcpy/strlcat - probably best to look at
...
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
twinaphex
3b057d9605
Start using STRLCAT_CONST_INCR and STRLCPY_CONST
2019-09-20 23:33:17 +02:00
twinaphex
db624a7c99
Start cleaning up the rather messy manual assignment
2019-09-20 02:03:26 +02:00
twinaphex
306d7f6f8a
glsl_find_uniforms_frame - get rid of the remaining strlcats
2019-09-18 07:53:59 +02:00
twinaphex
ab60005cdc
(GLSL) Avoid snprintf, prefer strlcpy/strlcat where possible
2019-09-18 07:32:06 +02:00
LazyBumHorse
a882901e39
save unmodified auto-shaders as a reference instead of a copy, see:
...
- implement #reference directive for auto-shaders
- replace usual preset saving and loading functions with video_shader_read_preset() and video_shader_write_preset()
- apply saved presets automatically for console menus
- move auto-shader saving logic from menus into menu_shader.c menu_shader_manager_save_auto_preset()
- refactor menu_shader_manager_save_preset() into menu_shader_manager_save_preset_internal()
2019-08-22 16:57:28 +02:00
LazyBumHorse
f8b92770d4
simplify video_shader_read_conf_preset() calls
2019-07-21 18:15:28 +02:00
LazyBumHorse
2245af23e9
much improved handling of relative shader paths
...
- save texture paths in relative format as well
- always write portable relative paths on Windows using '/' instead of '\'
- remove an ancient piece of code that could sometimes fail loading relative paths
- fix absolute path handling between different drives for Windows
- integrate video_shader_resolve_relative() into video_shader_parse_* functions
2019-07-20 18:29:46 +02:00
twinaphex
18e67c12c7
(GLSL) Set prg ID to 0 after running glDeleteProgram
2019-07-18 18:31:37 +02:00
twinaphex
c0787accc3
Use config_file_new_from_path_to_string
2019-07-18 12:13:09 +02:00
twinaphex
f0f5c32b51
Remove state tracker - legacy code - we can revisit this later
...
and integrate it in a way so that it scales across all drivers
2019-07-09 07:39:38 +02:00
LazyBumHorse
692dc9f6a9
refactor shader checks affected by last commit and more:
...
- gl.c: refactor backend fallback into more general gl2_get_fallback_shader_type
- d3d9-12, gl_core, gx2_gfx, gl, vulkan: more consistent shader init and `set_shader` behavior
- configuration.c: remove check_shader_compatibility
- shader_glsl.c, shader_gl_cg.c: use `video_shader_get_type_from_ext`
- shader_gl_cg.c: add shader type check with fallback to stock like in shader_glsl.c
- menu_shader.c: use `enum rarch_shader_type` instead of `unsigned`
- video_shader_parse.c: add `video_shader_to_str` for easier logging
- remove `type` from `struct video_shader`, which was always set to CG and wrongly used in lang_process.cpp's `slang_process()` (has no further consequences because the code is unused)
2019-06-18 13:44:19 +02:00
twinaphex
fc62f7afaa
Update
2019-06-15 09:58:34 +02:00
twinaphex
f60306b232
Rename read_conf_cgp/write_conf_cgp to
...
read_conf_preset/write_conf_preset
2019-06-15 09:00:35 +02:00
twinaphex
74388d8490
Remove string_concat
2019-05-10 18:05:58 +02:00
twinaphex
39eadbab6f
Use string_concat in more performance critical areas
2019-04-30 21:17:51 +02:00
twinaphex
bc2bdd5734
config_file_read not needed anymore
2019-04-30 13:37:10 +02:00
twinaphex
955a149ce9
Use config_file_read where we can assume we are reading a file
2019-04-22 01:56:24 +02:00
twinaphex
27928081cf
Cleanups
2019-03-18 15:27:37 +01:00
twinaphex
191d0c0309
Add get_flags to GL shader interface
2019-03-13 11:21:00 +01:00
twinaphex
dd366cd5c5
Revert "Simplify set_coords"
...
This reverts commit e10eb51f718aff5e61cf3fa91d865ebe2e21767e.
2019-02-03 18:05:14 +01:00
twinaphex
e10eb51f71
Simplify set_coords
2019-02-03 18:03:07 +01:00
twinaphex
62bea6ad11
SOme header cleanups
2019-02-02 22:02:24 +01:00
twinaphex
90f1317498
Cut down on code duplication - create gl_load_luts
2019-02-02 21:32:37 +01:00
twinaphex
6b3fad0f53
This can be removed now
2019-02-02 17:26:12 +01:00
twinaphex
7c74f0abe8
Create gl_add_lut
2019-02-02 17:25:27 +01:00
orbea
bfc366decc
Squeeze extra blank lines with cat(1).
...
Example:
find . -type f -iname '*.c' | while read -r i; do
cat -s "$i" > "$i.new"
mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
twinaphex
c5b9352c34
Revert "Rename some files"
...
This reverts commit 03a8bc9875ef4e0e942ab6d8d0d9402c4e1830fe.
2018-11-24 01:26:05 +01:00
twinaphex
03a8bc9875
Rename some files
2018-11-24 00:30:46 +01:00
twinaphex
747bf136f2
Simplify strip_parameter_pragmas
2018-11-23 23:42:33 +01:00
Twinaphex
8514d6ccc8
Revert "Fix shader warnings"
2018-11-23 04:18:38 +01:00
Alfrix
3e7328b00a
Fix shader warnings
2018-11-22 16:18:11 -03:00
Brad Parker
6de4384350
glsl: don't clear the shader source
2018-08-14 18:42:23 -04:00
twinaphex
9c0ed0f2c4
Don't use core profile GLSL shaders for OpenGLES
2018-07-18 10:06:30 +02:00
twinaphex
6b5ade4ac3
Should be no more deprecated warnings with core context GL for menu
...
shaders
2018-07-12 22:03:37 +02:00
twinaphex
60d7d1c793
Add xmb ribbon simple core shader
2018-07-12 21:34:17 +02:00
twinaphex
140e657d51
(GLSL) Add logging for compiling menu shaders
2018-07-12 21:25:39 +02:00
Twinaphex
bd2b913bc6
Silence more warnings
2018-04-13 00:52:52 +02:00
twinaphex
1751f4a0af
Make it possible to read bigger files by replacing ssize_t with int64_t
...
and size_t with uint64_t
2018-04-13 00:18:11 +02:00
twinaphex
97cf6613da
(XMB/Shaders) Reimplement menu shader loading for GLSL/Cg/HLSL backends - if
...
XMB is selected, it will compile the shader pipelines in
advance
2018-04-12 02:20:17 +02:00