-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Force discrete GPU for both AMD and Nvidia * Profiling is a thing again, GPU profiling to come * Fix for CI * Updated workflow * Profiling changes * Fixed transform buttons not resetting the rotation/scale * Style update * Added hot reloading of scripting app assembly * Added new scene menu option * Added several internal calls for mono and a new testing project * Working on project system * Working on asset manager * Asset and UI rework * Remove binaries from git * Workflow update
- Loading branch information
Showing
116 changed files
with
2,735 additions
and
751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,12 @@ on: | |
branches: [ develop ] | ||
|
||
jobs: | ||
debug: | ||
runs-on: [ self-hosted, windows ] | ||
name: "Build and Test (Debug)" | ||
|
||
config-matrix: | ||
runs-on: [ windows-latest ] | ||
name: "Build and Test" | ||
strategy: | ||
matrix: | ||
config: [ Debug, Release, Dist ] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -26,86 +28,32 @@ jobs: | |
|
||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
|
||
- name: Run Premake | ||
run: .\Vendor\Premake\Bin\Premake5.exe vs2022 | ||
|
||
- name: "Build" | ||
run: msbuild /m /p:Configuration=Debug EppoEngine.sln | ||
|
||
- name: "Test" | ||
run: .\Bin\Debug-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml" | ||
|
||
- name: "Save test output" | ||
uses: actions/upload-artifact@v3 | ||
- name: Cache VulkanSDK | ||
id: cache-vulkansdk | ||
uses: actions/cache@v4 | ||
with: | ||
name: TestOutput-Debug | ||
path: ${{env.RUNNER_TEMP}}/testoutput.xml | ||
|
||
release: | ||
runs-on: [ self-hosted, windows ] | ||
name: "Build and Test (Release)" | ||
path: "C:/VulkanSDK" | ||
key: vulkansdk | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Premake | ||
uses: abel0b/[email protected] | ||
with: | ||
version: "5.0.0-beta2" | ||
path: Vendor/Premake/Bin | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
|
||
- name: Run Premake | ||
run: .\Vendor\Premake\Bin\Premake5.exe vs2022 | ||
|
||
- name: "Build" | ||
run: msbuild /m /p:Configuration=Release EppoEngine.sln | ||
|
||
- name: "Test" | ||
run: .\Bin\Release-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml" | ||
|
||
- name: "Save test output" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: TestOutput-Release | ||
path: ${{env.RUNNER_TEMP}}/testoutput.xml | ||
|
||
dist: | ||
runs-on: [ self-hosted, windows ] | ||
name: "Build and Test (Dist)" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Premake | ||
uses: abel0b/[email protected] | ||
with: | ||
version: "5.0.0-beta2" | ||
path: Vendor/Premake/Bin | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
- name: Download and Install VulkanSDK | ||
if: steps.cache-vulkansdk.outputs.cache-hit != 'true' | ||
shell: pwsh | ||
run: | | ||
Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/1.3.275.0/windows/VulkanSDK-1.3.275.0-Installer.exe -OutFile VulkanSDK.exe | ||
.\VulkanSDK.exe --accept-licenses --default-answer --confirm-command install com.lunarg.vulkan.debug | ||
- name: Run Premake | ||
run: .\Vendor\Premake\Bin\Premake5.exe vs2022 | ||
|
||
- name: "Build" | ||
run: msbuild /m /p:Configuration=Dist EppoEngine.sln | ||
run: msbuild /m /p:Configuration=${{ matrix.config }} EppoEngine.sln | ||
|
||
- name: "Test" | ||
run: .\Bin\Dist-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml" | ||
run: .\Bin\${{ matrix.config }}-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml" | ||
|
||
- name: "Save test output" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: TestOutput-Dist | ||
name: TestOutput-${{ matrix.config }} | ||
path: ${{env.RUNNER_TEMP}}/testoutput.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ndbox/Assets/Scripts/Intermediates/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// <autogenerated /> | ||
using System; | ||
using System.Reflection; | ||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] |
Binary file added
BIN
+1.08 KB
...Sandbox/Assets/Scripts/Intermediates/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
Binary file added
BIN
+4 KB
EppoEditor/Projects/Sandbox/Assets/Scripts/Intermediates/Debug/Sandbox.dll
Binary file not shown.
Binary file added
BIN
+1.69 KB
EppoEditor/Projects/Sandbox/Assets/Scripts/Intermediates/Debug/Sandbox.pdb
Binary file not shown.
50 changes: 50 additions & 0 deletions
50
EppoEditor/Projects/Sandbox/Assets/Scripts/Source/MapController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using Eppo; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Sandbox | ||
{ | ||
public class MapController : Entity | ||
{ | ||
private List<Entity> m_Tiles = new List<Entity>(); | ||
|
||
void OnCreate() | ||
{ | ||
List<int> rowSize = new List<int>(){ 4, 5, 6, 7, 6, 5, 4 }; | ||
|
||
float hexSize = 1.05f; | ||
float width = (float)(Math.Sqrt(3) * hexSize); | ||
float height = 1.5f * hexSize; | ||
|
||
float totalHeight = (rowSize.Count - 1) * height; | ||
|
||
for (int r = 0; r < rowSize.Count; ++r) | ||
{ | ||
int numCols = rowSize[r]; | ||
float xOffset = -(numCols - 1) * width / 2.0f; | ||
float z = r * height - totalHeight / 2.0f; | ||
|
||
for (int q = 0; q < numCols; ++q) | ||
{ | ||
float x = xOffset + q * width; | ||
float y = 0.0f; | ||
|
||
Entity entity = CreateNewEntity("Tile"); | ||
|
||
MeshComponent mesh = entity.AddComponent<MeshComponent>(); | ||
mesh.SetMesh("Resources/Meshes/hexagon.fbx"); | ||
|
||
TransformComponent transform = entity.GetComponent<TransformComponent>(); | ||
transform.Translation = new Vector3(x, z, y); | ||
|
||
m_Tiles.Add(entity); | ||
} | ||
} | ||
} | ||
|
||
void OnUpdate(float timestep) | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
EppoEditor/Projects/Sandbox/Assets/Scripts/Source/Player.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Eppo; | ||
|
||
namespace Sandbox | ||
{ | ||
public class Player : Entity | ||
{ | ||
void OnCreate() | ||
{ | ||
//m_MeshComponent = GetComponent<MeshComponent>(); | ||
//m_RigidBodyComponent = GetComponent<RigidBodyComponent>(); | ||
} | ||
|
||
void OnUpdate(float timestep) | ||
{ | ||
|
||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
EppoEditor/Projects/Sandbox/Assets/Scripts/Win-GenProjects.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
call ..\..\..\..\..\Vendor\Premake\Bin\premake5.exe vs2022 | ||
PAUSE |
2 changes: 1 addition & 1 deletion
2
...itor/Projects/Assets/Scripts/premake5.lua → ...jects/Sandbox/Assets/Scripts/premake5.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
EPPO_DIR = "../../../../" | ||
EPPO_DIR = "../../../../../" | ||
|
||
workspace "Sandbox" | ||
architecture "x86_64" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Project: | ||
Name: Sandbox | ||
StartScene: Scenes/Test.epscene |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- AssetHandle: 2444408785892150241 | ||
Type: Mesh | ||
Filepath: Meshes\untitled.fbx | ||
- AssetHandle: 2502917179482176098 | ||
Type: Scene | ||
Filepath: Scenes\Test.epscene |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.