summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add OS::is_process_running function.mdavisprog2022-05-032-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Adds the is_process_running function to the native OS class and exposes it to script. This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function. Documentation is updated to reflect new API function.
* | | Rename Basis get_axis to get_column, remove redundant methodsAaron Franke2022-05-031-1/+1
| | |
* | | Merge pull request #51102 from Calinou/renderingserver-add-api-version-getterRémi Verschelde2022-05-036-0/+17
|\ \ \ | | | | | | | | Add `get_video_adapter_api_version()` to RenderingServer
| * | | Add `get_video_adapter_api_version()` to RenderingServerHugo Locurcio2022-05-036-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #60627 from aaronfranke/rename-elementsRémi Verschelde2022-05-034-132/+135
|\ \ \ \ | | | | | | | | | | Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
| * | | | Rename Basis "elements" to "rows"Aaron Franke2022-04-293-89/+89
| | | | |
| * | | | Rename Transform2D "elements" to "columns"Aaron Franke2022-04-294-43/+46
| | | | |
* | | | | Merge pull request #60714 from Calinou/typedef-remove-refRémi Verschelde2022-05-035-9/+9
|\ \ \ \ \ | |_|_|/ / |/| | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
| * | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-035-9/+9
| | |/ / | |/| | | | | | | | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* | | | Merge pull request #60601 from touilleMan/gdextension_get_library_pathRémi Verschelde2022-05-032-2/+7
|\ \ \ \ | |/ / / |/| | | Add GDNativeInterface::get_library_path to GDExtension
| * | | Add GDNativeInterface::get_library_path to GDExtensionEmmanuel Leblond2022-04-292-2/+7
| |/ /
* | | Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-026-61/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* | | Add `hint_color` support for `vec3` in shadersYuri Roubinsky2022-05-011-17/+51
|/ /
* / Add MeshStorage to GLES3clayjohn2022-04-284-51/+1507
|/
* Fix typo after #60503Rémi Verschelde2022-04-281-1/+1
|
* Merge pull request #60503 from clayjohn/OPENGL-3DRémi Verschelde2022-04-2819-2198/+4759
|\
| * Overhaul GLES3: Add basis for 3D renderer, overhaul materials and texturesclayjohn2022-04-2619-2198/+4759
| |
* | Fix cppcheck const parametersMarkus Sauermann2022-04-282-2/+2
| | | | | | | | | | | | | | | | | | | | Convert method signature parameters to const where it is possible # Conflicts: # drivers/gles3/rasterizer_canvas_gles3.cpp # drivers/gles3/rasterizer_canvas_gles3.h # editor/plugins/animation_state_machine_editor.cpp # editor/plugins/animation_state_machine_editor.h
* | Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde2022-04-274-19/+19
|\ \
| * | Fix more issues found by cppcheck.bruvzg2022-04-204-19/+19
| | |
* | | Fix "ortogonal" -> "orthogonal" typo in rasterizer codeHugo Locurcio2022-04-262-2/+2
| | |
* | | Merge pull request #60386 from bruvzg/label3dRémi Verschelde2022-04-251-4/+0
|\ \ \ | |_|/ |/| |
| * | Implement Label3D node.bruvzg2022-04-221-4/+0
| |/ | | | | | | | | | | | | | | | | Add "generate_mipmap" font import option. Add some missing features to the Sprite3D. Move BiDi override code from Control to TextServer. Add functions to access TextServer font cache textures. Add MSDF related flags and shader to the standard material. Change standard material cache to use HashMap instead of Vector.
* / Fixed ambiguous reference to "Shader" and "Material" classes in ↵Shnazzy2022-04-221-58/+59
|/ | | | drivers/gles3/storage/material_storage.cpp
* Merge pull request #60175 from Geometror/visual-shader-vector4Yuri Rubinsky2022-04-201-1/+1
|\
| * Add Vector4 to VisualShaderHendrik Brucker2022-04-121-1/+1
| |
* | Initialize OpenGL before rasterizers in GLES3clayjohn2022-04-197-61/+64
| |
* | Moved particles into ParticlesStorageBastiaan Olij2022-04-175-269/+398
| |
* | Move light, reflection probe and lightmap into LightStorageBastiaan Olij2022-04-175-343/+475
| |
* | Merge canvas and decal into TextureStorage and add render targetBastiaan Olij2022-04-1714-1423/+1208
| |
* | Remove or make private `FileAccess` `close()` methods.bruvzg2022-04-124-13/+10
| |
* | Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-1111-27/+18
|/
* Fix some issues found by cppcheck.bruvzg2022-04-0610-31/+28
|
* Style: Apply clang-tidy to current code, add `readability-redundant-member-init`Rémi Verschelde2022-04-041-1/+1
|
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-044-12/+12
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Move storage for Mesh, MeshInstance, MultiMesh and Skeleton into MeshStorageBastiaan Olij2022-04-025-335/+471
|
* 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.
* Merge pull request #59385 from BastiaanOlij/extract_shader_storageRémi Verschelde2022-03-318-1142/+1307
|\
| * Extract global variable, shader and material storageBastiaan Olij2022-03-318-1142/+1307
| |
* | Fix typos with codespellRémi Verschelde2022-03-311-1/+1
|/ | | | | | Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
* vk_mem_alloc: Update to upstream + Replace use of deprecated itemsPedro J. Estébanez2022-03-292-15/+15
|
* Extract Decal and Decal atlas from Storage classBastiaan Olij2022-03-215-59/+145
|
* Rename several transform built-ins in shadersYuri Roubinsky2022-03-185-28/+28
|
* Replace DirectionalLight3D's `use_in_sky_only` with `sky_mode` enumHugo Locurcio2022-03-172-5/+5
| | | | | | | | | | 3 options are available: - Light and Sky (default) - Light Only (new) - Sky Only (equivalent to `use_in_sky_only = true`) Co-authored by: clayjohn <claynjohn@gmail.com>
* Merge pull request #58993 from notSanil/device-limit-exceeded-fixRémi Verschelde2022-03-172-2/+2
|\
| * Fix device limit exceeding for uniform buffernotSanil2022-03-162-2/+2
| |
* | Split dummy renderer classes into separate filesBastiaan Olij2022-03-1615-1890/+2325
| | | | | | | | Split canvas_texture_storage and texture_storage from render_storage class
* | Change some math macros to constexprkobewi2022-03-092-16/+16
|/ | | | Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
* Remove unused GDNative codeRémi Verschelde2022-03-091-2/+2
| | | | | | | | | This has been superseded by GDExtension so this code is no longer useful nor usable. There's still some GDNative-related stuff in platform export code which needs to be adapted for GDExtension (e.g. to include GDExtension libraries in exports).
* Merge pull request #49447 from Calinou/remove-shadow-color-propertyRémi Verschelde2022-03-082-4/+0
|\ | | | | Remove unused `shadow_color` property from Light3D