twinaphex
c5b9352c34
Revert "Rename some files"
...
This reverts commit 03a8bc9875
.
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
Themaister
3f344660c0
Remove Windows \r line endings in glslang parser.
2018-11-08 21:34:21 +01:00
Themaister
1d7dfc5f47
Fix glslang_format LUT.
...
Was logging wrong format names.
2018-09-01 22:46:47 +02:00
twinaphex
75a388cd67
Use strlcpy instead of strncpy in slang_process.cpp
2018-08-16 10:14:42 +02:00
Brad Parker
6de4384350
glsl: don't clear the shader source
2018-08-14 18:42:23 -04:00
twinaphex
a6941fb4ed
Initial work done on VS2017 solution for Android
2018-08-14 16:02:31 +02: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
8a1c0be83c
(Android) Another potential buildfix; define ENABLE_HLSL
...
(slang_process) Put HLSL/Cg code around ENABLE_HLSL ifdef
(SPIRV-Cross) Make sure macros no longer need to be redefined; make them
unique in both glsl and hlsl files; needed for Griffin builds
2018-06-26 13:18:17 +02:00
twinaphex
d967cbc879
Add another ENABLE_HLSL ifdef
2018-06-25 21:51:23 +02:00
twinaphex
b05026b69f
Buildfix
2018-06-21 07:56:40 +02:00
Twinaphex
fd11b205da
Silence bunch of warnings
2018-06-21 07:52:01 +02:00
Twinaphex
2bdffff435
Silence more warnings
2018-06-21 07:34:27 +02:00
Stuart Carnie
411bcf8bdd
feat(apple): Metal support for macOS
...
* includes rgui
* shader support
This is a work-in-progress and there are some bugs and visual artifacts
still to be fixed.
2018-06-20 21:33:45 -07:00
twinaphex
3aba080434
Integrate HLSL code into d3d9_hlsl_renderchain.c
2018-05-16 15:52:11 +02:00
twinaphex
6a9b39da3f
Get rid of d3d.h and xdk_defines.h
2018-05-14 03:57:27 +02:00
twinaphex
82ebb9576f
Create d3d9_video_t and d3d8_video_t
2018-05-03 22:03:12 +02:00
twinaphex
268baca939
(MSVC 2013) Add /bigobj for griffin_glslang.cpp
2018-05-03 14:52:37 +02:00
twinaphex
714f7b7b13
Cleanups
2018-04-27 23:21:44 +02:00
twinaphex
72428a23c5
(shader_vulkan.cpp) Move some functions to vulkan_common.c
2018-04-24 07:07:58 +02:00
twinaphex
ebfa4bdcdc
Implement two stub functions
2018-04-23 18:34:23 +02:00
twinaphex
d6c17178a3
Add some logging for shader backend setup
2018-04-23 18:25:41 +02:00
twinaphex
c90c98dcaa
Silence warnings
2018-04-23 17:37:37 +02:00
twinaphex
830068e5bd
Create d3d9x_constant_table_set_float_array
2018-04-23 17:20:08 +02:00
twinaphex
a6fcd9dae0
Create d3d9x_constant_table_set_defaults
2018-04-23 17:09:11 +02:00
twinaphex
bd3f39b005
Remove SetMatrix macro
2018-04-23 17:04:59 +02:00
twinaphex
0e5ccd7c15
Create d3d9x_constant_table_set_matrix
2018-04-23 17:04:30 +02:00
twinaphex
dbb9a43abe
(HLSL) Cleanups
2018-04-23 15:59:09 +02:00
twinaphex
8d02343b53
(HLSL) Cleanups
2018-04-23 15:58:00 +02:00
twinaphex
d7fa70927c
(HLSL) Cleanups
2018-04-23 15:55:26 +02:00
twinaphex
d03ff06cf3
(HLSL) Cleanups
2018-04-23 15:51:24 +02:00
twinaphex
af734939ee
More HLSL work
2018-04-23 15:26:35 +02:00
twinaphex
32c92a9a22
Rename d3dxbuffer_release
2018-04-23 15:04:19 +02:00
twinaphex
871f04e19a
(slang) Cleanups
2018-04-23 14:56:02 +02:00
twinaphex
2a655116a6
Set #define CINTERFACE in these files
2018-04-22 14:27:39 +02:00
twinaphex
c52f53aada
Some minor refactors
2018-04-21 08:47:09 +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
Twinaphex
08a54e45f2
Get rid of a lot of implicit conversions
2018-04-09 15:56:45 +02:00
Twinaphex
0be2b76892
Update slang_process.cpp
2018-03-22 15:24:03 +01:00
aliaspider
bb972a6dab
(spirv) set flip_vert_y to true when emitting HLSL.
2018-03-06 04:12:58 +01:00
twinaphex
59dae251b0
Change to system dir include
2018-03-02 18:34:29 +01:00
twinaphex
9f33ba8607
(Vulkan/D3D11/D3D12) Add HAVE_GLSLANG now to both Android and MSVC solutions - shaders
...
should work now
2018-03-02 02:14:29 +01:00
Twinaphex
ae6e410de1
Remove unused variables
2018-03-01 22:28:26 +01:00
twinaphex
5b79d2b942
Refactor video_shader_driver_set_parameters
2018-02-26 17:51:52 +01:00
twinaphex
938f6cc26e
Get rid of hashes in shader_gl_cg
2018-02-25 01:13:34 +01:00
aliaspider
19aed2af36
(D3D11/12) prevent double-free when resizing framebuffers.
...
(D3D12)
- correctly support lut/filtering/wrap options for slang shaders.
- rework frame sync.
2018-02-11 22:56:37 +01:00
twinaphex
8771171f63
(glslang) Compatibility tweaks for MSVC 2010 compatibility
2018-02-04 15:49:53 +01:00
Twinaphex
31a30f1496
Merge pull request #6229 from aliaspider/master
...
(slang) slang_process: preset alias setting has higher priority.
2018-02-03 23:36:59 +01:00
aliaspider
0e159a0ec0
(slang) slang_process: preset alias setting has higher priority.
2018-02-03 23:35:04 +01:00
twinaphex
c60f706f1e
(MSVC 2013) Update solution
...
Griffin - add better ifdefs
2018-02-03 20:50:31 +01:00
Twinaphex
e5610d5ddb
Merge pull request #6228 from aliaspider/master
...
(slang) slang_process: simplify data mappings.
2018-02-03 17:27:25 +01:00
aliaspider
76d07cd6a7
(slang) slang_process: simplify data mappings.
2018-02-03 17:22:47 +01:00
twinaphex
311de8138e
(Griffin) shader_vulkan - Uniquely name set_unique_map to avoid collision
2018-02-03 17:20:23 +01:00
twinaphex
94022f0599
(MSVC 2013) Add HAVE_SLANG
...
(Griffin) Add SPIRV-Cross/slang rules to Griffin
2018-02-03 17:10:20 +01:00
aliaspider
e225e96025
(D3D11) multi-pass shaders: add support for history frames.
2018-02-03 13:29:00 +01:00
aliaspider
e30c7edd8d
(D3D11) multi-pass shaders: add support for feed-back textures.
2018-02-02 19:57:45 +01:00
aliaspider
7f75e9f4cf
build fix for HAVE_GLSLANG=1 HAVE_VULKAN=0.
2018-02-02 13:35:31 +01:00
aliaspider
1fd1426388
(slang) no need for this anymore.
2018-02-02 12:32:31 +01:00
aliaspider
caad590d04
(slang) slang_process: fix compatibility with more shaders.
2018-02-02 01:50:18 +01:00
aliaspider
189ea0578d
(slang) slang_process: change the type of FragCoord only when it is a
...
pixel shader input.
2018-02-01 22:22:56 +01:00
aliaspider
b8e3933fe0
(slang) slang_process: 'linear' and 'point' are also reserved keywords
...
in HLSL.
2018-02-01 22:11:11 +01:00
aliaspider
80880ec857
(slang) slang_process.cpp: enforce the binding of the uniform and push
...
constant blocks.
2018-02-01 21:45:36 +01:00
aliaspider
8db625dd59
(slang) slang_process.cpp: add support for more shaders.
2018-02-01 20:10:07 +01:00
aliaspider
d0b997a414
(slang) slang_process.cpp: stage_mask texture semantic doesn't apply to
...
the size uniforms.
2018-02-01 17:48:27 +01:00
aliaspider
11a7171b51
(slang) set enum value SLANG_FORMAT_UNKNOWN to 0.
2018-02-01 15:13:58 +01:00
aliaspider
3865856aa2
(D3D11) add support for `#pragma format` in slang shaders.
2018-02-01 15:07:12 +01:00
aliaspider
f34dbdff8b
(slang) cleanups.
2018-01-31 19:36:31 +01:00
aliaspider
d8924d6fbb
(D3D11) clear out all unused texture/sampler bindings each pass to avoid
...
hazards with SetRenderTargets.
2018-01-31 17:05:48 +01:00
aliaspider
5e09af9c77
(D3D11) attach identifiers to the generated slang semantic mappings to
...
simplify debugging.
2018-01-31 12:00:39 +01:00
aliaspider
5bc78d3ad5
(D3D11) Implement slang shader specification using Spirv-Cross.
...
(incomplete)
2018-01-31 01:08:36 +01:00
twinaphex
891d8741db
(HLSL shader driver) Cleanups
2018-01-29 12:01:52 +01:00
twinaphex
ee813ab76b
Create new functions for d3d_common.c
2018-01-29 11:44:55 +01:00
twinaphex
204f9aa484
(360) More buildfixes
2018-01-25 15:35:07 +01:00
twinaphex
282853873b
(360) Some buildfixes
2018-01-25 12:35:46 +01:00
twinaphex
bc81a9dc88
Dehardcode LPDIRECT3DDEVICE usage
2018-01-25 01:45:03 +01:00
aliaspider
d0d8a98046
(msvc) fix glslang build.
...
glslang still can't build with griffin since the files expect to be
compiled seperately.
2018-01-21 11:52:56 +01:00
twinaphex
61ff51be2f
Start using string_is_equal predominantly
2018-01-16 22:53:38 +01:00
twinaphex
54fd72fb24
Make it possible to compile with HAVE_VULKAN on MSVC 2017 build ;
...
glslang stripped out for now
2018-01-11 02:53:40 +01:00
twinaphex
5eb5ecac77
Update shader_hlsl.c
2018-01-07 21:34:39 +01:00
twinaphex
23ace06ca1
Cleanups
2018-01-07 20:55:00 +01:00
twinaphex
acf9e41aae
Start using d3dx_compile_shader
2018-01-07 20:47:35 +01:00
twinaphex
fce097b892
(360) Buildfixes
2018-01-07 12:00:09 +01:00
twinaphex
e90a71d9f5
Create d3dx_compile_shader_from_file
2018-01-07 11:52:32 +01:00
twinaphex
df2a31b0e9
Create d3d pixel shader/vertex shader functions
2018-01-06 23:10:27 +01:00
twinaphex
d7df6b3729
Create d3d_free_vertex_shader/d3d_free_pixel_shader
2018-01-06 22:57:44 +01:00
twinaphex
e03e578212
Add d3d_set_pixel_shader
2018-01-06 22:49:36 +01:00
twinaphex
9fe3271900
Add d3dxbuffer_release
2018-01-06 21:30:50 +01:00
twinaphex
942fd7102d
Start getting HLSL compiling for PC
2018-01-06 20:48:17 +01:00
aliaspider
55d262f5d8
(WIIU) add preliminary multi-pass shader support.
...
can load *.slangp and *.slang files. since there is no runtime compiler,
precompiled shaders (*.gsh) need to be present next to each *.slang
source file.
2018-01-06 03:39:53 +01:00
twinaphex
8908d9983b
(360) Some more buildfixes
2018-01-01 15:11:06 +01:00
twinaphex
2884ad2d73
(360) Some buildfixes
2017-12-31 06:09:39 +01:00
twinaphex
20bb653f1e
(Xbox 360) Buildfixes
2017-12-30 12:36:00 +01:00
twinaphex
d5d4e9ff2b
(shader HLSL) Start adding support for C as well
2017-12-30 12:16:07 +01:00
twinaphex
fb74e11011
(360) Small buildfixes
2017-12-30 12:00:43 +01:00
gblues
6904101c44
Clean up trailing whitespace
...
== DETAILS
Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
radius
bada13a215
let it snow
2017-12-02 22:47:44 -05:00
twinaphex
2b1481d97f
Refactor set_mvp code a bit
2017-11-15 14:09:41 +01:00
twinaphex
e560adcc9f
Refactor this - get rid of set_coords_fallback
2017-11-13 12:27:45 +01:00
twinaphex
f53fe4a07c
Remove this from set_mvp function
2017-11-13 12:10:18 +01:00
twinaphex
2327d38e0d
Remove this
2017-11-13 12:08:46 +01:00
twinaphex
8a82fd7905
Update
2017-11-13 12:05:50 +01:00
twinaphex
96876c66ce
Updates
2017-11-08 02:36:38 +01:00
twinaphex
fc43a14637
Updates
2017-11-07 21:03:29 +01:00
twinaphex
f5d9427d48
Convert shader_hlsl.cpp to C
2017-11-06 19:44:00 +01:00
twinaphex
7dcafe4b40
(HLSL) Cleanups
2017-10-03 05:18:32 +02:00
twinaphex
71dd8f9084
Silence more warnings
2017-10-03 00:56:18 +02:00
twinaphex
374b6115e1
Update HLSL backend
2017-09-05 03:21:58 +02:00
twinaphex
e1c139dda6
Buildfix
2017-09-05 00:10:24 +02:00
twinaphex
29af83f8e3
Fix some format-truncation warnings
2017-08-10 23:07:27 +02:00
twinaphex
cfc7f4c8c7
Cleanups
2017-07-23 19:46:11 +02:00
Twinaphex
d561c7ff2d
Revert "Don't show this warning when HAVE_SHADER_PIPELINE is not defined"
...
This reverts commit 431f1b4b7f
.
2017-06-28 05:02:31 +02:00
Twinaphex
431f1b4b7f
Don't show this warning when HAVE_SHADER_PIPELINE is not defined
2017-06-28 05:01:55 +02:00
twinaphex
03ee897ae2
Try implementing core context version of XMB ribbon
2017-06-27 06:31:18 +02:00
Twinaphex
e2be9e659d
Silence some warnings
2017-06-08 02:44:38 +02:00
twinaphex
efce4d0abf
Revert "Add cb_set_shader_coords"
...
This reverts commit 06df028722
.
2017-05-19 21:21:40 +02:00
twinaphex
06df028722
Add cb_set_shader_coords
2017-05-19 21:13:44 +02:00
Zoran Vuckovic
54b5d289b0
Fix crash in GLSL shader driver
2017-05-19 12:14:51 +02:00
twinaphex
24ce77155a
Cleanup
2017-05-19 03:52:04 +02:00
twinaphex
59b3344e72
Combine video_driver.c and video_shader_driver.c
2017-05-18 14:47:24 +02:00
twinaphex
4e7b376e18
Cleanups
2017-05-18 14:31:40 +02:00
twinaphex
cb529822c6
Cleanups
2017-05-18 14:27:37 +02:00
twinaphex
374f8e8a19
Cleanups
2017-05-18 14:22:50 +02:00
twinaphex
2f72506959
Bind default function to filter_type callback
2017-05-18 14:20:05 +02:00
twinaphex
9d11133edf
Cleanups - get rid of if conditionals
2017-05-18 14:18:01 +02:00
twinaphex
1411b9ee6e
Do away with all these if conditionals
2017-05-18 14:06:50 +02:00
twinaphex
126a5bf121
Use string_is_equal_fast/string_is_not_equal_fast
2017-05-16 04:00:37 +02:00
aliaspider
66c8778878
'es' is required after #version 300.
2017-05-12 01:29:02 +01:00
aliaspider
1223309052
better handling of existing #version directive in glsl shaders.
2017-05-11 05:14:11 +01:00
twinaphex
57089dc108
Update gl_common.c - update CHANGES.md
2017-05-11 02:56:11 +02:00
twinaphex
e0c0815f42
(shader_vulkan.cpp) cleanups - don't use memset
2017-05-10 06:40:21 +02:00
twinaphex
1b302d6e40
(shader_vulkan.cpp) Cleanups
2017-05-10 06:31:06 +02:00
twinaphex
865ec1eb71
Cleanup
2017-05-10 06:23:53 +02:00
hunterk
7f8d4479f4
fix version directives in GLSL shaders, courtesy of aliaspider
2017-05-09 23:20:00 -05:00
twinaphex
9e7ac432c3
Try to prevent null pointer dereference
2017-04-28 12:07:11 +02:00
twinaphex
15a8f0c485
Wrap some more settings manipulation
2017-04-25 15:31:32 +02:00
twinaphex
d77da6b53d
Fix bug in shader_glsl.c
2017-04-21 23:10:55 +02:00
twinaphex
284e6b2994
Replace more instances of string_is_equal
2017-04-21 22:51:04 +02:00
twinaphex
f9bc2d3783
Use memcmp instead of string_is_equal where possible for
...
better performance
2017-04-21 22:47:15 +02:00
twinaphex
755ceda4f9
More consistent log messages
2017-03-24 00:30:14 +01:00
twinaphex
17235d70e2
Create set_coords_fallback for shader driver
2017-03-23 21:49:29 +01:00
twinaphex
17739435de
Cleanups
2017-03-07 12:59:58 +01:00
twinaphex
4118d0bbd2
Cleanups
2017-03-07 12:49:52 +01:00
twinaphex
f4ac760178
Cleanups
2017-03-07 12:37:11 +01:00
twinaphex
cb1c8df547
Simplify gl_glsl_set_coords
2017-03-07 12:35:29 +01:00
Twinaphex
43c32aad3d
Silence more warnings
2017-02-26 22:16:03 +01:00
Twinaphex
b7b3b2cb5f
Try to prevent truckload of warnings on iOS
2017-02-26 10:33:03 +01:00
Hans-Kristian Arntzen
2d88530c98
Vulkan: Simple snow pipeline works.
...
Some other fixes too.
2017-02-20 20:53:59 +01:00
twinaphex
81b529696f
Cleanups
2017-01-23 02:33:46 +01:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
twinaphex
219a07f709
(hlsl) Fix
2017-01-19 21:21:53 +01:00
twinaphex
28195ee517
(HLSL) Buildfixes
2017-01-19 21:20:05 +01:00
twinaphex
861ad8b3ab
(XDK360) Another buildfix
2017-01-19 21:05:04 +01:00
twinaphex
0edbf8d5c9
(shader_hlslc.) Another buildfix
2017-01-19 20:56:07 +01:00
twinaphex
98f0422b20
(HLSL) Fix typo
2017-01-19 20:50:00 +01:00
twinaphex
fd8cdc389f
(Xbox 360) More buildfixes
2017-01-19 20:31:33 +01:00
twinaphex
0354ced675
Style nits
2017-01-17 19:02:49 +01:00
twinaphex
0ee34b0076
(glslang_util.cpp) Cleanups/style nits
2017-01-12 10:32:57 +01:00
twinaphex
68d484bf60
Set supports_rgba before calling image_texture_load
2017-01-08 21:49:23 +01:00
twinaphex
c8bc6c7120
(XMB) Add Bokeh menu pipeline
2017-01-08 03:56:47 +01:00
twinaphex
c57ab8f37a
Add pipeline_bokeh to shader_glsl.c
2017-01-08 02:16:47 +01:00
twinaphex
58716e5f3c
Silence some Coverity warnings
2016-12-21 01:34:28 +01:00
Hans-Kristian Arntzen
4e9fe4bd54
Vulkan: Fix menu shader parameters for slangp.
...
video_shader_resolve_parameters did not take #includes into account
while the Vulkan implementation did. Added a helper function which
parses a shader file and figures out the shader parameters in the same
way.
2016-12-20 15:58:37 +01:00
twinaphex
31b87594aa
Get rid of some implicit memsets for state tracker
2016-12-19 19:08:37 +01:00
twinaphex
feae0823ce
Prevent some implicit memsets
2016-12-17 14:40:06 +01:00
twinaphex
96ffd8e025
Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
...
This reverts commit 4103b70833
.
2016-12-17 12:55:38 +01:00
twinaphex
4103b70833
Remove HAVE_COMPRESSION ifdefs in file_path.c
2016-12-17 12:20:49 +01:00
Brad Parker
1f39426195
only use fancy ribbon on GLES if GL_OES_standard_derivatives extension is detected
2016-12-09 19:32:55 -05:00
Brad Parker
32a3026654
enable standard derivatives extension for GLES, adds support for complex XMB ribbon
2016-12-06 21:04:12 -05:00
twinaphex
9f470c53ae
Add 'Simple Snow' shader to GLSL backend
2016-12-06 00:48:36 +01:00
twinaphex
abaa6eda62
Rename VIDEO_SHADER_MENU_SEC to VIDEO_SHADER_MENU_2
2016-12-06 00:34:38 +01:00
Hans-Kristian Arntzen
53c30cacd5
Correctly check errors if preset cannot be found.
2016-12-03 16:05:04 +01:00
twinaphex
45407f9b52
(shader_glsl.c) Small cleanups
2016-12-02 16:50:08 +01:00
twinaphex
65ba82ca4b
(shader_gl_cg.c) Cleanups
2016-12-02 16:45:58 +01:00
Jean-André Santoni
d4296b016f
Make shader names consistent, step 5
2016-11-19 00:30:56 +01:00
Jean-André Santoni
9c83658368
Make shader names consistent, step 4
2016-11-19 00:29:13 +01:00
Jean-André Santoni
d1bf61076d
Make shader names consistent, step 3
2016-11-19 00:27:54 +01:00
Jean-André Santoni
35d8ec12c5
Make shader names consistent, step 2
2016-11-19 00:23:07 +01:00
Jean-André Santoni
3b2b7580db
Make shader names consistent, step 1
2016-11-19 00:20:52 +01:00
twinaphex
df7ffe1822
Don't use legacy vertex shader for snow for OpenGLES
2016-11-17 21:25:02 +01:00
twinaphex
547cb83652
Add third menu shader program
2016-11-17 21:14:19 +01:00
twinaphex
20c1ef83d6
First stab at getting snow shader to work
2016-11-17 21:08:50 +01:00
twinaphex
a2c69ec254
Added snow shader hooks - doesn't work yet though - shader driver
...
system is very limited in terms of how we can set custom menu
shaders - will require a rethink
2016-11-17 20:54:29 +01:00
Higor Eurípedes
8977968b6d
(shader_glsl.c) Don't allocate/clear more than needed in gl_glsl_set_coords()
2016-11-12 08:23:06 -03:00
twinaphex
8551cc4f9b
Remove if 0 for memcpy
2016-11-11 22:54:13 +01:00
twinaphex
849cc591bc
Revert "Use GL_STREAM_DRAW"
...
This reverts commit df4107b541
.
2016-11-11 18:34:06 +01:00
neville
df4107b541
Use GL_STREAM_DRAW
2016-11-11 00:52:43 +01:00
neville
12804431db
(GLSL) Avoid memsets - good for about a +1fps speedup with simplified
...
ribbon on PowerPC Mac
2016-11-10 18:35:47 +01:00
twinaphex
3f29eed928
According to enygmata's findings we can comment this out
2016-11-10 02:09:25 +01:00
twinaphex
12ab2d5e7d
(Android) Buildfix
2016-10-24 05:53:16 +02:00
twinaphex
b95ec0d28e
Make sure this string is null-terminated
2016-10-21 20:14:51 +02:00
twinaphex
c3ab8800f4
Prevent implicit memsets
2016-10-21 05:57:40 +02:00
Logan McNaughton
1717e8c938
Fix for zarch menu
2016-10-20 20:29:46 -06:00
Logan McNaughton
d360bf17d5
Yet another fix for glUniformMatrix4fv
...
This should fix fullscreen toggling/context resets.
2016-09-28 08:18:32 -06:00
Logan McNaughton
01a03abdc5
Fix glUniformMatrix4fv call
2016-09-27 16:03:54 -06:00
Logan McNaughton
0d3e9875b1
Only call glUniformMatrix4fv if needed
2016-09-27 08:56:36 -06:00
Twinaphex
7672288fcd
Revert "Only call glUniformMatrix4fv if needed"
2016-09-27 02:59:58 +02:00
Logan McNaughton
fa48e95946
Only call glUniformMatrix4fv if needed
2016-09-26 14:24:27 -06:00
twinaphex
b3ec735e75
Silence some more scan-build warnings
2016-09-25 15:25:20 +02:00
twinaphex
764a4319a0
(shader_glsl.c) Continue with iteration if pass is NULL
2016-09-24 17:04:49 +02:00
twinaphex
b5416e4041
Change false to 0
2016-09-24 17:04:21 +02:00
twinaphex
5b5ad03ec3
Attempt to fix Coverity warnings
2016-09-24 17:04:01 +02:00
Higor Eurípedes
c08650f1f9
Remove trailing whitespace
2016-09-17 21:20:27 -03:00
Higor Eurípedes
d4305d65d9
(gl) Fix gl_check_error()
...
gl_check_error() was leaking memory and the error message was never
returned to the calling context.
2016-09-17 21:19:57 -03:00
twinaphex
6002fd9f2a
(shader_vulkan.cpp) Nits
2016-09-16 17:50:57 +02:00
twinaphex
99aae8537b
Use string_is_equal/stdstring.h
2016-09-16 17:33:18 +02:00
twinaphex
606e37fcbd
Cleanups
2016-09-11 15:07:07 +02:00
twinaphex
7a36ea7d1c
Silence warnings
2016-09-08 06:11:02 +02:00
twinaphex
642e46779b
Cleanups
2016-09-06 23:59:43 +02:00
twinaphex
075aea2289
Header include cleanups
2016-09-06 00:56:00 +02:00
Twinaphex
ef43a573a3
Silence warnings
2016-09-05 07:28:55 +02:00
twinaphex
1a241fa9ce
Rewrite this
2016-09-05 07:22:44 +02:00
twinaphex
815c0eb3ee
Remove header includes
2016-09-01 05:46:10 +02:00
twinaphex
4791174ea3
(MSVC 2003) Fixes
2006-01-17 06:11:55 +01:00
Logan McNaughton
2daf102111
Fix GLES3 compling
2016-08-07 22:33:07 -06:00
twinaphex
fb9a2eea95
Remove one useless HAVE_OPENGLES2 ifdef, and remove some wrong
...
defines
2016-08-07 04:35:38 +02:00
Hans-Kristian Arntzen
96818a297c
Vulkan: Fix validation errors with OriginalHistory.
...
For some reason, OriginalHistory blit happened inside a render pass.
Also add more TRANSFER_SRC_BIT caps to images as they might have to be
copied to history.
2016-08-07 01:09:15 +02:00
Hans-Kristian Arntzen
fb407796e9
Vulkan: Add push constant support to slang.
...
Usually, the UBO is very small, so we can fit everything in fast-access
uniforms.
2016-08-02 12:51:30 +02:00
Hans-Kristian Arntzen
00de5aa2f0
Vulkan: Filter out duplicated parameters.
2016-08-01 22:10:14 +02:00
Hans-Kristian Arntzen
efd3067903
Vulkan: Hook up shader parameters.
2016-08-01 22:10:14 +02:00
Hans-Kristian Arntzen
a50c204d5e
Vulkan: Begin parsing parameters.
2016-08-01 22:10:14 +02:00
Hans-Kristian Arntzen
efee5d131a
Vulkan: Make glslang shaders debuggable.
...
Properly handle file names, includes, etc to make
error reports somewhat more sane.
2016-08-01 14:27:23 +02:00
Hans-Kristian Arntzen
bdcbc56507
Vulkan: Fix validation errors.
2016-07-31 19:59:36 +02:00
Hans-Kristian Arntzen
e61ec38543
Vulkan: Mipmapped FBOs work.
2016-07-31 19:52:15 +02:00
Hans-Kristian Arntzen
a48ba6c68b
Vulkan: Add mipmapping support to Framebuffer class.
2016-07-31 19:23:42 +02:00
Hans-Kristian Arntzen
9a613ef8bf
Vulkan: Actually bind correct part of the UBO.
2016-07-31 18:25:42 +02:00
Hans-Kristian Arntzen
c0e752c53c
Persistently map filter chain UBO.
2016-07-31 18:19:35 +02:00
Hans-Kristian Arntzen
10e864b26b
Hook up wrapping modes.
2016-07-31 16:32:55 +02:00
Hans-Kristian Arntzen
4ac9ebd579
Vulkan: Allow configuring mip/wrap/filter for LUTs.
...
LUTs are feature complete with CGP now.
2016-07-31 16:16:47 +02:00
Hans-Kristian Arntzen
e846bd4955
Vulkan: Hook up preliminary support for mip/wrapping modes.
2016-07-31 15:42:57 +02:00
Hans-Kristian Arntzen
e57997bb82
Make image barriers hit the entire mipchain.
2016-07-31 13:05:07 +02:00
Hans-Kristian Arntzen
cbca9513ab
Basic LUT work.
2016-07-31 13:01:31 +02:00
Hans-Kristian Arntzen
f208bba41e
Add USER semantic to match user textures.
2016-07-31 12:39:07 +02:00
Hans-Kristian Arntzen
d39a3619d6
Begin implementation of LUTs in Vulkan.
2016-07-31 12:26:14 +02:00
Hans-Kristian Arntzen
e35191765c
Vulkan: Fix PassOutput.
...
Oddly enough it worked during testing, but turns out it was never set
:')
2016-07-23 23:39:57 +02:00
Hans-Kristian Arntzen
4b7cadbae7
Vulkan: Fix silly bug with alias handling.
2016-07-23 23:23:22 +02:00
Hans-Kristian Arntzen
2174f7d99b
Vulkan: Fix wrong error handling for missing file.
...
Apparently 0/1 is returned instead of 0/-1.
2016-07-23 21:59:17 +02:00
Hans-Kristian Arntzen
1e9e1fc885
Vulkan: Update SPIRV-Cross.
...
Fixes reflection issues which have been fixed in recent spirv-cross.
2016-07-15 22:12:57 +02:00
twinaphex
2a9bf91e0d
Use MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE
2016-06-29 02:40:05 +02:00
Hans-Kristian Arntzen
54c1759f45
Vulkan: Make a more general purpose symbol loader.
...
Avoids painful manual loading and wrapping function pointers everywhere
...
Reusable for cores, so move to libretro-common.
Also update built-in Vulkan headers.
2016-06-26 13:10:58 +02:00
Hans-Kristian Arntzen
b013a9c863
Vulkan: Replace prebaked shaders with glslc -mfmt=c.
...
Far more clean and avoids illegal punning.
2016-06-25 14:55:03 +02:00
Hans-Kristian Arntzen
de36f572d1
Vulkan: Fix more validation issues.
2016-06-25 14:01:10 +02:00
twinaphex
883d9ff6b5
Add HAVE_SHADERPIPELINE define
2016-06-07 00:00:28 +02:00
twinaphex
c1f9d7b498
(shader_glsl.c) Fix dereference after null check warnings
2016-06-05 19:02:13 +02:00
twinaphex
01390f8ceb
Use retro_common_api.h
2016-06-03 08:06:49 +02:00
twinaphex
42971febba
Fix resource leaks (pointed out by Coverity)
2016-05-24 22:01:43 +02:00
twinaphex
01e3362f21
Remove unused variable
2016-05-16 07:52:26 +02:00
twinaphex
8de39f261c
(GLSL) Remove unused variables
2016-05-16 05:58:00 +02:00
twinaphex
b4abec5181
Cleanups
2016-05-15 19:59:03 +02:00
twinaphex
d63e7defb5
(GLSL) Remove more code
2016-05-15 19:58:02 +02:00
twinaphex
67d08f6790
Restore glsl_set_params
2016-05-15 19:56:53 +02:00
twinaphex
c15ec92c83
(Cg) set_params - don't use set_uniform_parameter function - fixes PS3 port
2016-05-15 19:03:39 +02:00
twinaphex
2f69c20e39
Revert "(Shaders) Get rid of third parameter"
...
This reverts commit 52d6a21e55
.
2016-05-15 17:26:23 +02:00
twinaphex
52d6a21e55
(Shaders) Get rid of third parameter
2016-05-15 17:22:55 +02:00
twinaphex
f0b99edafc
Prevent some warnings/errors from occurring with MESA_DEBUG
2016-05-12 04:29:36 +02:00
twinaphex
dde471e001
Rename gfx_ structs
2016-05-10 02:39:09 +02:00
twinaphex
0e08dbe931
Rename gfx_coord to video_coord
2016-05-10 02:32:59 +02:00
twinaphex
6ae20f2016
Create managers/ dir - move cheats.c and state_manager.c to it
2016-05-09 18:20:52 +02:00
twinaphex
372e7d94cd
Rename rewind.c to state_manager
2016-05-09 07:14:10 +02:00
twinaphex
3dfd8a0584
Split up vertex/fragment shader conditionals for XMB ribbon
2016-05-09 04:31:21 +02:00
Hans-Kristian Arntzen
ade5131833
Vulkan: Move to SPIRV-Cross.
2016-05-08 12:43:58 +02:00
twinaphex
e165954395
Rename libretro_version_1 to core_impl
2016-05-08 05:29:10 +02:00
twinaphex
6544772fb8
De-ioctl ify core_ctl
2016-05-08 01:33:57 +02:00
twinaphex
ba415b6d3a
Silence warnings
2016-04-27 23:07:36 +02:00
twinaphex
15a30dae70
CLeanups
2016-04-27 14:29:28 +02:00
twinaphex
7c4df601f8
(Cg) Call gl_cg_set_program_base_attrib for XMB pipeline shaders
2016-04-26 09:16:25 +02:00
Torsten Paul
fdd6d26d85
Add uniform lookup for menu shaders.
...
This fixes the mix-up of parameter assignments for the XMB ribbon shader
which was caused by all 4 uniform locations set to 0.
2016-04-26 00:08:24 +02:00
twinaphex
a83e6b3405
(Cg) Cleanups
2016-04-25 13:02:05 +02:00
twinaphex
0a3ca14fde
(Cg) Rename cg_data to cg
2016-04-25 12:51:01 +02:00
twinaphex
43943fe794
(Cg) Cleanups
2016-04-25 12:33:38 +02:00
twinaphex
d4184df592
(Cg) Call gl_cg_reset_attribs before initializing Cg shader backend
2016-04-25 12:22:55 +02:00
twinaphex
01a9185a2d
(Cg) Cleanups
2016-04-25 12:07:23 +02:00
twinaphex
9ff8a3c8e2
(Cg) Cleanups
2016-04-25 11:59:46 +02:00
twinaphex
242e579b89
(Cg/GLSL) Name some variables the same
2016-04-25 10:15:57 +02:00
twinaphex
8cb66dd021
Add way to switch back and forth between shader pipeline
2016-04-24 22:03:39 +02:00
twinaphex
b00202a83d
(GLES2) Use XMB ribbon simple shader for GLES2
2016-04-24 20:29:42 +02:00
twinaphex
d7b3e9cc8f
Add old shader versions of XMB ribbon
2016-04-24 20:25:56 +02:00
Twinaphex
493b6850a5
Use include dir d3d/cg files
2016-04-23 18:19:35 +02:00
twinaphex
ce077533c2
(GLSL) Increase attrib array size
2016-04-22 15:22:27 +02:00
twinaphex
99246ae3e8
(Cg) Cleanup
2016-04-22 14:37:11 +02:00
twinaphex
63f0e998db
(Cg) Code deduplication cleanups
2016-04-22 14:05:45 +02:00
twinaphex
4250161327
(GLSL/Cg) Simplify some variables
2016-04-22 14:00:30 +02:00
twinaphex
f3f6e6ff70
(Cg) Make cg_attribs bigger - would lead to overflows when sending
...
XMB ribbon to it
2016-04-22 13:27:50 +02:00
twinaphex
ec4f961348
(XMB Cg) Ribbon works with Cg now too
2016-04-17 17:59:40 +02:00
Twinaphex
c8d97d05e7
(shader_glsl.c) Fix warnings
2016-04-17 07:45:37 +02:00
twinaphex
ef835f93d5
Change function signature for set_coords
2016-04-17 07:12:48 +02:00
twinaphex
58f145282e
(XMB) Set uniform to vertex program and add 'add_prefix' to uniform_info struct
2016-04-17 06:11:48 +02:00
twinaphex
6579b5f3c8
Add XMB shader compilation to shader_gl_cg.c
2016-04-17 05:52:26 +02:00
twinaphex
46b2100132
gl_cg_set_mvp - cleanup
2016-04-17 04:55:58 +02:00
twinaphex
07d28091a2
(GLSL) CLeanups
2016-04-17 04:52:13 +02:00
twinaphex
19367da0ae
(GLSL) Cleanups
2016-04-17 04:37:38 +02:00
twinaphex
e7ab158a3b
(Cg) Refactor/cleanups
2016-04-17 03:56:20 +02:00
twinaphex
e9d16655f0
Create d3d_shaders
2016-04-17 00:16:32 +02:00