Cedric Guillemet
bedab93431
Fix D3D12 InputSlot when having streams w/ instances ( #2853 )
2022-08-03 08:02:03 -07:00
Бранимир Караџић
484a5f0c25
Updated version number.
2022-07-23 10:59:37 -07:00
Бранимир Караџић
e34ae05cdf
Cleanup.
2022-07-19 10:36:18 -07:00
Бранимир Караџић
9022ffcb64
Add warning when calling RESET with unusupported feature.
2022-07-18 19:25:50 -07:00
Cedric Guillemet
a3d52fab32
premultiplied backbuffer for UWP/SwapchainPanel ( #2837 )
...
* premultiplied backbuffer for UWP/SwapchainPanel
* init flag
* caps and feedback/opengl premul
* reduced #ifdef form
* removed ifdef
2022-07-18 09:23:57 -07:00
luzpaz
e7936efa6a
Fix typos ( #2839 )
...
Found via `codespell -q 3 -S ./3rdparty,*.ttf -L attribut,ba,clude,conly,indext,inout,lod,nclude,retur,struc,unknwn,utput`
2022-07-12 14:21:31 -07:00
Бранимир Караџић
f06d7257b2
Fixed docs.
2022-07-11 05:45:02 -07:00
Бранимир Караџић
d0a4672307
Cleanup.
2022-07-10 23:26:39 -07:00
Бранимир Караџић
c066251750
Cleanup.
2022-07-10 20:46:11 -07:00
Бранимир Караџић
32192450c4
WebGL2: Fixed missing glReadBuffer import.
2022-07-10 19:03:28 -07:00
bdunkin
f9ab3b5c68
Increase the buffer size if necessary before adding markers ( #2838 )
2022-07-08 11:46:03 -07:00
Gary Hsu
db44d5675f
Fixes when running in WinRT ( #2827 )
...
* Use ResizeBuffers for WinRT
* Set maximum frame latency for WinRT
* Remove extra space
2022-06-23 22:13:38 -07:00
Бранимир Караџић
a153458735
Cleanup.
2022-06-20 05:58:22 -07:00
Cedric Guillemet
607a775009
FS Quad/MSAA for GLES3 ( #2820 )
2022-06-15 07:44:25 -07:00
Cedric Guillemet
f0cf1794e7
Fix MSAA with ARM Mali OpenGL ES ( #2818 )
...
* Fix MSAA with ARM Mali OpenGL ES
* indenting
2022-06-15 03:35:19 -07:00
Бранимир Караџић
24765f8967
Cleanup.
2022-05-21 18:02:37 -07:00
Бранимир Караџић
05b9355ac2
Discard state before touch. Fixed issue #2803 .
2022-05-21 08:48:24 -07:00
Branimir Karadžić
8e7774f735
Fixed build.
2022-05-17 11:30:10 -07:00
Julian Xhokaxhiu
89ae74122c
OpenGL: Enable sRGB texture format support for BC7 ( #2800 )
2022-05-17 10:54:37 -07:00
Бранимир Караџић
6601b01430
Cleanup.
2022-05-17 07:07:10 -07:00
Alexander Knorre
7b1d6a98a9
Compute kSortKeyViewNumBits automatically. ( #2796 )
...
Compute kSortKeyViewNumBits automatically via log2(BGFX_CONFIG_MAX_VIEWS), so that we could change BGFX_CONFIG_MAX_VIEWS to be above 2^10 = 1024 without changing the `bgfx` source code.
One possible problem with this approach is running out of bits, so maybe we could assert for that, I am not sure where to do it and how many bits we can use though.
Using `bx::uint32_cntlz` because `bx::log2` is not constexpr.
Tested on linux opengl with BGFX_CONFIG_MAX_VIEWS=4096, seems to work.
2022-05-15 19:24:53 -07:00
Бранимир Караџић
36be8a72cc
Fixed blit key encoding.
2022-05-14 21:26:20 -07:00
Бранимир Караџић
ae5706693f
Cleanup.
2022-05-13 17:41:30 -07:00
slewicki
bd8ed86009
Changed WGL_STENCIL_BITS_ARB to match what gets used in createContext ( #2791 )
...
On Mesa, the pixel format would match the 0 stencil bits as requested. This change helps bring the pixel format to match what `createContext` would use.
2022-05-06 09:21:05 -07:00
Branimir Karadžić
fe8cab2522
Manually merged PR #2710 .
2022-04-26 19:15:15 -07:00
Бранимир Караџић
b8fdc3f8be
Cleanup.
2022-04-25 21:13:29 -07:00
Kitchen
35c27cda3d
Metal merge texture format ( #2785 )
...
* need check texture format is support read/write
* move read write check to s_textureFormat
* add check BGFX_CAPS_IMAGE_RW
* remove custom read write mask as MTLReadWriteTextureTier
* remove ReadWriteTierMask struct
2022-04-25 19:21:20 -07:00
Бранимир Караџић
ed5e2694dc
Cleanup.
2022-04-25 07:19:18 -07:00
Kitchen
f76b678bef
support Metal renderer to auto generate mipmap for render target ( #2784 )
...
* support render target auto generate mipmap
* move autoGenMipmap check to s_textureFormat table
2022-04-25 07:11:14 -07:00
Sami Kyöstilä
09d8c34e34
GL: Properly reset FBO after emulated blit ( #2782 )
...
Reset the previously bound FBO after rendering an emulated blit instead
of binding the default framebuffer.
Co-authored-by: Sami Kyöstilä <sami.kyostila@unrealvoodoo.org >
2022-04-23 07:25:46 -07:00
Kitchen
33dd76eab5
fix metal renderer set image bug ( #2779 )
...
* fix metal renderer set image type bug
* add Binding::Image access check
* move s_accessNames outside of scope
2022-04-22 06:56:35 -07:00
Kitchen
2568ce7311
fix image is not set in pipeline state object in metal renderer ( #2780 )
...
* always set pipeline state object 'm_bindingTypes' when argument is texture
* fix the typo error casue cash
2022-04-21 20:11:37 -07:00
TooMuchVoltage Software Inc
f6e0db1969
Fixing shadow2DProj in GLSL ( #2775 )
...
Removing erroneous extra bracket for aliasing shadow2DProj in GLSL. Would have caused compilation failure if used.
2022-04-20 06:33:17 -07:00
Ravbug
e7fdfa73c1
Add support in Metal and Vulkan for [earlydepthstencil] ( #2764 )
2022-04-07 09:42:04 -07:00
Бранимир Караџић
5404a29540
Updated version number.
2022-04-06 18:54:03 -07:00
Miguel Ángel
5ae2271667
Replaced VK_FORMAT_D24_UNORM_S8_UINT with the more supported VK_FORMAT_D32_SFLOAT_S8_UINT ( #2755 )
...
Co-authored-by: Miguel Ángel Pérez Martínez <miguel_angel_perez_martinez@not_an_email.com>
2022-04-01 07:27:42 -07:00
Бранимир Караџић
f86499b726
Updated version number.
2022-03-31 18:42:28 -07:00
Christophe Dehais
f44818b548
Import glDrawBuffers() from WEBGL_draw_buffers extension ( #2667 )
2022-03-31 18:27:24 -07:00
James Fulop
d9cdc67993
add missing semicolon ( #2751 )
2022-03-30 07:26:40 -07:00
Sandy
251e35ae09
Fixes for shader texture array in GLES3 ( #2750 )
...
* opengl: use texture for texture2DArray
* shaderc: Add default precision for sampler2DArray on GLES3
2022-03-29 13:14:21 -07:00
Sandy
c0cbaf2a43
gl: Get maxTextureLayers on versions 3.0 and up ( #2749 )
2022-03-29 10:57:33 -07:00
pezcode
d7a8e50d26
Fix resource register macro expansion ( #2747 )
...
The preprocessor library (fcpp) has issues with ## and doesn't expand
properly. We can work around that by using the [reg] syntax which is
supported for all shader targets that internally use HLSL through glslang.
2022-03-22 20:47:29 -07:00
Alexander
6a1809baa2
Use depth in default sort mode ( #2744 )
...
submit param _depth is no longer ignored when using default sort mode
2022-03-14 08:58:59 -07:00
Branimir Karadžić
da9e2f0400
D3D12: Fixed texture array update.
2022-03-05 16:44:56 -08:00
Christophe Dehais
6c9248914e
Fix leaked FBO for depth/stencil only view ( #2738 )
2022-03-04 09:48:50 -08:00
Бранимир Караџић
ae7aeba72c
GL: Fixed vertex layout binding.
2022-02-25 17:21:55 -08:00
Bruno Croci
4f3328edb3
Added textureCube macro for GLSL >= 130. ( #2728 )
...
`textureCube` requires extension `GL_NV_shadow_samplers_cube`, however `texture` can sample a cube sampler without the extension.
2022-02-21 19:41:28 -08:00
Бранимир Караџић
3d4bd88c06
Updated version number.
2022-02-12 10:01:31 -08:00
Kitchen
e42fe374c3
fix only msaa depth texutre in frame buffer error on iOS platform ( #2725 )
2022-02-09 06:29:14 -08:00
pezcode
4b04a8ced8
Vulkan: replace deprecated version macros ( #2721 )
2022-02-06 17:32:03 -08:00