Commit Graph

408 Commits

Author SHA1 Message Date
Branimir Karadžić
294f15fd5e Allow updating RO compute buffers. 2017-03-28 17:35:16 -07:00
Branimir Karadžić
db3939ca16 Merge pull request #1093 from BrianHarris/master
Vulkan/Spirv updates
2017-03-24 17:06:24 -07:00
Brian Harris
c2d62c44ee Spirv compiler fixes 2017-03-24 15:20:38 -05:00
Branimir Karadžić
293c1dc60a Added support for texture2DGrad. 2017-03-23 17:33:29 -07:00
Branimir Karadžić
313749174b Cleanup. 2017-03-11 14:58:09 -08:00
Branimir Karadžić
46ec8d3ca4 VS: Fixing L4 warnings. 2017-03-11 14:44:00 -08:00
Branimir Karadžić
af92146360 Added custom allocator to ImageContainer. 2017-02-19 17:51:38 -08:00
Brian Harris
ae566e2bb6 Some vulkan fixes (#1051) 2017-02-17 09:35:09 -08:00
Branimir Karadžić
2e8c2a0070 Cleanup. 2017-01-19 11:31:14 -08:00
Branimir Karadžić
14dccb7f1e Cleanup. 2017-01-19 00:22:06 -08:00
Branimir Karadžić
f5c2ed411b Fixed tinyexr warnings. 2017-01-18 10:46:08 -08:00
Branimir Karadžić
fd6ab494ff Merge branch 'master' of github.com:bkaradzic/bgfx 2017-01-15 16:22:54 -08:00
Branimir Karadžić
f63553fecc Cleanup. 2017-01-15 16:22:47 -08:00
weshoke
abe4d74f3b Fix doc for shaderc (#1021) 2017-01-15 09:51:30 -08:00
Branimir Karadžić
d9c8501d06 FIxed VS build. 2017-01-11 22:46:41 -08:00
Branimir Karadžić
c992291e94 Updating code to match bx. 2017-01-08 15:55:14 -08:00
Branimir Karadžić
b9b8a6e871 Cleanup. 2017-01-04 08:34:25 -08:00
Branimir Karadžić
3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić
52aaf8f482 Cleanup. 2016-12-27 21:06:49 -08:00
Jim Drygiannakis
f78eeaf50c Added Multi-channel SDF rendering option to texturev (#1006) 2016-12-27 10:11:33 -08:00
Branimir Karadžić
6bce3762da Fixed tinyexr warning. 2016-12-22 23:32:24 -08:00
Branimir Karadžić
5c10e94533 Fixed warnings. 2016-12-22 21:14:16 -08:00
Branimir Karadžić
07aae82d16 Replaced checkAvail* with getAvail* API. 2016-12-22 16:18:44 -08:00
Branimir Karadžić
c35d3c2d6f texturev: Added .gif support. 2016-12-18 20:50:15 -08:00
Branimir Karadžić
af9122b209 texturev: Added support for loading .exr images. 2016-12-18 17:02:20 -08:00
Branimir Karadžić
1c392b8c94 Updated glslang. 2016-12-17 12:38:22 -08:00
Branimir Karadžić
1531cc29dc Fixing VS build. 2016-12-15 20:46:12 -08:00
Branimir Karadžić
e0b901a98a VK: Initial commit. 2016-12-15 19:03:47 -08:00
Branimir Karadžić
ec15f0a01f Fixed VS build. 2016-12-06 09:23:22 -08:00
Branimir Karadžić
f450d45f4e Fixed build. 2016-12-05 21:42:48 -08:00
Branimir Karadžić
1a2e60b1dd Updating embedded shader handling. 2016-12-05 20:59:32 -08:00
Branimir Karadžić
65ef9e8b39 Fixed build. 2016-12-05 20:00:08 -08:00
Branimir Karadžić
e795d8227a shaderc: Use HLSL code path for SPIR-V. 2016-11-03 22:00:55 -07:00
Branimir Karadžić
1d0be51615 shaderc: Output Metal uniform reflection data. 2016-10-31 20:33:14 -07:00
Branimir Karadžić
c5f2c5b373 Cleanup. 2016-10-20 19:52:56 -07:00
Branimir Karadžić
23d592a862 Cleanup. 2016-10-19 18:11:47 -07:00
Branimir Karadžić
44a5b7a328 shaderc: Added SPIR-V target. 2016-10-16 10:29:46 -07:00
Branimir Karadžić
599992c8f1 Added ability to specify api thread wait timeout. Fixed HLSL compiler. 2016-10-13 15:01:27 -07:00
Branimir Karadžić
272195da3f Updated embedded shaders. 2016-10-05 20:41:25 -07:00
Branimir Karadžić
d639452e9b noop: Pretend all features that are not returning results to CPU are available. 2016-10-03 18:26:22 -07:00
Branimir Karadžić
441459f5c0 Cleanup. 2016-10-02 20:01:28 -07:00
Branimir Karadžić
e5b9b8d7aa Cleanup. 2016-10-01 12:38:41 -07:00
Branimir Karadžić
2380221c81 shaderc: Added SPIR-V stub. 2016-09-30 20:03:16 -07:00
Branimir Karadžić
ece1a0e49b shaderc: Added pssl stub. 2016-09-30 18:16:04 -07:00
Branimir Karadžić
ce20d3ab08 texturec: Fixed uninitialized texture layer. 2016-09-29 18:30:08 -07:00
Branimir Karadžić
57d34f557b Cleanup. 2016-09-28 16:42:15 -07:00
Branimir Karadžić
d1e51b118a texturec: Fixed crash when converting 16bpp single channel PNG. 2016-09-27 18:12:22 -07:00
Branimir Karadžić
e0aeb630ad Fixed render debug events colors. 2016-08-24 13:16:04 -07:00
Branimir Karadžić
4a59f19f8a texturev: Updated help screen. 2016-08-23 23:18:41 -07:00
Branimir Karadžić
67ba6eb27c Fixed build error. 2016-08-23 22:57:16 -07:00
Branimir Karadzic
6ca8c213d9 Cleanup. 2016-08-23 22:17:39 -07:00
Branimir Karadžić
08438fa567 texturev: Added texture array support. 2016-08-23 22:06:50 -07:00
Branimir Karadžić
92b11850b4 Fixing image API to deal with layers. 2016-08-22 23:16:40 -07:00
Branimir Karadžić
7537b705e5 GL: Added support for texture array. 2016-08-21 14:03:16 -07:00
Branimir Karadžić
e5aa71db4d Added centroid interpolation modifier. 2016-07-10 20:49:10 -07:00
Branimir Karadžić
4b26830fc1 shaderc: Allow shader without color target write. 2016-07-01 20:38:12 -07:00
Jonathan Howard
41580bf263 Potential fix for loss-of-conversion cast in shaderc 2016-06-29 02:39:57 -07:00
Branimir Karadžić
dae27de242 Fixed issue #814. 2016-06-21 20:56:39 -07:00
Branimir Karadžić
24db40779e Cleanup. 2016-06-20 21:35:38 -07:00
Branimir Karadžić
661e8a1f97 texturev: Added psd support. 2016-06-17 19:19:51 -07:00
Branimir Karadžić
4ac42ebe29 texturev: Added bmp support. 2016-06-16 22:10:33 -07:00
Branimir Karadžić
e50bda7818 Cleanup. 2016-06-15 09:33:11 -07:00
Branimir Karadžić
d8d17994dc GL: Fixed MSAA texture sampling. 2016-06-13 14:47:37 -07:00
Branimir Karadžić
21518f201f texturec: Preserve precision of input texture. 2016-06-02 16:38:26 -07:00
Branimir Karadžić
58156ea4e8 Cleanup. 2016-05-28 17:14:19 -07:00
Branimir Karadžić
dda0de635e Switched to Roboto font. Added mono font. 2016-05-28 16:26:19 -07:00
Branimir Karadžić
3dd6bc237b Added icon fonts to ImGui. 2016-05-28 12:12:59 -07:00
Branimir Karadžić
c86b996eb3 texturev: Added color channel filtering options. 2016-05-18 09:10:02 -07:00
Branimir Karadžić
407c37e8d3 Cleanup. 2016-05-08 14:50:04 -07:00
Branimir Karadžić
220cabeae5 texturev: Fixed build. 2016-05-06 10:55:41 -07:00
Branimir Karadžić
8cf12291f4 texturev: Added Linux file association. 2016-05-05 22:55:38 -07:00
Branimir Karadžić
1872250574 texturev: Remove existing associations. 2016-05-05 20:18:20 -07:00
Branimir Karadžić
7658a29e4a texturev: Fixed registry executable path string. 2016-05-05 17:24:28 -07:00
Branimir Karadžić
3ea0ba3ac0 texturev: Added option to associate texture file extension with texture viewer. 2016-05-05 16:22:48 -07:00
Branimir Karadžić
cdf87ab691 shaderc: Added --disasm flag support for GLSL. 2016-04-30 11:44:38 -07:00
Branimir Karadžić
32a9594134 Cleanup. 2016-04-30 11:08:56 -07:00
Branimir Karadžić
5aa4f6f63a Cleanup. 2016-04-24 16:22:22 -07:00
Branimir Karadžić
321173961c texturev: Added help menu. 2016-04-24 08:49:49 -07:00
Branimir Karadžić
f1501a686c texturev: Added texture info to title bar. 2016-04-23 12:25:05 -07:00
Branimir Karadžić
9d5e276dfc texturev: Added directory scan. 2016-04-23 11:07:20 -07:00
Branimir Karadžić
a94089e29f Added simple texture viewer tool. 2016-04-21 22:12:35 -07:00
Branimir Karadžić
53e2439eba shaderc: Added half-texel fixup for D3D9 (experimental, commented out). 2016-04-14 19:41:06 -07:00
Branimir Karadžić
7d8afe92b7 texturec: Added option for image quality assesment. 2016-04-11 20:22:10 -07:00
Branimir Karadžić
7a849bec97 texturec: Added error message when image width/height doesn't match target format requirements. 2016-04-05 15:31:13 -07:00
Branimir Karadžić
310bcfcfeb Cleanup. 2016-03-30 20:32:13 -07:00
Dario Manesku
4ba8725692 Run preprocessor before determining input/output. 2016-03-30 05:29:03 +02:00
Branimir Karadžić
d45d3c62f8 texturec: Fixed conversion of unaligned image. 2016-03-18 17:46:10 -07:00
Branimir Karadžić
a076c1a03b Exposed GL_ARB_gpu_shader5 and GL_ARB_shading_language_packing to shaderc. 2016-03-18 11:32:04 -07:00
Branimir Karadžić
6159afd0d3 Merge pull request #701 from dariomanesku/wf
28-wireframe, geometryc with barycentric and 18-ibl redone with cmft-filtered textures.
2016-02-28 16:19:22 -08:00
Dario Manesku
7b2752c450 Added 28-wireframe. Geometryc now has --barycentric feature. Example meshes updated. Commit has only glsl shaders. 2016-02-29 01:06:39 +01:00
Branimir Karadžić
bd508f9624 texturec: Fixed PTC14 encoder. Issue #699. 2016-02-27 09:05:00 -08:00
Branimir Karadžić
597b10128e Cleanup. 2016-02-21 14:08:20 -08:00
Branimir Karadžić
7568c9a25e texturec: Fixed mipmap generation. 2016-02-16 14:28:18 -08:00
Steinar V. Kaldager
b4919c85e8 Fixed backwards error check in geometryc.
bx::open() returns true on success, so there
should be a negation in this error check.
2016-02-13 19:47:30 +00:00
Branimir Karadžić
c5a2ddd662 Cleanup. 2016-02-01 22:23:57 -08:00
Branimir Karadžić
861c254c93 texturec: Fixed ETC2 encoding. 2016-02-01 20:36:38 -08:00
Branimir Karadžić
4aff519fe4 Cleanup. 2016-02-01 17:44:56 -08:00
Branimir Karadžić
1ae89c70ef shaderc: Allow different HLSL compilers. 2016-02-01 15:53:11 -08:00
Branimir Karadžić
d050ee9641 Fixed MinGW build. 2016-02-01 10:57:02 -08:00
Branimir Karadžić
016bfc4290 Improved reader/writer error handling. 2016-01-31 16:00:02 -08:00
Branimir Karadžić
d53b27d353 Cleanup. 2016-01-30 21:13:41 -08:00
Branimir Karadžić
2cf7eaaefc Cleanup. 2016-01-30 20:59:50 -08:00
Branimir Karadžić
ee40695502 shaderc: Fixed Wine build. 2016-01-30 18:53:30 -08:00
Branimir Karadžić
a972d1fef0 Tools cleanup. 2016-01-30 16:15:25 -08:00
Branimir Karadžić
6c68a79526 Added ETC2 encoding. 2016-01-28 21:09:03 -08:00
Branimir Karadžić
6d80ef7835 shaderc: Added command line argument for setting preprocessor defines. Issue #662. 2016-01-22 20:27:03 -08:00
Branimir Karadžić
066c4fb3e3 Cleanup. 2016-01-12 22:32:22 -08:00
Branimir Karadžić
529fdb01c7 GL: Fixed texture formats. 2016-01-11 14:49:56 -08:00
Branimir Karadžić
ddec926231 Added missing pack/unpack for texture formats. 2016-01-10 20:57:12 -08:00
Branimir Karadžić
895c3e43d3 texturec: Added normalmap BC5 encoding. 2016-01-07 17:31:57 -08:00
Branimir Karadžić
6c25d56551 texturec: Added basic normalmap mipmap filter. 2016-01-06 18:15:05 -08:00
Branimir Karadžić
8f5202ca99 Cleanup. 2016-01-05 18:32:54 -08:00
Branimir Karadžić
4770831b11 texturec: Support for normal maps WIP. 2016-01-04 21:48:01 -08:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Branimir Karadžić
026a2563f1 texturec: Added mip-map gen. 2015-12-31 20:05:00 -08:00
Branimir Karadžić
930fbe9e1a shaderc: Normalize EOL before processing shader. 2015-12-28 17:16:11 -08:00
Branimir Karadžić
30b7d5dc26 Cleanup. 2015-12-27 20:04:17 -08:00
Branimir Karadžić
76e45fe53c texturec: Fixed ETC1 encoder. 2015-12-23 22:17:51 -08:00
Branimir Karadžić
c525059d18 Added tinyexr. 2015-12-22 20:31:46 -08:00
Branimir Karadžić
69a0f6fa4e texturec: Added PVR1 RGB/A 4-bpp compression. 2015-12-22 18:05:06 -08:00
Branimir Karadžić
c82d3e86d9 texturec: Added BC4/5 compression. 2015-12-22 15:40:55 -08:00
Branimir Karadžić
8ab70bd8cf Added stripped down NVTT library. 2015-12-20 20:40:35 -08:00
Branimir Karadžić
35340d121f texturec: Added BC1/2/3 and ETC1 compression. 2015-12-18 18:15:30 -08:00
Branimir Karadžić
61b78529af Added ETC1. 2015-12-15 22:13:01 -08:00
Branimir Karadžić
d1eaafc138 Added libsquish. 2015-12-14 17:35:24 -08:00
Branimir Karadžić
fac71e9e35 Fixed issue #569. 2015-12-08 16:09:30 -08:00
Branimir Karadžić
39409696e6 Cleanup. 2015-11-19 20:10:51 -08:00
Branimir Karadžić
de347e9f23 Cleanup. 2015-11-17 23:31:34 -08:00
Branimir Karadžić
8677017bac KTX: Added support for more formats and stubbed writer. 2015-11-15 20:40:23 -08:00
Branimir Karadžić
86839f6e2e shaderc: GLSL autodetect use of profile 130. 2015-10-18 19:35:46 -07:00
Branimir Karadžić
3d2405232e geometryc: Fixed empty primitive group crash. 2015-08-29 23:46:10 -07:00
Branimir Karadžić
d1f99896ec Moved public header files into bgfx subdirectory.
grep -rl '<bgfx.h>' . | xargs sed -i 's@<bgfx.h>@<bgfx/bgfx.h>@g'
2015-09-18 20:19:12 -07:00
Branimir Karadžić
86ec6b5f90 Cleanup. 2015-09-03 18:33:41 -07:00
Branimir Karadžić
4470f7097c Fixed HLSL reflection for samplers. 2015-09-01 16:44:11 -07:00
Branimir Karadžić
8adc099b02 Cleanup. 2015-07-30 11:36:26 -07:00
Brad Roepstorff
b8fc92520f adding better error message for missing varying.def.sc in shaderc 2015-07-29 20:58:35 -04:00
Branimir Karadžić
527ab0bcc1 shaderc: Metal fixes. 2015-06-12 15:22:01 -07:00
Branimir Karadžić
ce1b41336d shaderc: Adding metal shader type. 2015-06-12 15:08:01 -07:00
Nodrev
4df0cca212 Fixing geometryc for meshes exported without uv coordinates 2015-06-02 22:37:22 +02:00
Branimir Karadžić
ff01992cb7 Refactored uniform types. 2015-05-28 15:27:00 -07:00
Branimir Karadžić
29001134ca Removed dxguid from shaderc, use INITGUID instead. 2015-05-26 12:08:12 -07:00
Branimir Karadžić
1deb6a2e9d Fixed issue #385. 2015-05-12 19:55:54 -07:00
Branimir Karadžić
ea375d5c03 Fixed MinGW compile error. 2015-04-22 19:43:19 -07:00
James Darpinian
bc08ef142e Stop hardcoding the GUID for ID3D11ShaderReflection.
This GUID changes depending on what version of the DirectX SDK you have.
The GUID is defined in d3d11shader.h as a const global, not a preprocessor
macro, so this #ifndef was clobbering it always. This caused DX11 shader
compliation to fail when using the Windows 8.1 SDK.
2015-04-22 19:15:08 -07:00
Mike Popoloski
121cc748c2 Fixing a shader linkage crash in D3D11 for 10level9 targets
Lower feature level targets in D3D11 also require SV_Position as an input param to the pixel shader, otherwise there are linkage mismatches between the vertex and pixel shaders.
2015-04-16 19:24:27 -04:00
Branimir Karadžić
6878b8de29 Cleanup. 2015-04-13 14:45:14 -07:00
Branimir Karadžić
cea3815dff Fixed HLSL shader stripping. 2015-04-13 12:54:45 -07:00
Branimir Karadžić
a17f9cfa9b Cleanup. 2015-04-12 22:26:18 -07:00
Branimir Karadžić
7825f3a41e Cleanup. 2015-04-11 20:52:05 -07:00
Mike Popoloski
643d7939d7 Fixing a uniform parsing issue. 2015-04-11 16:11:16 -04:00