Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/451 gpu instancing #545

Merged
merged 146 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from 120 commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
793575d
SurfaceEffectInstanced: first occurrence
RedImp1470 Mar 3, 2022
a605c74
Removed PlatformId from VertexAtributes - must be declared as uniform…
RedImp1470 Mar 4, 2022
ac7832d
CreateShaderProgram uses pattern matching
RedImp1470 Mar 4, 2022
8bac13f
SetShaderParamT uses type test pattern matching
RedImp1470 Mar 4, 2022
16204e4
RenderContext: removed try catch blocks from Render methods
RedImp1470 Mar 4, 2022
1893dc9
Effect management: naming, housekeeping, removed ShaderParamInfo
RedImp1470 Mar 8, 2022
ef2b2bd
SetShaderParam uses in keyword
RedImp1470 Mar 8, 2022
97f3510
Shared.ShaderHandle renamed
RedImp1470 Mar 9, 2022
e2f168d
Effect management: housekeeping
RedImp1470 Mar 10, 2022
beddff1
Removed FxPassDeclaration
RedImp1470 Mar 10, 2022
3bda1ec
Deferred Blazor is working again
RedImp1470 Mar 15, 2022
f471933
Effect management: uniform values are internally handled via delegates
RedImp1470 Mar 22, 2022
600b0b6
Removed RenderStateSet stack from SceneRenderers
RedImp1470 Mar 23, 2022
a5294bd
RCI Desktop: check framebuffer status in Debug build only
RedImp1470 Mar 23, 2022
ff61b00
RCI Desktop: Removed BindBuffer and VertexAttribPointer calls from Re…
RedImp1470 Mar 23, 2022
ea21752
RCI Desktop: Removed BindTexture calls from SetRenderTarget
RedImp1470 Mar 23, 2022
4e30841
RCI Desktop: avoid unneccessary BindTexture and BindFramebuffer calls
RedImp1470 Mar 24, 2022
e68a6e2
Forward lights are working gain
RedImp1470 Mar 24, 2022
66dad4f
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Mar 25, 2022
2f2e1b1
SceneRenderers: Camera.GetProjection based on tex widht / height if g…
RedImp1470 Mar 25, 2022
a69944e
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Mar 28, 2022
1d71374
RenderContextOnly is working again
RedImp1470 Mar 28, 2022
c1ef562
Desktop: uses OpenGL Core 4.6 in shaders
RedImp1470 Mar 28, 2022
4bdc6ee
RCI Desktop: DSA for CreateTexture(ITexture)
RedImp1470 Mar 28, 2022
7d7b6c7
RCI Desktop: DSA for CreateTexture(IWritableTexture)
RedImp1470 Mar 28, 2022
ab46258
RCI Desktop: DSA for CreateTexture(IWritableTextureArray)
RedImp1470 Mar 28, 2022
c4e8a1e
RCI Desktop: DSA for CreateTexture(IWritableCubeMap)
RedImp1470 Mar 28, 2022
a4f88a0
RCI Desktop: removed GL.BindTexture calls
RedImp1470 Mar 29, 2022
5968653
RCI Desktop: DSA for SetRenderTarget
RedImp1470 Mar 29, 2022
336461d
Fixed ComputeShader/StorageBuffer
RedImp1470 Mar 29, 2022
d04c0cb
RCI Desktop: bind texture to unit only if necessary (no check between…
RedImp1470 Mar 30, 2022
4a3879d
Cleanup
RedImp1470 Mar 30, 2022
4bb3af4
RCI Desktop: DSA for buffers
RedImp1470 Mar 31, 2022
e03da19
PointCloudOitree2: removed RC calls
RedImp1470 Apr 1, 2022
2bf3ad6
PointCloud example: fixed invalid operation exception
RedImp1470 Apr 1, 2022
410660a
RCI Desktop: GL.GetNamedBufferParameter calls are debug-only
RedImp1470 Apr 1, 2022
486ee8c
PointCloudPotree2: removed RC calls
RedImp1470 Apr 1, 2022
2901743
PointCloud example: fixed invalid operation exception
RedImp1470 Apr 1, 2022
b76e64d
RCI Desktop: GL.GetNamedBufferParameter calls are debug-only
RedImp1470 Apr 1, 2022
2547423
Merge remote-tracking branch 'origin/feature/451-gpu-instancing' into…
RedImp1470 Apr 4, 2022
e0804a6
RenderContext SetShaderParamT: added null check
RedImp1470 Apr 5, 2022
4028c6b
SurfaceEffects have no need to declare global uniforms any longer
RedImp1470 Apr 8, 2022
f6f48b4
InstanceData inherits SceneComponent
RedImp1470 Apr 8, 2022
bc63dcb
Removed all FxParamDeclarations that declared global ("FUSEE_") uniforms
RedImp1470 Apr 8, 2022
c0303b9
Fixed buffer resizing behavior
RedImp1470 Apr 11, 2022
40f1cc6
Cleanup
RedImp1470 Apr 11, 2022
b8af5d2
Added RenderFlags
RedImp1470 Apr 12, 2022
9ee3b74
Cleanup
RedImp1470 Apr 12, 2022
1561d0e
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Apr 12, 2022
9b97c9d
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Apr 12, 2022
63445a9
WIP InstancingData component
RedImp1470 Apr 14, 2022
0ebf872
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 May 9, 2022
4600278
First working version of instanced rendering
RedImp1470 May 11, 2022
8e44275
First working version of instanced point cloud rendering
RedImp1470 May 13, 2022
8bd54d5
Fixed instanced rendering buffer binding
RedImp1470 May 13, 2022
1505cbd
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 May 13, 2022
c2df613
Fixed Tangent / Bitangent buffer size
RedImp1470 May 16, 2022
5c30781
RCI Android: fixed IRenderContextImp impl
RedImp1470 May 16, 2022
72ab634
Merge remote-tracking branch 'origin/hotfix/492-FixInputMouseVel' int…
RedImp1470 May 16, 2022
2503a9a
Deferred: moved all IsKeyDown calls into the Update loop
RedImp1470 May 16, 2022
256c1cb
Added point cloud instancing shaders
RedImp1470 May 18, 2022
4934309
PointCloudPotree2: Disabled SSAO and FXAA
RedImp1470 May 18, 2022
af7a7e7
vViewPos to vec4
RedImp1470 May 19, 2022
e116037
Fixed instnaced point scaling
RedImp1470 May 19, 2022
30674bd
Automatic code cleanup
RedImp1470 May 19, 2022
0788486
SurfaceEffectPointCloud: fixed fov
RedImp1470 May 19, 2022
eef5e91
PointSize: fixed world size is working for instanced rendering
RedImp1470 May 20, 2022
d1534af
PointCloudPotree2: renders deferred
RedImp1470 May 30, 2022
26114cc
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jun 1, 2022
78dbf7b
Housekeeping
RedImp1470 Jun 3, 2022
999e96f
Generalized PointCloudDataHandler
RedImp1470 Jun 3, 2022
9c145e0
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jun 3, 2022
37821d6
Housekeeping
RedImp1470 Jun 7, 2022
317455a
Blazor: added InstanceDataImp
RedImp1470 Jun 7, 2022
89c9288
Blazor: Deferred example is working again, instance rendering wip imp
RedImp1470 Jun 8, 2022
638f5c9
RCI Android: cleanup
RedImp1470 Jun 8, 2022
8d93443
Cleanup & Comments
RedImp1470 Jun 9, 2022
d105193
Fixed typos
RedImp1470 Jun 9, 2022
1dc71ac
Blazor WebGL: added BufferData overloads for float, double, uint & us…
RedImp1470 Jun 9, 2022
6b3756c
RCI Android: added DisableVertexAttribArray for InstanceModelMat
RedImp1470 Jun 10, 2022
fcf3e90
SceneRenderers: set CurrentInstanceData to null after _rc.Render
RedImp1470 Jun 10, 2022
817ff39
InstanceData: can dynamically change its property values
RedImp1470 Jun 10, 2022
f68b339
Blazor/WebGL: added BufferSubData methods
RedImp1470 Jun 15, 2022
a305950
SceneRendererDeferred: deleted RenderStateSet Copy
RedImp1470 Jun 15, 2022
91dc364
Rendering to multiple viewports works as expected
RedImp1470 Jun 17, 2022
bd4295b
Reset Simple
RedImp1470 Jun 17, 2022
116b195
PointCloudCompnent: added Camera property
RedImp1470 Jun 20, 2022
9709f83
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jun 22, 2022
51867cb
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jun 22, 2022
ea743fb
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jun 23, 2022
3593fef
Fixed merge errors
RedImp1470 Jun 23, 2022
cd8a9a1
RCI Desktop: DSA fot multisample texture methods
RedImp1470 Jun 23, 2022
5f114bc
Renamed namespace Fusee.ImGuiDesktop to Fusee.ImGuiImp.Desktop
RedImp1470 Jun 23, 2022
9d115f9
ImGuiController & FuseeControlToTexture: using DSA
RedImp1470 Jun 23, 2022
83385cf
Fixed a few warnings
RedImp1470 Jun 23, 2022
f3f9b62
SceneRendererForward: remove duplicate clear call
RedImp1470 Jun 23, 2022
cfad338
"Fixed" ImGui
wrestledBearOnce Jun 23, 2022
57a145a
Use _rc.* instead of GL.* where possible
wrestledBearOnce Jun 23, 2022
71401be
Merge remote-tracking branch 'origin/feature/451-gpu-instancing-fixed…
RedImp1470 Jun 24, 2022
8ed5cd7
Blazor TextureHandle: renamed TexHandle to TexId
RedImp1470 Jun 24, 2022
9e99b15
RCI Desktop: added DepthRenderBufferHandle assignment
RedImp1470 Jun 24, 2022
8765b4a
RCI Blazor: removed clear calls in SetRenderTarget
RedImp1470 Jun 24, 2022
b992f0a
RCI Blazor: merged SetRenderTarget(IWritableTexture tex ...) and SetR…
RedImp1470 Jun 24, 2022
3e21eb8
RCI Blazor: added DepthRenderBufferHandle assignment
RedImp1470 Jun 24, 2022
b0157d3
Removed Reference to F.E.Gui from Android projects
RedImp1470 Jun 24, 2022
f3017b7
Deferred Example: replaced DeltaTime with DeltaTimeUpdate where needed
RedImp1470 Jun 24, 2022
40dd5dd
Automatic code cleanup
RedImp1470 Jun 24, 2022
0f8f076
Removed unused references
RedImp1470 Jun 24, 2022
7d70339
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jul 1, 2022
f4db08a
RCI Desktop: removed IsMultithreaded duplicate
RedImp1470 Jul 1, 2022
ff2d324
PointCloudPotree2: back to a single viewport
RedImp1470 Jul 1, 2022
f9bf693
Linting
RedImp1470 Jul 1, 2022
3584743
Merge remote-tracking branch 'origin/develop' into feature/451-gpu-in…
RedImp1470 Jul 1, 2022
b526a3a
Fixed merge errors
RedImp1470 Jul 1, 2022
f6cd5ca
Effect: SetFxParam is generic again
RedImp1470 Jul 1, 2022
e53814b
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jul 1, 2022
db5429d
Fixed merge error
RedImp1470 Jul 1, 2022
367d412
Added RenderMode enum for point clouds
RedImp1470 Jul 1, 2022
1189b12
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jul 1, 2022
ad64ae0
Fixed merge errors
RedImp1470 Jul 1, 2022
c59cbeb
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jul 1, 2022
6c06fe0
F.Tests.Render.Desktop: disabled AdvancedUI
RedImp1470 Jul 5, 2022
fa2a33a
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jul 7, 2022
301cfac
Tests.Render.Desktop: enabled Deferred example
RedImp1470 Jul 7, 2022
dcf38c1
Added PlatformId.Mesa
RedImp1470 Jul 7, 2022
3120065
RCI Desktop: added ctor
RedImp1470 Jul 7, 2022
43d373c
Removed platform id from text.frag
RedImp1470 Jul 7, 2022
26e0804
Linting
RedImp1470 Jul 7, 2022
3539d23
Removed TextureHandle from WritableArrayTexture and Writable Cubemap …
RedImp1470 Jul 8, 2022
e235960
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jul 8, 2022
3562ed9
RCI Desktop: fixed TextureHandle id name
RedImp1470 Jul 8, 2022
0dc1bfa
Revert removing TextureHandle from WritableTextures
RedImp1470 Jul 8, 2022
d978b99
Using the correct handles for WritableMultisampleTexture in the Textu…
RedImp1470 Jul 8, 2022
9fab3e0
Added comments
RedImp1470 Jul 8, 2022
175aefb
ExposedTexture: Removed unused usings
RedImp1470 Jul 8, 2022
5c7827f
Moved IExposedTexture to its own file
RedImp1470 Jul 8, 2022
a55f386
Cleanup
RedImp1470 Jul 8, 2022
69f3328
Removed reference to RC from WritableMultisampleTexrture
RedImp1470 Jul 8, 2022
1613896
Fixed asset path for pointcloud example
ASPePeX Jul 11, 2022
39789a4
RCI: added GL.PixelStore(UnpackAlignment, val)
RedImp1470 Jul 11, 2022
95720d1
PointCloudPotree2: reenabled ui
RedImp1470 Jul 11, 2022
7414032
Moved blt of Multisample texture to SceneRenderer PerCamRender() and …
wrestledBearOnce Jul 11, 2022
3117803
Merge pull request #556 from FUSEEProjectTeam/feature/555-WritableMut…
wrestledBearOnce Jul 11, 2022
2ce44c8
Updated render test reference images
ASPePeX Jul 11, 2022
6016b0a
Linting
ASPePeX Jul 11, 2022
53af0e1
Merge branch 'develop' into feature/451-gpu-instancing
RedImp1470 Jul 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@
<Project>{1228EB3F-8BCC-453F-8A2E-D9246495A118}</Project>
<Name>Fusee.Engine.Core</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\GUI\Fusee.Engine.Gui.csproj">
<Project>{26808b4a-9f15-47f0-b147-e744241b79d2}</Project>
<Name>Fusee.Engine.Gui</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Android\Fusee.Engine.Imp.Graphics.Android.csproj">
<Project>{B3CE4F39-FCC4-4388-8130-9D0B9D65D034}</Project>
<Name>Fusee.Engine.Imp.Graphics.Android</Name>
Expand Down
1 change: 0 additions & 1 deletion Examples/Complete/AdvancedUI/Core/AdvancedUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Fusee.Engine.Core.Effects;
using Fusee.Engine.Core.Primitives;
using Fusee.Engine.Core.Scene;
using Fusee.Engine.Core.ShaderShards;
using Fusee.Engine.Gui;
using Fusee.Math.Core;
using Fusee.Xene;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@
<Project>{1228EB3F-8BCC-453F-8A2E-D9246495A118}</Project>
<Name>Fusee.Engine.Core</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\GUI\Fusee.Engine.Gui.csproj">
<Project>{26808b4a-9f15-47f0-b147-e744241b79d2}</Project>
<Name>Fusee.Engine.Gui</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Android\Fusee.Engine.Imp.Graphics.Android.csproj">
<Project>{B3CE4F39-FCC4-4388-8130-9D0B9D65D034}</Project>
<Name>Fusee.Engine.Imp.Graphics.Android</Name>
Expand Down
23 changes: 10 additions & 13 deletions Examples/Complete/ComputeFractal/Core/ComputeFractal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ComputeFractal : RenderCanvas
{
private readonly Plane _plane = new();
private WritableTexture RWTexture;
private ComputeShader _computeShader;
private ComputeEffect _computeShader;
private ShaderEffect _renderEffect;
private bool _move;
private bool _inputChange;
Expand Down Expand Up @@ -65,7 +65,7 @@ public override void Init()
_colorData[i] += new float4(Sawtooth(i * 4, 256) / 256, 0, 0, 1);
i++;
}
_computeShader = new ComputeShader(
_computeShader = new ComputeEffect(
shaderCode: AssetStorage.Get<string>("MandelbrotFractal.comp"),
effectParameters: new IFxParamDeclaration[]
{
Expand All @@ -76,20 +76,17 @@ public override void Init()
});

_renderEffect = new ShaderEffect(
new FxPassDeclaration
{
VS = AssetStorage.Get<string>("RenderTexToScreen.vert"),
PS = AssetStorage.Get<string>("RenderTexToScreen.frag"),
StateSet = new RenderStateSet
{
AlphaBlendEnable = false,
ZEnable = true,
}
},
new IFxParamDeclaration[]
{
new FxParamDeclaration<WritableTexture> { Name = "srcTex", Value = RWTexture}
});
},
new RenderStateSet
{
AlphaBlendEnable = false,
ZEnable = true,
},
AssetStorage.Get<string>("RenderTexToScreen.vert"),
AssetStorage.Get<string>("RenderTexToScreen.frag"));

RC.SetEffect(_computeShader);
_rect.SetData(_rectData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@
<Project>{1228EB3F-8BCC-453F-8A2E-D9246495A118}</Project>
<Name>Fusee.Engine.Core</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\GUI\Fusee.Engine.Gui.csproj">
<Project>{26808b4a-9f15-47f0-b147-e744241b79d2}</Project>
<Name>Fusee.Engine.Gui</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Android\Fusee.Engine.Imp.Graphics.Android.csproj">
<Project>{B3CE4F39-FCC4-4388-8130-9D0B9D65D034}</Project>
<Name>Fusee.Engine.Imp.Graphics.Android</Name>
Expand Down
9 changes: 5 additions & 4 deletions Examples/Complete/Deferred/Core/Deferred.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ public override void Update()
if (Mouse.LeftButton)
{
_keys = false;
_angleVelHorz = -RotationSpeed * Mouse.XVel * DeltaTime * 0.0005f;
_angleVelVert = -RotationSpeed * Mouse.YVel * DeltaTime * 0.0005f;
_angleVelHorz = -RotationSpeed * Mouse.XVel * DeltaTimeUpdate * 0.0005f;
_angleVelVert = -RotationSpeed * Mouse.YVel * DeltaTimeUpdate * 0.0005f;
}
else if (Touch != null && Touch.GetTouchActive(TouchPoints.Touchpoint_0))
{
_keys = false;
var touchVel = Touch.GetVelocity(TouchPoints.Touchpoint_0);
_angleVelHorz = -RotationSpeed * touchVel.x * DeltaTime * 0.0005f;
_angleVelVert = -RotationSpeed * touchVel.y * DeltaTime * 0.0005f;
_angleVelHorz = -RotationSpeed * touchVel.x * DeltaTimeUpdate * 0.0005f;
_angleVelVert = -RotationSpeed * touchVel.y * DeltaTimeUpdate * 0.0005f;
}
else
{
Expand Down Expand Up @@ -219,6 +219,7 @@ public override void Update()
// RenderAFrame is called once a frame
public override void RenderAFrame()
{
//Diagnostics.Warn(FramesPerSecond);
//_sunTransform.RotateAround(new float3(0, 0, 0), new float3(M.DegreesToRadians(0.5f) * DeltaTime * 50, 0 ,0));

var deg = (M.RadiansToDegrees(_sunTransform.Rotation.x)) - 90;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@
<Project>{1228EB3F-8BCC-453F-8A2E-D9246495A118}</Project>
<Name>Fusee.Engine.Core</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\GUI\Fusee.Engine.Gui.csproj">
<Project>{26808b4a-9f15-47f0-b147-e744241b79d2}</Project>
<Name>Fusee.Engine.Gui</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Android\Fusee.Engine.Imp.Graphics.Android.csproj">
<Project>{B3CE4F39-FCC4-4388-8130-9D0B9D65D034}</Project>
<Name>Fusee.Engine.Imp.Graphics.Android</Name>
Expand Down
9 changes: 2 additions & 7 deletions Examples/Complete/ImGui/Desktop/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Fusee.Engine.Common;
using Fusee.Engine.Core;
using Fusee.Engine.Imp.Graphics.Desktop;
using Fusee.ImGuiDesktop;
using Fusee.ImGuiImp.Desktop;
using ImGuiNET;
using System;
using System.IO;
Expand All @@ -15,7 +15,6 @@ namespace Fusee.Examples.FuseeImGui.Desktop
Description = "A very simple example how to use ImGui within a Fusee application.")]
public class Core : RenderCanvas
{

#region StaticBindingVars

private static bool _dockspaceOpen = true;
Expand Down Expand Up @@ -55,7 +54,6 @@ public override async Task InitAsync()
{
Load();
await base.InitAsync();

}

public override void Update()
Expand All @@ -66,7 +64,6 @@ public override void Update()
public override void Resize(ResizeEventArgs e)
{
_fuControl.UpdateOriginalGameWindowDimensions(e.Width, e.Height);

}

public override async void RenderAFrame()
Expand Down Expand Up @@ -135,16 +132,14 @@ public override async void RenderAFrame()

ImGui.Begin("ImageWnd");

var hndl = ((TextureHandle)_imageTexture.TextureHandle).TexHandle;
var hndl = ((TextureHandle)_imageTexture.TextureHandle).TexId;
ImGui.Image(new IntPtr(hndl), new Vector2(_imageTexture.Width, _imageTexture.Height));

ImGui.End();

DrawGUI();
}



internal void DrawGUI()
{
ImGui.Begin("Sidebar");
Expand Down
7 changes: 3 additions & 4 deletions Examples/Complete/ImGui/Desktop/CoreControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Fusee.Engine.Core;
using Fusee.Engine.Core.Effects;
using Fusee.Engine.Core.Scene;
using Fusee.ImGuiImp.Desktop.Templates;
using Fusee.Math.Core;
using System;
using System.Collections.Generic;
Expand All @@ -17,7 +18,7 @@ internal struct SceneElement
public string Value;
}

internal class CoreControl : ImGuiDesktop.Templates.FuseeControlToTexture, IDisposable
internal class CoreControl : FuseeControlToTexture, IDisposable
{
private SceneContainer _rocketScene;
private SceneRendererForward _renderer;
Expand Down Expand Up @@ -175,7 +176,7 @@ protected override ITextureHandle RenderAFrame()
_camPivotTransform.RotationQuaternion = QuaternionF.FromEuler(_angleVert, _angleHorz, 0);
_renderer.Render(_rc);

return _renderTexture.TextureHandle;
return _renderTexture.TextureHandleResult;
}

protected override void Resize(int width, int height)
Expand All @@ -199,8 +200,6 @@ protected virtual void Dispose(bool disposing)
{
_renderTexture.Dispose();
}


disposedValue = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand Down Expand Up @@ -34,7 +34,7 @@
<ItemGroup>
<ProjectReference Include="$(FuseeEngineRoot)\src\Base\Imp\Desktop\Fusee.Base.Imp.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Desktop\Fusee.Engine.Imp.Graphics.Desktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\ImGui\Desktop\Fusee.ImGui.Desktop\Fusee.ImGuiDesktop.csproj" />
<ProjectReference Include="$(FuseeEngineRoot)\src\ImGui\Desktop\Fusee.ImGui.Desktop\Fusee.ImGuiImp.Desktop.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Examples/Complete/ImGui/Desktop/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public static void Main()
var app = new Core();

var icon = AssetStorage.Get<ImageData>("FuseeIconTop32.png");
app.CanvasImplementor = new Fusee.ImGuiDesktop.ImGuiRenderCanvasImp(icon);
app.CanvasImplementor = new Fusee.ImGuiImp.Desktop.ImGuiRenderCanvasImp(icon);
app.ContextImplementor = new Fusee.Engine.Imp.Graphics.Desktop.RenderContextImp(app.CanvasImplementor);
Input.AddDriverImp(new Fusee.ImGuiDesktop.ImGuiInputImp(app.CanvasImplementor));
Input.AddDriverImp(new Fusee.ImGuiImp.Desktop.ImGuiInputImp(app.CanvasImplementor));

app.InitApp();

Expand Down
1 change: 0 additions & 1 deletion Examples/Complete/Labyrinth/Core/Labyrinth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Fusee.Engine.Core.Effects;
using Fusee.Engine.Core.Primitives;
using Fusee.Engine.Core.Scene;
using Fusee.Engine.Core.ShaderShards;
using Fusee.Engine.Gui;
using Fusee.Math.Core;
using Fusee.Xene;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@
<Project>{1228EB3F-8BCC-453F-8A2E-D9246495A118}</Project>
<Name>Fusee.Engine.Core</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\GUI\Fusee.Engine.Gui.csproj">
<Project>{26808b4a-9f15-47f0-b147-e744241b79d2}</Project>
<Name>Fusee.Engine.Gui</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Android\Fusee.Engine.Imp.Graphics.Android.csproj">
<Project>{B3CE4F39-FCC4-4388-8130-9D0B9D65D034}</Project>
<Name>Fusee.Engine.Imp.Graphics.Android</Name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@
<Project>{1228EB3F-8BCC-453F-8A2E-D9246495A118}</Project>
<Name>Fusee.Engine.Core</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\GUI\Fusee.Engine.Gui.csproj">
<Project>{26808b4a-9f15-47f0-b147-e744241b79d2}</Project>
<Name>Fusee.Engine.Gui</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Android\Fusee.Engine.Imp.Graphics.Android.csproj">
<Project>{B3CE4F39-FCC4-4388-8130-9D0B9D65D034}</Project>
<Name>Fusee.Engine.Imp.Graphics.Android</Name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@
<Project>{1228EB3F-8BCC-453F-8A2E-D9246495A118}</Project>
<Name>Fusee.Engine.Core</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\GUI\Fusee.Engine.Gui.csproj">
<Project>{26808b4a-9f15-47f0-b147-e744241b79d2}</Project>
<Name>Fusee.Engine.Gui</Name>
</ProjectReference>
<ProjectReference Include="$(FuseeEngineRoot)\src\Engine\Imp\Graphics\Android\Fusee.Engine.Imp.Graphics.Android.csproj">
<Project>{B3CE4F39-FCC4-4388-8130-9D0B9D65D034}</Project>
<Name>Fusee.Engine.Imp.Graphics.Android</Name>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Complete/Picking/Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected override void OnCreate(Bundle savedInstanceState)
Engine.Core.Input.AddDriverImp(
new Fusee.Engine.Imp.Graphics.Android.RenderCanvasInputDriverImp(app.CanvasImplementor));
// Engine.Core.Input.AddDriverImp(new Fusee.Engine.Imp.Graphics.Android.WindowsTouchInputDriverImp(app.CanvasImplementor));
// Deleayed into rendercanvas imp....app.Run() - SEE DELEGATE ABOVE;
// Delayed into rendercanvas imp....app.Run() - SEE DELEGATE ABOVE;
}
else
{
Expand All @@ -100,7 +100,7 @@ protected override void OnCreate(Bundle savedInstanceState)
/// <summary>
/// Gets the supported OpenGL ES version of device.
/// </summary>
/// <returns>Hieghest supported version of OpenGL ES</returns>
/// <returns> Highest supported version of OpenGL ES</returns>
private long SupportedOpenGLVersion()
{
//based on https://android.googlesource.com/platform/cts/+/master/tests/tests/graphics/src/android/opengl/cts/OpenGlEsVersionTest.java
Expand Down
Loading