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

70 Коммитов

Автор SHA1 Сообщение Дата
Dylan Perks 0f4cce8a6f
Use sensible defaults for depth/stencil (#1991)
* Use sensible defaults for depth/stencil

* Slightly adjust the SDL logic to try and encourage system opinions for -1
2024-04-18 10:21:02 -05:00
dependabot[bot] 8506e6364b
Bump SixLabors.ImageSharp from 2.1.6 to 2.1.7 (#1982)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 20:15:59 -05:00
dependabot[bot] 5c9accb8c4
Bump SixLabors.ImageSharp (#1975)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.6 to 3.1.3.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.6...v3.1.3)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 11:33:19 -06:00
dependabot[bot] 13609a26d0
Bump SixLabors.ImageSharp (#1973)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.6 to 3.1.3.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.6...v3.1.3)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 11:32:34 -06:00
dependabot[bot] d463be4c71
Bump SixLabors.ImageSharp (#1971)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.6 to 3.1.3.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.6...v3.1.3)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 11:32:03 -06:00
dependabot[bot] c27a03e80c
Bump SixLabors.ImageSharp (#1970)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.6 to 3.1.3.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.6...v3.1.3)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 11:31:45 -06:00
dependabot[bot] 03f2c64966
Bump SixLabors.ImageSharp (#1976)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.6 to 3.1.3.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.6...v3.1.3)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 11:31:28 -06:00
John Gietzen b01d65ff97
Added D3D 1.2 - Texture tutorial (#1966)
* Added basic Texture tutorial (using System.Drawing.Bitmap as an example).

* Added missing package reference.

* Switch to ImageSharp.

* Remove unused using.
2024-03-02 19:08:15 -06:00
John Gietzen 3deba64080
Update Viewport on resize in all of the GL tutorials. (#1965)
* Update Viewport on resize in all of the GL tutorials.

* Update camera uniforms when updating viewport.

* Hook resize in Tutorial 3.2 (missed).

* Fix Tutorial 4.1 model file missing exception.
2024-03-02 03:38:27 +00:00
LonerDo b7e9eb890b
Add OpenCL Demo (#1721)
* add opencl demo

* rename and modify

* add project to sln
2023-10-14 05:25:13 +00:00
dependabot[bot] c44c74962f
Bump SixLabors.ImageSharp from 2.1.5 to 2.1.6 (#1639)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.5...v2.1.6)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 13:00:52 -05:00
dependabot[bot] fb5851e23e
Bump SixLabors.ImageSharp from 2.1.4 to 2.1.5 (#1616)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.4 to 2.1.5.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.4...v2.1.5)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-18 17:10:12 -05:00
Skye Barnes 9091c7b820
Add a texture tutorial before the abstractions tutorial (#1373)
* Started texture sample

* created textures project

* add textures project to sln

* removed existing texture tutorial

* renamed abstractions project from 1.3 to 1.4

* implemented quad tutorial code as a base for textures

* added texture tutorial

* updated title i forgot to update

* added textures to abstractions tutorial

* removed temporary garbage from the project file

* found the solution to the broken solution

* Apply suggestions from code review

Co-authored-by: ThomasMiz <32400648+ThomasMiz@users.noreply.github.com>

* texture.cs fixes

* added a comment about mip level range

* added comment about uniform initialization

---------

Co-authored-by: ThomasMiz <32400648+ThomasMiz@users.noreply.github.com>
2023-05-31 18:15:03 +00:00
Artromskiy f2fd21b393
Assimp tutorial cleanup (#1452)
* start of updating assimp usage in tutorial 4.1

* wip

* Fix of texcoord
2023-05-28 16:06:33 +01:00
Beyley Thomas 1c59ebe24a
First class DXVK support (#1201) 2023-03-31 20:51:53 -07:00
dependabot[bot] 4ed5159c70
Bump SixLabors.ImageSharp from 2.1.3 to 2.1.4 (#1374)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v2.1.3...v2.1.4)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 21:34:13 +01:00
Beyley Thomas 26a88d9a80
Make examples dispose windows (#1355)
* Load Assimp from source, rather than nuget in GL tut 4.1

* Make all OpenGL examples dispose their IWindow objects properly

* Make all Direct3D11 examples dispose their IWindow objects properly
2023-03-28 20:08:08 +01:00
Zoey McCullough 1084fa66ce
Added a tutorial for model loading based on the model loading tutorial from LearnOpenGL (#1161)
* Starting work to add the model loading tutorial from LearnOpenGL

* Checking in model loading tutorial project along with a model file

* Renamed cube.obj to cube.model to get around gitignore

* Added Assimp package to get Assimp native libs to load.

* Updated render loop to fix aspect ratio issue

* Added dispose to model and mesh and removed unused boilerplate

* Apply suggestions from code review

Co-authored-by: ThomasMiz <32400648+ThomasMiz@users.noreply.github.com>

Co-authored-by: Dylan Perks <11160611+Perksey@users.noreply.github.com>
Co-authored-by: ThomasMiz <32400648+ThomasMiz@users.noreply.github.com>
2023-01-20 18:55:33 +00:00
Beyley Thomas 5eedce2344
Bump clangsharp to 15.0.3 (#1148)
* Regenerate with ClangSharp 15.0.3

* Add control descriptor for typemapping native

* Fix most errors in the d3d hello quad

* Fix compilation

* Use explicit zsh: command not found: in
2022-11-17 19:21:28 +00:00
roeyskoe 6d190a51de
Fix incorrect slice start index (#1146) 2022-11-12 13:12:09 +00:00
Beyley Thomas 007d1607bb
WebGPU bindings (#1114)
* Initial Generation

* Update generation to remove Impl suffix

* WebGPUTest: Get API, create instance, get adapter, device, and create shader, plus error handling

* WebGPU: WGPUBindGroupLayout -> BindGroupLayout

* Begin porting https://github.com/gfx-rs/wgpu-native/tree/master/examples/compute

* Almost get compute working

* WGPU extension

* Actually commit the generator.json changes

* Properly support IsDeviceExtensionPresent and TryGetDeviceExtension

* Add WGPU extension to solution

* Add Silk.NET.Windowing.Extensions.WebGPU to create surface from window

* Fix naming of Silk.NET.Windowing.Extensions.WebGPU

* Formatting

* WebGPUTriangle: Get surface

* Add android support to WebGPU windowing extension

* Make WebGPU surface creation take a IView instead of an IWindow

* Create adapter and device

* WebGPUTriangle: Shader creation

* WebGPUTriangle: Create pipeline

* TEMPORARY FIX: make Wgpu.gen.cs *manually* be an extension of the right type
@Perksey help pls

* HACK: manually import namespace, this struct is either in the wrong namespace or in the wrong project

* Get triangle on screen

* Hack to fix missing wgpuGetProcAddress function in wgpu-native

* WebGPUTriangle: Manually free all resources

* Dawn extension, V1

* Make WebGPU extensions generate with the right core name

* Make function pointer wrappers generate with the right namespace

* Implement getting of Dawn extension, and add to solution

* Add beginning of disposal wrapper

* Dont generate double structs and enums

* Dont write duplicate functions

* Remove accidental print statements

* Dont duplicate overloads too

* WebGPU Disposal: Fix disposal wrapper for TextureView

* WebGPU Disposal: Add almost all remaining objects

* WebGPUWindow: Add optional Instance parameter

* Fore matting

* Format WebGPU experiments

* Fix WebGPU compute test
NOTE: this currently only works on wgpu, not Dawn

* Properly generate enum types in fields

* Fix examples to use proper enums

* Make WebGPU surface creation an extension method on IView

* Some formatting in WebGPUTriangle to fix warnings

* WebGPUTriangle: Remove useless string concatenation in warning message

* why

* WebGPUWindow: Move to platform not supported exctepion

* Move WebGPU surface creation to Silk.NET.WebGPU

* Fix class name being wrong in clang backend

* WebGPUSurface: Formatting

* Update Assimp binaries (#1129)

* Update Vulkan Loader binaries (#1128)

* Update GLFW binaries (#1127)

* GlfwWindow: Various fixes
Apply WindowOptions.IsContextControlDisabled/ShouldSwapAutomatically
Dont set context version window hints if theres no API
Dont set OpenGLForwardCompat or OpenGLDebugContext on non-OpenGL
Dont set context profile on non-OpenGL
Use Glfw.DontCare in more places
Some reformatting

* Begin working on textured quad example

* Update ImageSharp from 2.1.0 -> 2.1.3

* texture ON screen

* WebGPUTexturedQuad: Move shader to separate file

* Port CoreRTTest to latest ImageSharp
Does this test even need to exist still???

* Remove unnessesary hack in GlfwWindow
Turns out i read the source wrong

* WebGPUTexturedQuad: 2d projection matrix to keep the quad the same size always

* Move WebGPUTexturedQuad to the lab

* Fix formatting in ProjectWriter

* Move TypeMapper to TryGetValue

* Fix formatting in ClassWriter

* BuildTools: Remove ClassName from Project

* BuildTools: More formatting fixes

* Fix more gneneera hsith

* Make core project check smarter

* WebGPUSurface: Add support for WASM/HTML Canvas surface creation
Now, we dont actually support WASM yet, but this code is here for that time (soon hopefully!)

* Update src/Core/Silk.NET.BuildTools/Cpp/Clang.cs

Co-authored-by: Dylan Perks <11160611+Perksey@users.noreply.github.com>

* Formatting fixes

* i didnt actually save the file (i dont use vscode that much i dont like how it doesnt save automatically)

* Fix generator.cs issues

* Clang: properly set flow for const pointers

* Fix surface creation and update WebGPU examples

* Update src/Core/Silk.NET.BuildTools/Generator.cs

Co-authored-by: Dylan Perks <11160611+Perksey@users.noreply.github.com>

* formatting fix i forgot to commit thanks vscode

* Fix WebGPU compute test

* Make Disposal project follow the rest of the extensions

* Add flag to prevent obsolete enum generation

* TypeMapper: Make TypeMapper native name check more thorough

* Update WebGPU compute sample to latest bindings

* Fix webgpu compute test again

Co-authored-by: silkdotnet <85832961+silkdotnet@users.noreply.github.com>
Co-authored-by: Dylan Perks <11160611+Perksey@users.noreply.github.com>
2022-11-09 19:06:33 +00:00
Dylan Perks b5dda6dd59
DirectX usability improvements (#1010) 2022-09-07 01:59:03 +00:00
Cody Tilkins a352fdb42c
Texture completeness for examples (#974)
* Specified mipmap levels to make a complete texture

* All textures now use the mipmaps it generated
2022-08-02 16:53:25 +01:00
Dylan Perks 260741b027
Shorter enum names everywhere (#948)
Co-authored-by: silkdotnet <85832961+silkdotnet@users.noreply.github.com>
Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com>
2022-06-24 05:29:03 +02:00
Lukáš 77314f01f3
Fixed a mistake in a comment (#956)
"diffuse" changed to "specular" in a comment about binding the specular map
2022-06-16 17:48:04 -03:00
roeyskoe ccb89a61ce
Update tutorials (#885)
* Everything to net6

* More specific project references

* Update imagesharp

* Remove unnecessary reference

* Remove unused usings
2022-04-17 14:53:39 +00:00
Dylan Perks f07a7d8e3f Revert "Bump ImGui.NET from 1.86.0 to 1.87.2"
This reverts commit 28a721ff5d.
2022-02-18 18:55:45 +00:00
dependabot[bot] 28a721ff5d
Bump ImGui.NET from 1.86.0 to 1.87.2
Bumps [ImGui.NET](https://github.com/mellinoe/imgui.net) from 1.86.0 to 1.87.2.
- [Release notes](https://github.com/mellinoe/imgui.net/releases)
- [Commits](https://github.com/mellinoe/imgui.net/commits/v1.87.2)

---
updated-dependencies:
- dependency-name: ImGui.NET
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-17 15:11:23 +00:00
dependabot[bot] f7dcf3743d
Bump SixLabors.ImageSharp from 1.0.1 to 1.0.4 (#786)
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 1.0.1 to 1.0.4.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v1.0.1...v1.0.4)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 18:21:51 +00:00
dependabot[bot] 3974383a93
Bump ImGui.NET from 1.78.0 to 1.86.0 (#773)
Bumps [ImGui.NET](https://github.com/mellinoe/imgui.net) from 1.78.0 to 1.86.0.
- [Release notes](https://github.com/mellinoe/imgui.net/releases)
- [Commits](https://github.com/mellinoe/imgui.net/commits)

---
updated-dependencies:
- dependency-name: ImGui.NET
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-14 10:41:07 +00:00
Azarak f34fd67733
Fixes fNormal in OpenGL Tutorials (#771) 2022-01-13 11:13:00 +00:00
roeyskoe cb5b510c8c
Add Android-OpenGLES samples (#629)
* GLES demos

* Fix duplicate project in sln

* Finishing samples

* new silk logo

* Remove img.Mutate like was done with the other examples

* Only reference actually needed projects

* Some comments

* Sln files are fun

* It would be nice to be able to see this error locally

* running with nuke helps :D

* Visual Studio lied to me
2021-12-04 17:55:24 +00:00
Azhar f9cdd6480e
Fixed a typo in a comment (#701)
"The render funciton" changed to "The render function"
2021-11-22 12:33:47 +00:00
TechPizza 9eadd4464d
Remove image mutate in OpenGL tutorials (#675)
* Stop mutating image in OpenGL tutorials and use inverted UV instead

* Removed unused files
2021-11-06 17:22:57 +00:00
Nathan Alden, Sr 1efd929707
Corrected several incorrect uses of "it's" (#658) 2021-10-24 13:37:02 +02:00
Dylan Perks 69c1e10a5c
Delete ImGui.sln (#618) 2021-09-25 16:50:28 +00:00
Dylan Perks f96e9fc3f7
Promote ImGui lab application to an example (#603) 2021-09-03 20:29:40 +00:00
Zygahedron 0a054f1179
Dispose SpecularMap (#589)
Also fixing a comment to say texture 1 instead of texture 10
2021-08-22 13:00:00 +00:00
Ryuujo Zhang ebf33bcc60
Minor spelling fix in the camera OpenGL tutorial (#489)
nothing but spell modification
2021-05-12 20:15:28 -07:00
Kai Jellinghaus 639a2345ac
Add OpenAL Wave Player Demo (#474) 2021-05-07 20:54:45 +00:00
Toby Lawrance e29d12bf91
Minor example spelling/grammar tweaks & optimizations (#457)
* Removing superfluous Use() calls from SetUniform

Both as good practice and the approach used, these are superfluous and potentially confusing when debugging

* Small Spelling and Grammar adjustments
2021-04-12 19:57:43 +00:00
Dylan Perks e50a6debc0
.NET Foundation Onboarding (#425)
* Update README.md

* Update license headers

* Update everything else including CoC

* Update copyright notices based on guidance

* Create .gitattributes

* Use LF in BuildTools

* Use LF everywhere

* Update contributing guides for WIP -> draft PR
2021-03-18 18:49:58 +00:00
Dylan Perks c5ce321858
This is Silk.NET 2.0 (#392)
* nints and start of Vulkan Function Tables (closes #387)

* Missed a bit

* Add {RESULT}

* Vulkan function tables

* XR function tables and build fixes

* Fix build

How many times am I gonna do this?

* Use Regex for faster Substitution

* Update release notes, update NativePackages

Co-authored-by: Kai Jellinghaus <contact@kaij.tech>
Co-authored-by: Craig Dean <thargy@yahoo.com>
2021-01-02 17:28:08 +00:00
Dylan Perks 9fde9b9c50
Integrate maths (#364)
Co-authored-by: Kai Jellinghaus <contact@kaij.tech>
2020-12-08 21:06:57 +01:00
Dylan Perks d3c0e237cb
Push merging 2020-12-04 15:59:28 +00:00
Dylan Perks 545e4b58fc
Merge branch 'master' into 2.0 2020-12-04 15:40:41 +00:00
Dylan Perks 6a07702c38
[2.0] Silk.NET on Android (#341)
* Progress commit, by no means done or ready

* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

* Push latest progress on iOS and Android

* Update most NuGet packages

* Push latest progress on iOS

* Push latest progress on Android

* Introduce PInvokeOverride

* Add ZeroStart

* Zero start of alloced memory

* Don't inline zeroing

* Remove Debug statement

* Less debug more functioning

* Cast count to int

* Stop forwarding SilkMarshal to Marshal, as this is inconsistent

* Add Allocate/FreeStringPtr use new methods in SilkTouch

* See previous

* Push GLSL ES shaders

* Rename Allocate/FreeString and fix a bug

* A workingish prototype of Silk on Android

* This is Silk.NET on Android

* Update src/Lab/Triangle/Triangle.csproj

Co-authored-by: Kai Jellinghaus <kai.jellinghaus1@gmail.com>

* Update src/Input/Silk.NET.Input.Common/Interfaces/IKeyboard.cs

* Update src/Input/Silk.NET.Input.Common/Interfaces/IKeyboard.cs

Co-authored-by: Kai Jellinghaus <contact@kaij.tech>
Co-authored-by: Kai Jellinghaus <kai.jellinghaus1@gmail.com>
2020-10-27 20:30:58 +00:00
Dylan Perks 19351cd5f6
1.7-2.0 catchup 2020-10-17 19:51:35 +01:00
radobot 9a40f1e8ce
Add more options to editorconfig and normalise all code according to it (#320)
* Make editorconfig more readable

* Add some missing options to editorconfig

* Fix wrong autoguessed editorconfig option to a more appropriate value

* Fix formatting in all nongenerated source files

* Change formatting of explicit type casts to include a space
2020-10-04 15:09:16 +01:00
HurricanKai cde61b6336
AOT Support (#303)
* AOT Support?

* Renames

* Register Windowing platforms with input platforms

* Remove the need to disable first-party loading

* Move WindowOptions defaults to static ctor

* Cleanup

* Style

* Rollback Version changes

* Multi-Target Silk.NET.Core to .Net Core 3.0

* Remove NET5_0 were unneeded

* SdlInput.RegisterWindow -> SdlInput.RegisterPlatform

* Refactor Window options to guarantee valid defaults

* netcoreapp3.0 -> netcoreapp3.1

* Add extra restore to SilkTouch

* Fix SilkTouch targetting issue

* Fix Typo

* Complete netcoreapp3.0 -> netcoreapp3.1

* ass -> asm

* Fix SilkTouch NuGet

* EnableSourceLink -> SilkEnableSourceLink
2020-09-25 14:25:50 +01:00