Граф коммитов

1024 Коммитов

Автор SHA1 Сообщение Дата
Alexander Schill 9f24db0f7a Adding support for multiple scissors and viewports in image effects 2023-11-10 20:24:04 +09:00
MaximilianEmel c45817e94b Removed OpenGL NameContainer overrides, because we're not modifying them. 2023-11-03 16:52:55 +01:00
MaximilianEmel cb7335e87d Finished moving to GLEnum. OpenGL now builds (tested on Windows). 2023-11-03 16:52:55 +01:00
MaximilianEmel 2b7444016b Starting to replace specific enums with the generic GLEnum 2023-11-03 16:52:55 +01:00
MaximilianEmel 5fb7ff6e22 Silk.NET's SearchPathContainer is now an array 2023-11-03 16:52:55 +01:00
adrsch 5d2111a6ac
Let the user pick which animation stack to import in an fbx (#1977)
* Let the user pick which animation stack to import if multiple are present in an fbx

* Support animation index in non-fbx

* Add warnings for animation index less than zero, fix FBX check for negative index

* Remove references to FBX on AnimationAsset.AnimationStack now that AnimationStack is supported by non-FBX formats
2023-11-02 21:41:50 +00:00
Eideren edb2618557
[OpenVR] Handle custom resolution specified by the user through VR settings (#2000) 2023-10-31 20:48:50 +01:00
MaximilianEmel a4985e6578
Fixes OpenXR (#1911)
* Change version of Silk.NET.OpenXR from 2.15.0 to 2.17.1

* using vrFullSurface for Mirror for now

* Improve some Exception and Logging text

* Use XR_REFERENCE_SPACE_TYPE_STAGE as default because standing VR is generally the standard nowadays, rather than seated.

* Deleted deprecated Fove and GoogleVR VirtualReality APIs

* Completely remove Fove & GoogleVR

* Changes OpenVR's default Universe to Standing.

* Set default Universe for OpenVR & OpenXR back to Seated.

* Update all (Stride.Graphics) uses of Silk.NET from 2.15.0 to 2.17.1

* Update System.Memory from 4.5.4 to 4.5.5 to match Silk.NET
2023-10-30 05:32:46 +01:00
Eideren 7be9583dba
[Editor] Re-introduce workaround for missing input while navigating (#1897)
* [Editor] Re-introduce workaround for missing input while navigating

* [Editor] Slightly faster transition between scene views
2023-10-29 04:43:22 +01:00
Elias Holzer bbd23c93d7 [Shaders] Fixes `EffectValueDescription.DefaultValue` for negative values
Negative values are represented as unary expressions. This commit adds support for unary expressions when reading the default value of a parameter.
In case an initializer expression is not supported / can't be evaluated the `DefaultValue` property is set to `null`.

Fixes issue #1963
2023-10-28 15:47:22 +02:00
IXLLEGACYIXL a2dcf78ffd
Stride Diagnostics Analyzer (#1864)
* Set up analyzer project to be included in every project

* Create basic structure

* Add Tests project

* Add STRDIAG003

* add STRDIAG004

* add STRDIAG005

* add STRDIAG006

* cleanup with wellknownreferences

* cleanup code

* add strdiag007

* format

* empty line removed

* expand references

* add attributehelper

* addSTRDIAG008

* add strdiag000

* repair assign mode

* repair STRDIAG000

* fix strdiag000

* fix strdiag008

* improve strdiag004

* finally fixed with originaldefinition

* Performance update

* fix delegate check

* fix delegate comparison on delegate

* add comment for Updatable attribute

* make HasAttribute an extension method and remove attributehelper

* change strdiag003 error message

* update rules for STRDIAG004

* rename strdiag005

* change strdiag005 error message

* rename to Serialization category

* refactor AnalyzeField

* remove useless null checks

* rename class to match file name

* fix error messages

* remove try catch

* update error message

* update delegate error message

* add missing accessibility check

* add missing accesibility check

* add missing accesibility check

* make accessibility check extension method

* fix readonly member, negate isvisible

* fix title

* cleanup ifs

* project cleanup

* reorganize if statements

* extract if

* fix spacing

* remove unused parameter

* fix style

* remove unused paramter

* add some tests

* rename files

* more tests

* add tests, fix typos

* add todo

* rename tests

* cleanup

* addd invalid content mode

* cleanup analyzers

* cleanup tests

* fix tests and bugs

* update test

* add edge cases, update tests, cleanup

* add rest of the tests

* add updatable test

* update comments

* make repot diagnostics an extension method

* add immutable comment

* compiler utils cleanup

* format cleanup

* upgrade to latest roslyn

* remove folder

* remove visibility , add using directive for debugger

* add reason

* renamed template

* remove String

* rename tests

* named parameter, bump version of test project

* add comments

* fix and strdiag001

* add strdiag009

* add strdiag001 tests

* make class proper accessor for serialization rules

* alter message

* add pragma disable

* update message

* add pragma

* fix test

* add strdiag009 tests

* add enums to supported values

* convert title to fit to datacontract title

* add links

* add link

* add missing help link

---------

Co-authored-by: Marian Dziubiak <marian.dziubiak@gmail.com>
Co-authored-by: IXLLEGACYIXL <ixllegacy123@outlook.com>
2023-10-17 12:50:29 +01:00
Eideren b9f19bb0b0
[Serialization] Fix diverging rules for editor and runtime serialization of fields and properties (#1875) 2023-10-17 00:28:04 +02:00
Jeromy Walsh 0bc67fc2fb
Removed all references to $(SolutionDir) from build (#1894)
Removed all references to SolutionDir or replaced with references to $(MSBuildThisFileDirectory).

Co-authored-by: Eideren <contact@eideren.com>
2023-10-17 00:27:24 +02:00
Vaclav Elias 31472a80dd
Xml comments fixing 1 (#1918)
* [XML Comment] return value corrected to Graphics.PixelBuffer

* fix: Typo and grammar corrected

* [XML Comment] cref requiredFields removed because it is private variable, hidden from docs

* [XML Comment] crefs corrected

* [XML Comment] Lower case cref corrected to upper case

* [XML Comment] cref sound corrected to Sound

* [XML Comment] corrected

* fix: Typo fixed in the xml comments

* [XML Comment] cref removed, namespace collision

* [XML Comment] coments improvemnets

* [XML Comment] cref removed, because it is private

* [XML Comment] cref removed, not accessible

* [XML Comment] cref removed, not accessible

* [XML Comment] cref corrected

* [XML Comment] typos and cref corrections

* [XML Comment] cref corrected

* [XML Comment] cref removed, the methods are not visible

* [XML Comment] cref updated with TextureDimension

* Update Image.cs - Space removed
2023-10-17 00:10:02 +02:00
Anthony Marmont e017fe1268
[Docs] Use XML documentation lists (#1948) 2023-10-16 20:04:33 +02:00
froce db628f446f
[Android] Fix Android build error (#1949) 2023-10-16 19:39:42 +02:00
Wojciech Nagórski d44cd59eb6
Update SSH.NET to 2023.0.0 (#1951) 2023-10-16 19:38:18 +02:00
froce d2650978df
fix(graphics): Stop FastTextRenderer VB clobbering (#1954)
`FastTextRenderer` was overwriting the start of the vertex buffer for every string. This change advances the start of the span to prevent that.
2023-10-16 18:45:03 +02:00
Marian Dziubiak f16c3c7317
Merge pull request #1788 from froce/trace-profiling
[Core] Enable multiple profiler consumers and add a timeline/tracing profiler
2023-10-15 10:47:09 +01:00
adrsch 337b349722
[Physics] Let the user set the default Bullet gravity vector in PhysicsSettings (#1928) 2023-10-14 14:30:47 +02:00
froce e680006e82 Minor ProfilingKey cleanup 2023-10-14 14:02:34 +02:00
froce e767766ae0 Prevent division by 0 in GameProfilingSystem 2023-10-14 13:59:53 +02:00
froce 8443b61d3d Add GameProfilingSorting.ByAverageTime 2023-10-12 21:18:59 +02:00
froce 66a2d201dc Address PR feedback 2023-10-11 16:18:53 +02:00
Jakub Ławreszuk d61d5321b8
[Native] Move C++ methods for SpriteBatch and FastTextRenderer to C# (#1896) 2023-10-11 01:58:59 +02:00
Vaclav Elias 8779f3d1de
[XML Comment] Minor updates on EFlags in CollisionFilterGroups.cs (#1910) 2023-10-08 15:26:48 +02:00
Basewq e1c4043048
[Graphics] Fix missing OpenGLES texture formats. (#1898)
Co-authored-by: Basewq <Basewq@users.noreply.github.com>
2023-10-06 18:07:37 +02:00
froce 0a643bfd0e Add some trace profiling scopes. 2023-10-05 23:02:20 +02:00
froce cb2e1c78a4 Rework `Profiler` to support multiple subscribers and use Channels internally.
- Channels simplified the addition of multiple subscribers and should be a big perf win, when collecting events from many threads.
- Adds thread information to `ProfilingEvent` and `ProfilingState`
- Adapted `GameProfilingSystem` to the changes
2023-10-05 23:01:41 +02:00
froce f71c1ed740 Small Profiler fixes
- Flip ordering of Profiling results, to sort from longest to shortest.
- Only record `End` events in the Histogram, Begin/Mark events don't have a duration.
2023-10-05 23:01:41 +02:00
Eideren 75bc9ac6bd
[Physics] Add ray test flags (#1850) 2023-09-30 14:32:55 +02:00
Eideren 051626e290
[Physics] Change simulation substeping behavior (#1849) 2023-09-30 13:12:02 +02:00
Eideren dab0b6c96c
[Core] Fix StringComparison across the project (#1846) 2023-09-30 12:29:56 +02:00
Eideren 9101754650
[Physics] Pre and Post simulation tick event (#1831) 2023-09-25 14:02:40 +02:00
Eideren 9124336b94
[Graphics] Dx11: Fix ResizeBuffer when swap chain is under flip model and changing format (#1814) 2023-09-22 13:18:43 +02:00
Marian Dziubiak 6d3a7abd80
[Profiler] Refactor Profiler and submit metrics to .NET Diagnostics API (#1774) 2023-09-18 00:33:06 +02:00
Basewq 79344b8c50
[Graphics] Fix expected image size for OpenGL textures. (#1786)
Co-authored-by: Basewq <Basewq@users.noreply.github.com>
2023-09-18 00:27:10 +02:00
Tebjan Halm fb60fe04c3
[Shader] Adds sRGB and Gamma conversions to ColorUtility.sdsl (#1744)
Co-authored-by: tebjan <tebjan@gmail.com>
2023-09-17 20:19:20 +02:00
arturo 6c5b7c8d65 Fix DX11 shared textures
Right now creating a texture from a native texture with D3D11_RESOURCE_MISC_SHARED_NTHANDLE  will fail unless it is also D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX. This combination is recomended but not mandatory acording to the specification: https://learn.microsoft.com/en-us/windows/win32/api/d3d11/ne-d3d11-d3d11_resource_misc_flag
2023-09-17 19:32:54 +02:00
Jakub Ławreszuk 7b84fed673
Change Assimp to Silk.NET.Assimp implementation (#1719)
* Changed Assimp binding to Silk.Net.Assimp

* Converted Stride.Importer.Assimp to a C# library and changed assimp binding to Silk.Net.Assimp
* Converted Stride.Importer.Common to a C# library as this did not contain any native code
2023-08-19 01:02:29 +02:00
Mario Guerra f33a0eeda7
[Rendering] Fix missing Utilities.CopyMemory for other graphics APIs (#1697)
* Fix Direct3D 12 uses of Utilities.CopyMemory

* Also some minor cleanup

* Fix OpenGL uses of Utilities.CopyMemory

* Also some minor cleanup

* Fix Vulkan uses of Utilities.CopyMemory

* Also some minor cleanup

* Add a section to Stride.props where users can set design-time graphics API

* Fix more usages of CopyMemory and ClearMemory

* Also remove some helper methods that copied memory in favor of new built-in ones

* Comment modifications based on feedback

* Fix a deserialization issue introduced in commit 189e96980e
2023-07-09 19:51:25 +02:00
tamamutu 2a12e7428d
[Rendering] Vulkan Fullscreen Fix (#1709)
* Enabling swapchain recreation in SwapChainGraphicsPresenter.Vulkan.cs so that changes in resolution at runtime don't stop the game from rendering to the screen.
2023-07-09 15:43:55 +02:00
Jakub Ławreszuk 9d6d379f6e
Fix edge case collision behavior with BoxColliderShape by creating Box2D shape when is2D (#1708) 2023-07-08 22:33:26 +02:00
Jakub Ławreszuk 64b64d1ae0
Remove native code from stride.core project (#1688)
* Remove native code from stride.core project
2023-06-20 14:33:19 +02:00
IXLLEGACYIXL 8f9addc2fd
[Docs] Fix xml docs (#1683) 2023-06-10 19:26:21 +02:00
IXLLEGACYIXL 4afc0e3d2a ParticleSorter is now ParticleList from previous interface renaming 2023-06-10 03:01:59 +02:00
IXLLEGACYIXL 680af70370 wrong param name, its still a weird name as it was previous a sorter i assume. 2023-06-10 03:00:50 +02:00
IXLLEGACYIXL 6470abc17c fix vertex comment 2023-06-10 02:59:19 +02:00
IXLLEGACYIXL 2b4818c00e fix resourcegrouplayout reference 2023-06-10 02:57:45 +02:00
IXLLEGACYIXL 2bf9c90a2b fix wrong reference 2023-06-10 02:52:48 +02:00