Commit Graph

72 Commits

Author SHA1 Message Date
Бранимир Караџић
9200cdb5e8 Fixed build. 2020-04-19 21:57:08 -07:00
Бранимир Караџић
36ec2a462d Removed alignment macros, and added functions instead. 2020-04-19 18:23:04 -07:00
Pablo Escobar
eeb5fe7c02 Don't double-quote profiler literals 2020-04-03 21:56:54 +00:00
Oliver Collyer
7b7dca065b implemented overrideInternal for Metal
The internal pointer is interpreted as being of type id<MTLTexture>.
2020-01-05 08:43:53 -08:00
Logan McGrath
960390fdae Removing setFrontFacing, using setFrontFacingWinding instead (#1931) 2019-11-03 06:53:48 -08:00
Cedric Guillemet
6a883a33fd Front facing (#1904)
* Added BGFX_STATE_FRONT_CCW to defines.h and implemented initial usage only in renderer_d3d11.cpp.

* set front facing for d3d12, gl metal and vulkan

* front facing method Metal

* tabs

* removed tab
idl updated
2019-10-25 20:07:05 -07:00
Leandro Freire
1db46f4fe6 Rename variables and constants 2019-08-17 12:32:16 -07:00
attilaz
75d5662f0b Metal: added support for binding buffers to vertex/fragment shader stages
I have removed the SamplerInfo workaround, because new shaderc preserves texture stages. Some shaders needed recompile with latest shaderc to get the new behavior.
2019-08-16 06:58:44 -07:00
Leandro Freire
855623e153 Rename VertexDecl to VertexLayout 2019-08-13 18:42:01 -07:00
Бранимир Караџић
cdc1886994 Metal: Added profiler. 2019-04-09 20:18:23 -07:00
Attila Kocsis
8196612195 Fixed osx multiple window create/destroy 2019-03-07 19:54:03 +01:00
Бранимир Караџић
7f56297766 Cleanup. 2019-02-13 21:48:20 -08:00
Attila Kocsis
08894e1422 buffer update with blit 2019-02-09 20:55:23 +01:00
Attila Kocsis
c39408173d Metal framebuffer attachment support
08-update: added a cube that has a texturecube that is rendered using framebuffer attachment. It looks the same as the one whose texture is updated with compute shader.
2019-01-24 19:20:35 +01:00
attilaz
b9b58296c7 metal compute shader generation 2019-01-14 09:24:06 +01:00
Бранимир Караџић
490ecf1602 Cleanup. 2019-01-10 13:07:32 -08:00
Attila Kocsis
1708a4677e metal compute and drawindirect 2019-01-05 20:20:30 +01:00
Бранимир Караџић
89032aae39 Cleanup. 2018-12-27 20:56:53 -08:00
Бранимир Караџић
f63a15160b Cleanup. 2018-12-24 22:54:08 -08:00
Branimir Karadžić
11729403f4 Metal: Invalidate PSO when program is destroyed. Issue #1585. 2018-12-20 20:18:30 -08:00
Бранимир Караџић
3b62091bba Cleanup. 2018-12-20 18:35:43 -08:00
Branimir Karadžić
7b0b90e42a Cleanup. 2018-11-28 22:11:49 -08:00
Branimir Karadžić
2b919c1ec4 Metal: Added swap chain support. Manual merge from PR #1563. 2018-11-28 15:19:45 -08:00
Branimir Karadžić
f40bf8e862 Added ability to sample stencil part of depth/stencil texture. 2018-08-23 17:59:47 -07:00
Branimir Karadžić
4433b5bcdc Separating sampler flags from texture creation flags. 2018-08-20 17:12:26 -07:00
Branimir Karadžić
ddb1ffae67 Metal: Fixed pso collsion. 2018-05-19 09:32:22 -07:00
Branimir Karadžić
85b0fde7e3 Cleanup. 2018-05-08 16:15:45 -07:00
Branimir Karadžić
0f8e0b0e88 Cleanup. 2018-05-08 11:53:35 -07:00
Branimir Karadžić
5dffe3060a Cleanup. 2018-05-07 22:03:07 -07:00
Branimir Karadžić
1f9c077236 Cleanup. 2018-04-03 11:28:40 -07:00
Branimir Karadžić
11e701987b Fixed build. 2017-11-24 19:50:23 -08:00
attilaz
4371a31a2f misc metal fix/optim (#1241)
- setLabel now in 'wrapper' I have tested this and it compiles on older sdks ( gives warning). It works on iOS8 device.
- fixed texture skip
- fixed performance issue related to submitBlit. It caused problem because it closed active rendercommand encoder even when blit was not used, so device had to store/load framebuffer. ( thanks to @jazzbre)
2017-09-22 08:45:28 -07:00
attilaz
acf3db7a06 Fix sampler/texture indices for metal (#1242)
Fix for https://github.com/bkaradzic/bgfx/issues/1227 .

It gets texture slot from compiled shaders and maps it to Sampler uniform. So sampler uniform MUST be defined before using shader (shadowmap_simple has a bug with invalid uniform name).
2017-09-22 08:44:51 -07:00
attilaz
036e4f86c1 removed fastMathEnabled = NO; (#1222) 2017-08-19 10:13:26 -07:00
Branimir Karadžić
07d799f72e Renamed constants to new style. 2017-06-09 21:57:08 -07:00
Branimir Karadžić
a1184d53c5 Invalidate occlusion queries in flight when new occlusion query with the same id is created. 2017-03-03 18:05:36 -08:00
Branimir Karadžić
1d7b32e464 Fixed typo. 2017-02-03 18:25:35 -08:00
attilaz
8dffd785e5 metal fixes (#999)
- texture array update fix
- commandqueue resource release fix
2016-12-16 09:14:17 -08:00
attilaz
f873dcbd10 metal fixes, optim (#997)
osx meamleak fix
refactored commandqueue handling to be somewhat similar to d3d12
removed slow cb sync in buffer update
2016-12-15 08:54:45 -08:00
Stuart Carnie
4771d14bc7 Support MetalKit view as an option on all platforms 2016-09-18 10:59:12 +10:00
Olli Wang
96120970fc Fixes the issue that mac-only methods causes iOS failed to compile. (#875)
This commit fixes #870 that it uses Mac-only methods and causes iOS failed to compile.
2016-08-10 09:13:18 -07:00
Stuart Carnie
6cff1b2fb7 metal: synchronize textures with READ flag (#870)
* metal: synchronize textures with READ flag

* Only necessary for desktop
2016-08-08 16:33:45 -07:00
attilaz
742dad2b90 non-blockig texture/vb/ib update when possible (#856)
set vertex/fragment texture only when required per program
2016-07-26 09:29:07 -07:00
attilaz
9d6364e6ee metal (#855)
- msaa framebuffer
- capture (wip)
- read_back
- 30-picking fixes
2016-07-25 09:39:41 -07:00
Branimir Karadžić
869c52e712 Cleanup. 2016-07-14 09:48:07 -07:00
attilaz
be61aaf968 metal: added texture blit (#848) 2016-07-14 09:03:32 -07:00
Branimir Karadžić
77033fe74e Cleanup. 2016-07-07 09:13:05 -07:00
attilaz
cda786ea94 metal msaa support & rendercommand encoder merge 2016-07-07 14:34:22 +02:00
Branimir Karadžić
d9d0806a65 Cleanup. 2016-07-05 09:48:42 -07:00
attilaz
c1cd627cb7 metal fixes
added cpu/gpu timer
fixed handling iOS device orientation change
fixed BGFX_DEBUG_IFH rendering
acquire drawable just before needed
added sampler comparison where available
2016-07-05 16:21:49 +02:00