summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan/rendering_device_vulkan.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Split GI effects and fix stereoscopic rendering of GI effectsBastiaan Olij2022-06-221-0/+6
|
* Add a new HashSet templatereduz2022-05-201-7/+7
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Use range iterators for RBSet in most casesAaron Record2022-05-191-21/+21
|
* Replace most uses of Map by HashMapreduz2022-05-161-30/+30
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Add `get_video_adapter_api_version()` to RenderingServerHugo Locurcio2022-05-031-0/+5
| | | | | | This method can be used to get the graphics API version currently in use (such as Vulkan). It can be used by projects for troubleshooting or statistical purposes.
* Fix more issues found by cppcheck.bruvzg2022-04-201-1/+1
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-2/+1
|
* Fix some issues found by cppcheck.bruvzg2022-04-061-8/+8
|
* Add color pass flags to Forward Clustered rendererjfons2022-04-011-73/+106
| | | | | | | | | | This commit removes a lot of enum values related to the color render pass in favor of a new flag-bases approach. This means instead of hard-coding all the possible option combinations into enums, we can write our logic by checking a bit-mask. The changes in rendering_device_vulkan.cpp add support for unused attachments. That means RenderingDeviceVulkan::framebuffer_create() can take null RIDs in the attachments vector, which will result in VK_ATTACHMENT_UNUSED entries in the render pass. This is used in this same PR to establish fixed locations for the color pass attachments (only color and separate specular so far, but TAA will add motion vectors as well). This way the attachment locations in the shader can stay the same regardless of which attachments are actually used. Right now all the combinations of flags are generated, but we will need to add a way to limit the amount of combinations in the future.
* vk_mem_alloc: Update to upstream + Replace use of deprecated itemsPedro J. Estébanez2022-03-291-14/+14
|
* Merge pull request #58993 from notSanil/device-limit-exceeded-fixRémi Verschelde2022-03-171-1/+1
|\
| * Fix device limit exceeding for uniform buffernotSanil2022-03-161-1/+1
| |
* | Change some math macros to constexprkobewi2022-03-091-15/+15
|/ | | | Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
* Add a UniformSet cachereduz2022-03-061-65/+64
| | | | | | | * Changed syntax usage for RD::Uniform to create faster with a single RID * Converted render pass setup to use this in clustered renderer to test. This is the first step into creating a proper uniform set cache system to simplify large parts of the codebase.
* Fixing retrospective code for specialisation constantsBastiaan Olij2022-03-011-5/+8
|
* vk_mem_alloc: Update to upstream + Adapt approach to small objects poolingPedro J. Estébanez2022-02-241-18/+44
| | | | | | This updates VMA and instead of using the custom small pool approach from 4e6c9d3ae979f2eb0151cf581fe61d2f3194ea72, lazily creates pools for the relevant memory type indices, which doesn't require patching VMA. Also, patches already merged upstream or not needed any longer are removed.
* Implementing OpenXR driverBastiaan Olij2022-02-231-0/+118
|
* [Windows] Fix Vulkan driver crash on sub-window minimization.bruvzg2022-02-171-0/+4
|
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-17/+17
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* Add a separate pool for small allocations in Vulkan RDPedro J. Estébanez2022-02-121-2/+20
|
* Merge pull request #54890 from briansemrau/threadsafe-drawpute-listsRémi Verschelde2022-01-221-0/+12
|\ | | | | Make draw/compute lists threadsafe
| * Make draw/compute lists threadsafeBrian Semrau2021-11-111-0/+12
| | | | | | | | Lock the rendering device while command buffers are in use
* | Merge pull request #54489 from briansemrau/texture-delete-updateRémi Verschelde2022-01-191-3/+3
|\ \
| * | Fix materials not updating when texture replaced/deletedBrian Semrau2021-11-011-3/+3
| |/
* | Remove support for PVRTC texture encoding and decodingHugo Locurcio2022-01-141-57/+0
| | | | | | | | | | | | | | On the only platform where PVRTC is supported (iOS), ETC2 generally supersedes PVRTC in every possible way. The increased memory usage is not really a problem thanks to modern iOS' devices processing power being higher than its Android counterparts.
* | Fix various typosluz paz2022-01-131-1/+1
| | | | | | Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
* | Merge pull request #55790 from Calinou/renderingserver-add-device-type-getterRémi Verschelde2022-01-041-0/+5
|\ \ | | | | | | Add `RenderingServer.get_video_adapter_type()` method
| * | Add `RenderingServer.get_video_adapter_type()` methodHugo Locurcio2021-12-101-0/+5
| | | | | | | | | | | | | | | | | | | | | This can be used to distinguish between integrated, dedicated, virtual and software-emulated GPUs. This in turn can be used to automatically adjust graphics settings, or warn users about features that may run slowly on their hardware.
* | | Merge pull request #51206 from clayjohn/Vulkan-ASSGIRémi Verschelde2022-01-041-3/+4
|\ \ \
| * | | Added SSIL post processing effectclayjohn2021-11-061-3/+4
| | |/ | |/|
* | | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| |/ |/| | | | | Happy new year to the wonderful Godot community!
* | Merge pull request #55704 from RandomShaper/fix_little_vk_mistakeRémi Verschelde2021-12-101-1/+1
|\ \
| * | Fix misuse of Vulkan enum valuePedro J. Estébanez2021-12-071-1/+1
| | |
* | | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
|/ / | | | | | | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* / Implemented AMD's FSR as a computer shader for upscaling 3D scenesJe06jm2021-11-231-0/+1
|/
* Disallow compute dispatch with zero dimensions.Brian Semrau2021-10-301-0/+9
|
* Addition of FogVolumes, FogShaders, FogMaterial, and overhaul of VolumetricFogclayjohn2021-10-281-2/+2
| | | | Co-authored-by: Brian Semrau <brian.semrau@gmail.com>
* clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-281-32/+32
| | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* doctool: Fix differences between headless and Vulkan rendering backendsRémi Verschelde2021-10-201-0/+2
| | | | Fixes #53913.
* Use range iterators for `Map`Lightning_A2021-09-301-3/+3
|
* Rename RID's `getornull()` to `get_or_null()`Hugo Locurcio2021-09-291-103/+103
|
* Fix buffer_info may be used uninitializedRaul Santos2021-09-171-0/+1
|
* Expose Vulkan internal values for access from extensionsBastiaan Olij2021-09-091-2/+88
|
* Optionally scale 3D render contentBastiaan Olij2021-08-261-0/+8
|
* Remove redundant assignments.Anilforextra2021-08-211-2/+2
| | | | Use used_in_transfer instead of used_in_compute twice.
* Fixes to mobile rendererreduz2021-08-171-4/+34
| | | | | | * Make sure shaders are named, to aid in debug in case of failure * SceneRenderRD was being wrongly initialized (virtual functions being called when derivative class not initialized). * Fixed some bugs resulting on the above being corrected.
* Upgrade Vulkan memory allocatorPedro J. Estébanez2021-08-131-0/+1
|
* Use "volk" instead of statically linked Vulkan loader.bruvzg2021-08-121-1/+1
|
* Fixes and optimizations to mobile rendererreduz2021-08-101-20/+85
| | | | | | | * Only apply final actions to attachments used in the last pass. * Fixes to draw list final action (was using continue instead of read/drop). * Profiling regions inside draw lists now properly throw errors. * Ability to enable gpu profile printing from project settings. (used to debug).
* Use subpasses to do 3D rendering and resolve in mobile rendererBastiaan Olij2021-08-061-9/+29
|