Commit Graph

629 Commits

Author SHA1 Message Date
Leandro Freire
855623e153 Rename VertexDecl to VertexLayout 2019-08-13 18:42:01 -07:00
Attila Kocsis
e58a108387 Metal: Fix resource binding for latest spirv-cross
More info:

https://github.com/KhronosGroup/SPIRV-Cross/pull/1036
https://github.com/KhronosGroup/SPIRV-Cross/issues/1072
2019-08-10 09:32:16 -07:00
Rinthel Kwon
6927a9179b vulkan renderer draft implementation 2019-08-04 19:51:16 -07:00
Бранимир Караџић
bbba6aa1ab shaderc: Split Metal and SPIRV compilers. 2019-08-03 08:54:02 -07:00
Бранимир Караџић
564f484ab7 shaderc: Split Metal and SPIRV compilers. 2019-08-03 08:52:14 -07:00
Бранимир Караџић
1ce3e6d256 Cleanup. 2019-07-24 20:17:26 -07:00
Бранимир Караџић
bd39b5580a Cleanup. 2019-07-24 20:12:07 -07:00
Бранимир Караџић
e91be57ff3 Cleanup. 2019-07-21 20:48:01 -07:00
Kitchen
4941a3d81c fix devide by zero in texture viewer when construct orientation matrix (#1825) 2019-07-21 20:45:37 -07:00
attilaz
72d0a0c4fa index buffer generation using final vertex data (#1816)
This results a smaller output file for some meshes.
2019-07-13 09:07:33 -07:00
Attila Kocsis
d6b3fcccc0 added geometryv 2019-06-19 21:37:35 +02:00
Attila Kocsis
62f54bb7ad File dialog added to entry
Win32/Linux version is from texturev. OSX uses native dialog instead of zenity.
win32 has a fix to support win32 target:  OPENFILENAMEA customData is uintptr_t instead of uint64_t.
2019-04-25 22:29:34 +02:00
Бранимир Караџић
56cbbb0283 Cleanup. 2019-04-20 19:04:31 -07:00
feserr
6d6f28b158 Show all profile modes in the usage of shaderc. 2019-04-17 09:59:18 +02:00
Бранимир Караџић
3564e2a289 Updated spirv-cross. 2019-04-14 21:53:50 -07:00
attilaz
ed885c3c5a using meshoptimizer for vertex cache/fetch optim and index/vertex buffer compression 2019-04-13 16:07:06 +02:00
Бранимир Караџић
b323a8950c texturev: Fixed recognizing file extension on files with extensions with multiple period separators. 2019-03-23 09:54:45 -07:00
Nick Waanders
88da162438 shaderc_spirv now emitting sampler uniforms
ShaderC now emits sampler uniforms for Metal and Spirv.
2019-03-12 15:23:10 -07:00
Branimir Karadžić
464a555101 texturev: Added winapi support for openFileSelectionDialog. 2019-02-19 22:42:46 -08:00
Бранимир Караџић
9ad5f41858 Fixed build. 2019-02-19 19:30:08 -08:00
Бранимир Караџић
3d7a8e904c Cleanup. 2019-02-19 17:53:03 -08:00
Branimir Karadžić
1b9dd14683 Fixed framebuffer RW. 2019-02-18 13:40:17 -08:00
Бранимир Караџић
e29c43221d Cleanup. 2019-02-17 22:08:18 -08:00
Бранимир Караџић
3d809c38f4 Cleanup. 2019-02-17 21:50:46 -08:00
Бранимир Караџић
f02169a4b4 Cleanup. 2019-02-17 21:48:20 -08:00
Бранимир Караџић
8cb250f1ff texturev: Added open file dialog. 2019-02-17 20:19:23 -08:00
Branimir Karadžić
50409d2999 Fixed build. 2019-02-16 22:45:54 -08:00
Branimir Karadžić
5495b432f3 Fixed build. 2019-02-16 21:25:13 -08:00
Бранимир Караџић
26b5fc3b34 Cleanup. 2019-02-16 19:58:18 -08:00
Бранимир Караџић
a69d2ed606 shaderc: Fixed GLSL/ESSL intepolator issue. 2019-02-13 14:53:13 -08:00
Бранимир Караџић
cda981b8e3 Cleanup. 2019-02-07 18:04:28 -08:00
Бранимир Караџић
55ab61fe7d Fixed build. 2019-02-03 19:52:12 -08:00
Бранимир Караџић
f6f6a22119 Adding bounds overlap tests. 2019-02-03 19:47:33 -08:00
attilaz
5dba3a93af MSL vs/fs shaders use spirv-cross 2019-01-22 22:31:41 +01:00
attilaz
de94da4ab2 MSL Shadow Sampler fix and working on to support vs/fs with spirv-cross 2019-01-20 11:16:58 +01:00
attilaz
b5ac92e5fa spirv-cross: removed rename hack
recompiled metal shaders
2019-01-19 09:13:46 +01:00
Бранимир Караџић
9520802e72 Cleanup. 2019-01-18 23:28:37 -08:00
Бранимир Караџић
e105c88e55 Cleanup. 2019-01-18 18:07:29 -08:00
attilaz
8e8161f743 Fix for 'used samplers was converted to static'
It seems reflection doesn't have a way to query used(live) samplers.
2019-01-17 21:04:23 +01:00
Nick Waanders
cc08e0c662 Update shaderc.cpp
Fix for crash in release mode when compiling a shader with incorrect input attributes.
2019-01-16 13:27:35 -08:00
Бранимир Караџић
d83c8439ff Cleanup. 2019-01-15 19:38:35 -08:00
Бранимир Караџић
9d1590670e shaderc: Fixed metal interpolation qualifiers. 2019-01-15 19:01:18 -08:00
Attila Kocsis
810c69ec49 added spirv legalization 2019-01-15 22:12:48 +01:00
Attila Kocsis
d8dcf36a79 fixed Xcode compile error 2019-01-14 09:51:31 +01:00
attilaz
b9b58296c7 metal compute shader generation 2019-01-14 09:24:06 +01:00
Бранимир Караџић
3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Бранимир Караџић
a54f8a3f81 Renamed UniformType enum Int1 to Sampler. 2019-01-11 14:14:17 -08:00
Бранимир Караџић
3c8afe3b00 Cleanup. 2019-01-08 14:14:47 -08:00
Бранимир Караџић
fb8a82a5fd Cleanup. 2019-01-03 14:30:59 -08:00
elvencache
96611dd944 Add HDR backbuffer support to texturev for viewing HDR textures
Texturev already supports exposure/stops as a way to view details in HDR textures. But results still clip to 1.0 due to 8 bits per channel back buffer. So not viable to view in native HDR.

Add UI menu to select scRGB (f16 HDR for windows) and HDR10 (pq/st2084 and rec2020 color primaries) and add shader code to properly display image. The intent is for SDR range content to look identical across all three modes. With additional details available in HDR modes when viewed on HDR monitor.

Running into trouble compiling fs_texture_array at the moment. So skipping the changes required in that shader.

*sdf.bin.h files changed because of changes in common.sh. Could roll the hdr code into a separate hdr.sh which would leave them be if that would be better?
2018-12-29 23:10:28 -08:00
junjie020
9296a44f5e fix metal shader lack of texutre uniform variable 2018-12-26 14:19:07 +08:00
Branimir Karadžić
63e298795d Cleanup. 2018-12-21 18:02:39 -08:00
Branimir Karadžić
85c3bedfee shaderc: Allow space as delimiter for in/out params. 2018-12-19 20:13:33 -08:00
Pang Weiwei
5044400717 fix shaderrc generate wrong shader of matal 2018-12-19 20:26:53 +08:00
Branimir Karadžić
c5bec1ecb0 shaderc: Added input name validation to force proper attribute naming. 2018-12-17 20:47:11 -08:00
Branimir Karadžić
0740b29de7 Cleanup. 2018-12-10 19:39:00 -08:00
Branimir Karadžić
d4d453a1dd Fixed shaderc. 2018-11-28 17:28:37 -08:00
Branimir Karadžić
d4fef78240 Cleanup. 2018-11-27 18:14:29 -08:00
Branimir Karadžić
2a6436fbc5 Cleanup. 2018-11-02 17:18:22 -07:00
Branimir Karadžić
7b8d5314d2 texturev: Fixed SDF shader. 2018-11-01 18:07:17 -07:00
Branimir Karadžić
593269e1de shaderc: Fixed patching. 2018-10-30 15:04:17 -07:00
Branimir Karadžić
53dfd981da Replaced eolLF with normalizeEolLf. 2018-10-28 20:48:34 -07:00
Branimir Karadžić
1def5343e6 Replaced strmb with strFindBlock. 2018-10-28 16:58:46 -07:00
Branimir Karadžić
1eb853512e Cleanup. 2018-10-25 22:16:10 -07:00
Branimir Karadžić
72bf5f9870 Cleanup. 2018-10-22 18:08:01 -07:00
Branimir Karadžić
5579ac4686 Cleanup. 2018-10-21 20:33:29 -07:00
Branimir Karadžić
6bff345637 StringView cleanup. 2018-10-21 19:17:44 -07:00
Branimir Karadžić
623fd3cf0b shaderc: Added in/out hash. Fixed shader binary backward compatibility. 2018-10-12 16:41:26 -07:00
Branimir Karadžić
70c06f46c3 shaderc: Updated version. 2018-10-04 19:31:46 -07:00
Branimir Karadžić
29585d85ca Added numBackBuffers to initialization parameters. 2018-10-02 16:40:12 -07:00
Branimir Karadžić
474f6e1472 Updated glslang. 2018-10-01 20:01:14 -07:00
Branimir Karadžić
50ab2b9f2b shaderc: Added keep-intermediate option. 2018-09-25 18:11:06 -07:00
attilaz
9f5bb14651 typo in usage? (#1500) 2018-09-24 11:07:32 -07:00
Branimir Karadžić
07d909b5f0 Fixed crash on NULL dereference. 2018-09-03 13:56:11 -07:00
Branimir Karadžić
a4bedea36c Fixed warning. 2018-09-02 22:34:04 -07:00
Francis Hart
86f52812cd Fix issue with tab character in shaderc output (#1470)
When printing the binary representation of the converted shader, shaderc
also prints a comment with the ascii readable characters for each line.
For unprintable characters, it relies on isprint() to replace them with
the '.' character.

Under MSVC 2017, isprint() may incorrectly return true for the tab
character. This patch adds a WAR to explicitly test for tabs, to make
sure they get replaced with '.'.
2018-08-28 18:08:24 -07:00
Branimir Karadžić
d2a3f6cf50 Cleanup. 2018-08-27 20:25:54 -07:00
Branimir Karadžić
4433b5bcdc Separating sampler flags from texture creation flags. 2018-08-20 17:12:26 -07:00
Branimir Karadžić
0b0770ed39 texturev: Added image info to menu bar. 2018-07-04 13:36:14 -07:00
divinon
218c9e5ea1 Fix error line searching for HLSL compiled with debug info. (#1414) 2018-06-18 12:51:32 -07:00
Branimir Karadžić
a167dcda12 Fixed gl_FrontFacing behavior. 2018-06-08 16:52:09 -07:00
Branimir Karadžić
76c19a7676 shaderc: Fixed issues with VFACE that cause X4576: Non system-generated input signature parameter... error 2018-06-05 17:41:10 -07:00
Branimir Karadžić
0e0da47e61 Added primitive count to perf stats. 2018-05-17 17:24:10 -07:00
Branimir Karadžić
66cc9da65a Updated fcpp. 2018-04-24 20:07:38 -07:00
Branimir Karadžić
80d56ed37c Cleanup. 2018-04-23 16:23:38 -07:00
Branimir Karadžić
098bbe46e9 texturev: Moved context menu into main menu. 2018-04-20 16:42:39 -07:00
Branimir Karadžić
fe1ecd20bf Cleanup. 2018-04-19 19:02:00 -07:00
Branimir Karadžić
28e1839342 Added transient buffer stats. 2018-04-18 16:35:57 -07:00
Branimir Karadžić
dcc559536a shaderc: GLSL patching. 2018-04-16 18:00:24 -07:00
Branimir Karadžić
b6199d9254 Fixed DDS association mimetype. 2018-04-15 07:57:15 -07:00
Branimir Karadžić
0c405fc256 shaderc: Fixed SPIRV uniform offsets. 2018-04-14 10:30:00 -07:00
Branimir Karadžić
ec3241a869 shaderc: Remove unused uniforms from SPIRV shader. 2018-04-13 17:12:43 -07:00
Branimir Karadžić
fc87e05199 shaderc: Added SPIR-V uniform buffer size. 2018-04-12 20:20:41 -07:00
Branimir Karadžić
d8160075e8 shaderc: Flip gl_Position.y when building SPIR-V. 2018-04-12 19:54:19 -07:00
Branimir Karadžić
ae8f21c467 SPIRV: Removed remap, and renamed gl_FragData_X_ to bgfx_FragDataX to workaround NV/VK driver bug. 2018-04-11 21:02:31 -07:00
Branimir Karadžić
172b7c506b Added SPIRV-Tools. 2018-04-10 19:44:28 -07:00
Branimir Karadžić
b0a7c13473 texturev: Fixed crash when selected image is invalid. 2018-04-02 06:02:55 -07:00
Branimir Karadžić
498175746e texturev: Fixed layer control for 3D textures with mips. 2018-03-27 18:09:31 -07:00
Branimir Karadžić
8e6450de15 Updated ImGui. 2018-03-22 21:11:18 -07:00
Branimir Karadžić
9f0a889cca shaderc: Added GLES2 fallback for transpose. 2018-03-16 22:41:51 -07:00
Branimir Karadžić
52a5f630fd shaderc: Added command line info after preprocessing shader. 2018-03-16 18:15:16 -07:00
Branimir Karadžić
f2e19da28a Cleanup. 2018-03-15 18:27:34 -07:00
Branimir Karadžić
a2e553665c Cleanup. 2018-03-09 19:36:36 -08:00
Branimir Karadžić
954a2df953 Fixed GLSL intepolator qualifier. 2018-02-17 10:04:42 -08:00
Branimir Karadžić
3198dd8226 Cleanup. 2018-02-14 22:01:24 -08:00
Branimir Karadžić
c6b4ce512a Fixed issue #1331. 2018-02-13 16:08:49 -08:00
Branimir Karadžić
584b8b34f0 Added support for independent RGB channel write control. 2018-02-13 12:35:23 -08:00
Branimir Karadžić
cf91b62542 shaderc: Allow passing CS buffers into all shader stages in GLSL. 2018-01-15 17:39:18 -08:00
Branimir Karadžić
49a75f2fb1 bx math API cleanup. 2018-01-13 15:33:50 -08:00
Lectem
7960b42c90 Fix shaderc leaks (#1313)
* Fix fcpp memory leaks

* Fix glsl_optimizer leaks
2018-01-13 10:08:03 -08:00
Branimir Karadžić
052948f173 Cleanup. 2018-01-12 16:38:54 -08:00
Branimir Karadžić
b8f8370935 shaderc: Fixed depends option. 2018-01-10 16:47:43 -08:00
Branimir Karadžić
a6617f7fdf Cleanup. 2018-01-08 19:05:21 -08:00
Branimir Karadžić
6023a016c4 texturev: Fixed window resizing. 2018-01-05 16:43:38 -08:00
Branimir Karadžić
b103741c1a shaderc: Updated version. 2018-01-04 19:04:30 -08:00
Branimir Karadžić
0093775508 texturev: Added support for drop file. 2018-01-04 13:05:36 -08:00
Branimir Karadžić
97e6c498a8 entry: Added drop file event WIP. 2018-01-03 21:37:42 -08:00
Branimir Karadžić
ed00c24f6f texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
Branimir Karadžić
fcc9160e03 texturev: Added scale slider. 2018-01-02 16:20:03 -08:00
Branimir Karadžić
f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
Kyle Rocha
1f3846224b uint32 size indices and vertexBaseIndex to Forsyth (#1304)
- Forsyth::OptimizeFaces() now has 2 overloads, 1 for uint16_t and one
for uint32_t sized indices. Internally each overload now calls down to
the templated OptimizeFacesImpl() providing the respective index type.

- The new 'vertexBaseIndex' is the starting vertex index
subtracted from each index in indexList to allow safe operation on
multiple objects in a single index buffer.

- Also replaced the interal int typedefs with common types provided by
stdint.h
2017-12-30 20:46:21 -08:00
Branimir Karadžić
d32ca7682c texturev: Added support for linear input images. 2017-12-12 17:31:22 -08:00
Branimir Karadžić
0110c8c0b0 shaderc: HLSL fixed interpolation specifier. 2017-12-11 10:47:44 -08:00
Branimir Karadžić
f9d39b2380 Cleanup. 2017-12-09 17:55:09 -08:00
Branimir Karadžić
547d1d2b11 Cleanup. 2017-12-02 18:15:31 -08:00
Branimir Karadžić
90ef8970cc Fixed build. 2017-12-01 22:09:02 -08:00
Branimir Karadžić
844cabf25e texturev: Added SDF menu option. 2017-11-29 22:30:05 -08:00
Branimir Karadžić
0a39920db4 texturev: Rebuilt shaders. 2017-11-29 21:13:24 -08:00
Branimir Karadžić
624c050047 texturev: Added separate MSDF shader. 2017-11-29 21:06:14 -08:00
Branimir Karadžić
c5c851af5a texturev: Fixed SDF. 2017-11-29 16:53:39 -08:00
Branimir Karadžić
81ded16290 texturev: Added load/save settings. 2017-11-28 19:18:46 -08:00
Branimir Karadžić
7a1e4637e3 Cleanup. 2017-11-27 23:10:34 -08:00
Branimir Karadžić
7384171900 Fixed view id remapping. 2017-11-27 15:57:31 -08:00
Branimir Karadžić
1e16af3701 Cleanup. 2017-11-27 14:29:39 -08:00
attilaz
b8886a3531 Adding an API to shaderc (#1280) 2017-11-24 10:01:13 -08:00
Branimir Karadžić
93bde787b8 Fixed build. 2017-11-15 20:30:02 -08:00
Branimir Karadžić
2fa09df3bd texturev: Fixed mip update issue. 2017-11-06 18:25:14 -08:00
Branimir Karadžić
1cd0f35cb7 texturev: Added option to disable transition animation. 2017-11-04 00:07:40 -07:00
Branimir Karadžić
8ded805ff2 texturev: Added .pgm and .ppm extensions as supported. 2017-10-27 20:59:07 -07:00
Branimir Karadžić
e322217bc7 texturev: Added exposure control. 2017-10-25 16:17:54 -07:00
Branimir Karadžić
a5419a8f52 texturev: Added basic texture info. 2017-10-24 21:32:31 -07:00
Branimir Karadžić
a6a166020d Fixed build. 2017-10-04 20:40:01 -07:00
Branimir Karadžić
374b4b4469 geometryc: Fixed uv/normal output. 2017-10-04 20:31:58 -07:00
Branimir Karadžić
2650897f06 Fixed build. 2017-10-01 22:52:26 -07:00
Branimir Karadžić
ed572fc5a6 Cleanup. 2017-09-30 16:25:11 -07:00
Branimir Karadžić
88e00edf4d Fixed build. 2017-09-25 20:02:25 -07:00
Branimir Karadžić
1218981a22 Cleanup. 2017-09-25 17:51:15 -07:00
Branimir Karadžić
a3309c1205 Fixed issue #1236. 2017-09-17 16:54:37 -07:00
Branimir Karadžić
0dd6083787 Cleanup. 2017-09-02 19:30:40 -07:00
Branimir Karadžić
9a7ab977ec Fixed glsl shadow sampler with GLSL 1.30. 2017-08-18 16:59:55 -07:00