- Added resource manager
- Shader building now inspects the spir-v for descriptor sets and writes the info to the output binary
This commit is contained in:
parent
cce6e00960
commit
92cf24fe9f
@ -3,6 +3,7 @@
|
|||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/FAudio" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/FAudio" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/ImGui.NET" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/RefreshCS" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/RefreshCS" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/SDL2CS" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/SDL2CS" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/WellspringCS" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/Nerfed.Runtime/Libraries/WellspringCS" vcs="Git" />
|
||||||
|
@ -5,12 +5,15 @@ public class BuildArgs
|
|||||||
[Argument("-build")]
|
[Argument("-build")]
|
||||||
public bool Build { get; set; }
|
public bool Build { get; set; }
|
||||||
|
|
||||||
[Argument("-projectPath")]
|
[Argument("-resourcePath")]
|
||||||
public string ProjectPath { get; set; }
|
public string ResourcePath { get; set; }
|
||||||
|
|
||||||
|
[Argument("-resourceOutPath")]
|
||||||
|
public string ResourceOutPath { get; set; }
|
||||||
|
|
||||||
[Argument("-platform")]
|
[Argument("-platform")]
|
||||||
public string Platform { get; set; }
|
public string Platform { get; set; }
|
||||||
|
|
||||||
[Argument("-content")]
|
[Argument("-resourceFiles")]
|
||||||
public List<string> ContentFiles { get; set; }
|
public List<string> ResourceFiles { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,12 @@ public Builder()
|
|||||||
{
|
{
|
||||||
rawFileImporter = new RawFileImporter();
|
rawFileImporter = new RawFileImporter();
|
||||||
|
|
||||||
ShaderImporter shaderImporter = new ShaderImporter();
|
importers.Add(".vert", new ShaderImporter(ShaderStage.Vertex)); // Vertex shader
|
||||||
importers.Add(".vert", shaderImporter); // Vertex shader
|
importers.Add(".frag", new ShaderImporter(ShaderStage.Fragment)); // Fragment shader
|
||||||
importers.Add(".frag", shaderImporter); // Fragment shader
|
//importers.Add(".tesc", shaderImporter); // Tessellation control shader
|
||||||
importers.Add(".tesc", shaderImporter); // Tessellation control shader
|
//importers.Add(".tese", shaderImporter); // Tessellation evaluation shader
|
||||||
importers.Add(".tese", shaderImporter); // Tessellation evaluation shader
|
//importers.Add(".geom", shaderImporter); // Geometry shader
|
||||||
importers.Add(".geom", shaderImporter); // Geometry shader
|
//importers.Add(".comp", shaderImporter); // Compute shader
|
||||||
importers.Add(".comp", shaderImporter); // Compute shader
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Run(BuildArgs args)
|
public void Run(BuildArgs args)
|
||||||
@ -25,22 +24,19 @@ public void Run(BuildArgs args)
|
|||||||
Stopwatch stopwatch = new Stopwatch();
|
Stopwatch stopwatch = new Stopwatch();
|
||||||
stopwatch.Start();
|
stopwatch.Start();
|
||||||
|
|
||||||
CopyLibs(args.ProjectPath);
|
//CopyLibs(args.ResourcePath);
|
||||||
|
|
||||||
List<string> contentFiles = args.ContentFiles;
|
List<string> contentFiles = args.ResourceFiles;
|
||||||
string absContentPath = $"{args.ProjectPath}/{PathUtil.ContentFolderName}";
|
|
||||||
|
|
||||||
// If no files are provided, build all content.
|
// If no files are provided, build all content.
|
||||||
if (args.ContentFiles == null)
|
if (args.ResourceFiles == null)
|
||||||
{
|
{
|
||||||
contentFiles = [];
|
contentFiles = [];
|
||||||
CollectAssetFiles(absContentPath, absContentPath, ref contentFiles);
|
CollectAssetFiles(args.ResourcePath, args.ResourcePath, ref contentFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contentFiles.Count > 0)
|
if (contentFiles.Count > 0)
|
||||||
{
|
{
|
||||||
string importPath = $"{args.ProjectPath}/{PathUtil.ImportFolderName}";
|
|
||||||
|
|
||||||
ParallelOptions parallelOptions = new ParallelOptions
|
ParallelOptions parallelOptions = new ParallelOptions
|
||||||
{
|
{
|
||||||
MaxDegreeOfParallelism = contentFiles.Count
|
MaxDegreeOfParallelism = contentFiles.Count
|
||||||
@ -50,7 +46,7 @@ public void Run(BuildArgs args)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string inFile = $"{args.ProjectPath}/{PathUtil.ContentFolderName}/{relativeFile}";
|
string inFile = $"{args.ResourcePath}/{relativeFile}";
|
||||||
|
|
||||||
if (!File.Exists(inFile))
|
if (!File.Exists(inFile))
|
||||||
{
|
{
|
||||||
@ -58,7 +54,7 @@ public void Run(BuildArgs args)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string outFile = $"{importPath}/{relativeFile}{PathUtil.ImportedFileExtension}";
|
string outFile = $"{args.ResourceOutPath}/{relativeFile}{PathUtil.ImportedFileExtension}";
|
||||||
|
|
||||||
FileInfo inFileInfo = new FileInfo(inFile);
|
FileInfo inFileInfo = new FileInfo(inFile);
|
||||||
FileInfo outFileInfo = new FileInfo(outFile);
|
FileInfo outFileInfo = new FileInfo(outFile);
|
||||||
@ -97,7 +93,7 @@ public void Run(BuildArgs args)
|
|||||||
Console.WriteLine($"Build content completed in {stopwatch.Elapsed.TotalSeconds:F2} seconds");
|
Console.WriteLine($"Build content completed in {stopwatch.Elapsed.TotalSeconds:F2} seconds");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CopyLibs(string projectPath)
|
/*private void CopyLibs(string projectPath)
|
||||||
{
|
{
|
||||||
string libDir = $"{AppDomain.CurrentDomain.BaseDirectory}/../../Native/";
|
string libDir = $"{AppDomain.CurrentDomain.BaseDirectory}/../../Native/";
|
||||||
if (OperatingSystem.IsWindows())
|
if (OperatingSystem.IsWindows())
|
||||||
@ -123,17 +119,12 @@ private void CopyLibs(string projectPath)
|
|||||||
FileUtil.Copy(srcFileInfo, dstFileInfo);
|
FileUtil.Copy(srcFileInfo, dstFileInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
private void CollectAssetFiles(string assetDir, string dir, ref List<string> files)
|
private void CollectAssetFiles(string assetDir, string dir, ref List<string> files)
|
||||||
{
|
{
|
||||||
foreach (string file in Directory.EnumerateFiles(dir))
|
foreach (string file in Directory.EnumerateFiles(dir))
|
||||||
{
|
{
|
||||||
if (Path.GetExtension(file).Equals(PathUtil.ImportFileExtension, StringComparison.CurrentCultureIgnoreCase))
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
string relativeFile = file.Substring(assetDir.Length, file.Length - assetDir.Length);
|
string relativeFile = file.Substring(assetDir.Length, file.Length - assetDir.Length);
|
||||||
if (relativeFile[0] == Path.DirectorySeparatorChar || relativeFile[0] == Path.AltDirectorySeparatorChar)
|
if (relativeFile[0] == Path.DirectorySeparatorChar || relativeFile[0] == Path.AltDirectorySeparatorChar)
|
||||||
{
|
{
|
||||||
|
@ -1,33 +1,157 @@
|
|||||||
using System.Diagnostics;
|
using Vortice.ShaderCompiler;
|
||||||
|
using Vortice.SPIRV.Reflect;
|
||||||
|
|
||||||
namespace Nerfed.Builder;
|
namespace Nerfed.Builder;
|
||||||
|
|
||||||
|
// Values should match the ShaderStage enum in the runtime.
|
||||||
|
public enum ShaderStage
|
||||||
|
{
|
||||||
|
Vertex,
|
||||||
|
Fragment
|
||||||
|
}
|
||||||
|
|
||||||
|
// Values should match the ShaderFormat enum in the runtime.
|
||||||
|
public enum ShaderFormat
|
||||||
|
{
|
||||||
|
Invalid,
|
||||||
|
SPIRV,
|
||||||
|
HLSL,
|
||||||
|
DXBC,
|
||||||
|
DXIL,
|
||||||
|
MSL,
|
||||||
|
METALLIB,
|
||||||
|
SECRET
|
||||||
|
}
|
||||||
|
|
||||||
public class ShaderImporter : IImporter
|
public class ShaderImporter : IImporter
|
||||||
{
|
{
|
||||||
public void Import(string inFile, string outFile)
|
private readonly ShaderStage shaderStage;
|
||||||
|
|
||||||
|
public ShaderImporter(ShaderStage shaderStage)
|
||||||
{
|
{
|
||||||
using (Process proc = new Process())
|
this.shaderStage = shaderStage;
|
||||||
{
|
|
||||||
string glslc;
|
|
||||||
if (OperatingSystem.IsWindows())
|
|
||||||
{
|
|
||||||
glslc = "Win64/glslc.exe";
|
|
||||||
}
|
|
||||||
else if (OperatingSystem.IsLinux())
|
|
||||||
{
|
|
||||||
glslc = "Linux/glslc";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throw new PlatformNotSupportedException("No shader compiler found for current platform");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
proc.StartInfo.FileName = glslc;
|
public unsafe void Import(string inFile, string outFile)
|
||||||
proc.StartInfo.Arguments = @$"""{inFile}"" -o ""{outFile}"" -c";
|
{
|
||||||
proc.StartInfo.CreateNoWindow = true;
|
string name = Path.GetFileNameWithoutExtension(inFile);
|
||||||
proc.StartInfo.UseShellExecute = false;
|
string nameWithExt = Path.GetFileName(inFile);
|
||||||
proc.Start();
|
|
||||||
proc.WaitForExit();
|
// Compile the shader.
|
||||||
|
Result compileResult;
|
||||||
|
using (Compiler compiler = new Compiler())
|
||||||
|
{
|
||||||
|
string shaderSource = File.ReadAllText(inFile);
|
||||||
|
compileResult = compiler.Compile(shaderSource, nameWithExt, ToShaderKind(shaderStage));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (compileResult.Status != CompilationStatus.Success)
|
||||||
|
{
|
||||||
|
Console.Error.WriteLine($"Failed to compile {nameWithExt}\n{compileResult.ErrorMessage}");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (compileResult.ErrorsCount > 0 || compileResult.WarningsCount > 0)
|
||||||
|
{
|
||||||
|
Console.Error.WriteLine(compileResult.ErrorMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
Span<byte> byteCode = compileResult.GetBytecode();
|
||||||
|
|
||||||
|
// Inspect SPIR-V bytecode for information which the runtime requires to create a shader resource.
|
||||||
|
SpvReflectShaderModule module = new SpvReflectShaderModule();
|
||||||
|
if (!CheckReflectResult(SPIRVReflectApi.spvReflectCreateShaderModule(byteCode, &module), name))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint descriptorSetCount = 0;
|
||||||
|
if (!CheckReflectResult(SPIRVReflectApi.spvReflectEnumerateDescriptorSets(&module, &descriptorSetCount, null), name))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int uniformBufferCount = 0;
|
||||||
|
int storageBufferCount = 0;
|
||||||
|
int storageTextureCount = 0;
|
||||||
|
int samplerCount = 0;
|
||||||
|
|
||||||
|
if (descriptorSetCount > 0)
|
||||||
|
{
|
||||||
|
SpvReflectDescriptorSet* descriptorSets = stackalloc SpvReflectDescriptorSet[(int)descriptorSetCount];
|
||||||
|
if (!CheckReflectResult(
|
||||||
|
SPIRVReflectApi.spvReflectEnumerateDescriptorSets(&module, &descriptorSetCount, &descriptorSets),
|
||||||
|
name
|
||||||
|
))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < descriptorSetCount; i++)
|
||||||
|
{
|
||||||
|
SpvReflectDescriptorSet set = descriptorSets[i];
|
||||||
|
for (int j = 0; j < set.binding_count; j++)
|
||||||
|
{
|
||||||
|
SpvReflectDescriptorBinding binding = *set.bindings[j];
|
||||||
|
if (binding.descriptor_type == SpvReflectDescriptorType.UniformBuffer)
|
||||||
|
{
|
||||||
|
uniformBufferCount++;
|
||||||
|
}
|
||||||
|
else if (binding.descriptor_type == SpvReflectDescriptorType.StorageBuffer)
|
||||||
|
{
|
||||||
|
storageBufferCount++;
|
||||||
|
}
|
||||||
|
else if (binding.descriptor_type == SpvReflectDescriptorType.StorageTexelBuffer)
|
||||||
|
{
|
||||||
|
storageTextureCount++;
|
||||||
|
}
|
||||||
|
else if (binding.descriptor_type == SpvReflectDescriptorType.Sampler ||
|
||||||
|
binding.descriptor_type == SpvReflectDescriptorType.CombinedImageSampler)
|
||||||
|
{
|
||||||
|
samplerCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//TODO: Convert SPIR-V to other bytecode formats here (DX/Consoles).
|
||||||
|
ShaderFormat format = ShaderFormat.SPIRV;
|
||||||
|
|
||||||
|
// Write shader meta-data and bytecode to the output file.
|
||||||
|
using (FileStream stream = new FileStream(outFile, FileMode.Create, FileAccess.Write))
|
||||||
|
{
|
||||||
|
using (BinaryWriter writer = new BinaryWriter(stream))
|
||||||
|
{
|
||||||
|
writer.Write((int)format);
|
||||||
|
writer.Write((int)shaderStage);
|
||||||
|
writer.Write(uniformBufferCount);
|
||||||
|
writer.Write(storageBufferCount);
|
||||||
|
writer.Write(storageTextureCount);
|
||||||
|
writer.Write(samplerCount);
|
||||||
|
writer.Write(byteCode.Length);
|
||||||
|
writer.Write(byteCode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool CheckReflectResult(SpvReflectResult result, string name)
|
||||||
|
{
|
||||||
|
if (result != SpvReflectResult.Success)
|
||||||
|
{
|
||||||
|
Console.Error.WriteLine($"SpirV-Reflect failure for '{name}': {result}");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private ShaderKind ToShaderKind(ShaderStage shaderStage)
|
||||||
|
{
|
||||||
|
switch (shaderStage)
|
||||||
|
{
|
||||||
|
case ShaderStage.Vertex: return ShaderKind.VertexShader;
|
||||||
|
case ShaderStage.Fragment: return ShaderKind.FragmentShader;
|
||||||
|
default: throw new ArgumentOutOfRangeException(nameof(shaderStage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,14 +12,22 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Test|x64' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Test|x64' ">
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Vortice.ShaderCompiler" Version="1.7.3" />
|
||||||
|
<PackageReference Include="Vortice.SPIRV.Reflect" Version="1.0.3" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -3,8 +3,4 @@ namespace Nerfed.Builder;
|
|||||||
public static class PathUtil
|
public static class PathUtil
|
||||||
{
|
{
|
||||||
public const string ImportedFileExtension = ".bin";
|
public const string ImportedFileExtension = ".bin";
|
||||||
public const string BuildFolderName = ".build";
|
|
||||||
public const string ImportFileExtension = ".import";
|
|
||||||
public const string ImportFolderName = $"{BuildFolderName}/Import";
|
|
||||||
public const string ContentFolderName = "Content";
|
|
||||||
}
|
}
|
||||||
|
@ -27,4 +27,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Import Project=".\CopyLibs.targets" />
|
<Import Project=".\CopyLibs.targets" />
|
||||||
|
|
||||||
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||||
|
<Exec Command=""$(ProjectDir)../Bin/Nerfed.Builder/Nerfed.Builder" -build -resourcePath "$(ProjectDir)Resources" -resourceOutPath "$(TargetDir)Resources" " />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
9
Nerfed.Editor/Resources/Shaders/Fullscreen.vert
Normal file
9
Nerfed.Editor/Resources/Shaders/Fullscreen.vert
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#version 450
|
||||||
|
|
||||||
|
layout(location = 0) out vec2 outTexCoord;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
outTexCoord = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
|
||||||
|
gl_Position = vec4(outTexCoord * vec2(2.0, -2.0) + vec2(-1.0, 1.0), 0.0, 1.0);
|
||||||
|
}
|
34
Nerfed.Editor/Resources/Shaders/Text.frag
Normal file
34
Nerfed.Editor/Resources/Shaders/Text.frag
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#version 450
|
||||||
|
|
||||||
|
layout(location = 0) in vec2 inTexCoord;
|
||||||
|
layout(location = 1) in vec4 inColor;
|
||||||
|
|
||||||
|
layout(location = 0) out vec4 outColor;
|
||||||
|
|
||||||
|
layout(set = 2, binding = 0) uniform sampler2D msdf;
|
||||||
|
|
||||||
|
layout(set = 3, binding = 0) uniform UBO
|
||||||
|
{
|
||||||
|
float pxRange;
|
||||||
|
} ubo;
|
||||||
|
|
||||||
|
float median(float r, float g, float b)
|
||||||
|
{
|
||||||
|
return max(min(r, g), min(max(r, g), b));
|
||||||
|
}
|
||||||
|
|
||||||
|
float screenPxRange()
|
||||||
|
{
|
||||||
|
vec2 unitRange = vec2(ubo.pxRange)/vec2(textureSize(msdf, 0));
|
||||||
|
vec2 screenTexSize = vec2(1.0)/fwidth(inTexCoord);
|
||||||
|
return max(0.5*dot(unitRange, screenTexSize), 1.0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
vec3 msd = texture(msdf, inTexCoord).rgb;
|
||||||
|
float sd = median(msd.r, msd.g, msd.b);
|
||||||
|
float screenPxDistance = screenPxRange() * (sd - 0.5);
|
||||||
|
float opacity = clamp(screenPxDistance + 0.5, 0.0, 1.0);
|
||||||
|
outColor = mix(vec4(0.0, 0.0, 0.0, 0.0), inColor, opacity);
|
||||||
|
}
|
20
Nerfed.Editor/Resources/Shaders/Text.vert
Normal file
20
Nerfed.Editor/Resources/Shaders/Text.vert
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#version 450
|
||||||
|
|
||||||
|
layout(location = 0) in vec3 inPos;
|
||||||
|
layout(location = 1) in vec2 inTexCoord;
|
||||||
|
layout(location = 2) in vec4 inColor;
|
||||||
|
|
||||||
|
layout(location = 0) out vec2 outTexCoord;
|
||||||
|
layout(location = 1) out vec4 outColor;
|
||||||
|
|
||||||
|
layout(set = 1, binding = 0) uniform UBO
|
||||||
|
{
|
||||||
|
mat4 ViewProjection;
|
||||||
|
} ubo;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_Position = ubo.ViewProjection * vec4(inPos, 1.0);
|
||||||
|
outTexCoord = inTexCoord;
|
||||||
|
outColor = inColor;
|
||||||
|
}
|
38
Nerfed.Editor/Resources/Shaders/Video.frag
Normal file
38
Nerfed.Editor/Resources/Shaders/Video.frag
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* This effect is based on the YUV-to-RGBA GLSL shader found in SDL.
|
||||||
|
* Thus, it also released under the zlib license:
|
||||||
|
* http://libsdl.org/license.php
|
||||||
|
*/
|
||||||
|
#version 450
|
||||||
|
|
||||||
|
layout(location = 0) in vec2 TexCoord;
|
||||||
|
|
||||||
|
layout(location = 0) out vec4 FragColor;
|
||||||
|
|
||||||
|
layout(set = 2, binding = 0) uniform sampler2D YSampler;
|
||||||
|
layout(set = 2, binding = 1) uniform sampler2D USampler;
|
||||||
|
layout(set = 2, binding = 2) uniform sampler2D VSampler;
|
||||||
|
|
||||||
|
/* More info about colorspace conversion:
|
||||||
|
* http://www.equasys.de/colorconversion.html
|
||||||
|
* http://www.equasys.de/colorformat.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
const vec3 offset = vec3(-0.0625, -0.5, -0.5);
|
||||||
|
const vec3 Rcoeff = vec3(1.164, 0.000, 1.793);
|
||||||
|
const vec3 Gcoeff = vec3(1.164, -0.213, -0.533);
|
||||||
|
const vec3 Bcoeff = vec3(1.164, 2.112, 0.000);
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
vec3 yuv;
|
||||||
|
yuv.x = texture(YSampler, TexCoord).r;
|
||||||
|
yuv.y = texture(USampler, TexCoord).r;
|
||||||
|
yuv.z = texture(VSampler, TexCoord).r;
|
||||||
|
yuv += offset;
|
||||||
|
|
||||||
|
FragColor.r = dot(yuv, Rcoeff);
|
||||||
|
FragColor.g = dot(yuv, Gcoeff);
|
||||||
|
FragColor.b = dot(yuv, Bcoeff);
|
||||||
|
FragColor.a = 1.0;
|
||||||
|
}
|
@ -1,2 +0,0 @@
|
|||||||
glslangvalidator -V imgui-vertex.glsl -o imgui-vertex.spv -S vert
|
|
||||||
glslangvalidator -V imgui-frag.glsl -o imgui-frag.spv -S frag
|
|
Binary file not shown.
Binary file not shown.
@ -61,6 +61,7 @@ public static void Run(string[] args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
GraphicsDevice = new GraphicsDevice(BackendFlags.All);
|
GraphicsDevice = new GraphicsDevice(BackendFlags.All);
|
||||||
|
GraphicsDevice.LoadDefaultPipelines();
|
||||||
|
|
||||||
MainWindow = new Window(GraphicsDevice, new WindowCreateInfo(WindowTitle, WindowWidth, WindowHeight, ScreenMode.Windowed));
|
MainWindow = new Window(GraphicsDevice, new WindowCreateInfo(WindowTitle, WindowWidth, WindowHeight, ScreenMode.Windowed));
|
||||||
if (!GraphicsDevice.ClaimWindow(MainWindow, SwapchainComposition.SDR, VSync ? PresentMode.VSync : PresentMode.Mailbox))
|
if (!GraphicsDevice.ClaimWindow(MainWindow, SwapchainComposition.SDR, VSync ? PresentMode.VSync : PresentMode.Mailbox))
|
||||||
|
@ -1,716 +0,0 @@
|
|||||||
namespace Nerfed.Runtime.Graphics;
|
|
||||||
|
|
||||||
internal class EmbeddedShadersSpirV : IEmbeddedShaders
|
|
||||||
{
|
|
||||||
public ShaderFormat ShaderFormat => ShaderFormat.SPIRV;
|
|
||||||
|
|
||||||
public byte[] FullscreenVert { get; } =
|
|
||||||
[
|
|
||||||
0x3, 0x2, 0x23, 0x7, 0x0, 0x0, 0x1, 0x0, 0xB, 0x0,
|
|
||||||
0x8, 0x0, 0x2E, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
||||||
0x11, 0x0, 0x2, 0x0, 0x1, 0x0, 0x0, 0x0, 0xB, 0x0,
|
|
||||||
0x6, 0x0, 0x1, 0x0, 0x0, 0x0, 0x47, 0x4C, 0x53, 0x4C,
|
|
||||||
0x2E, 0x73, 0x74, 0x64, 0x2E, 0x34, 0x35, 0x30, 0x0, 0x0,
|
|
||||||
0x0, 0x0, 0xE, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
||||||
0x1, 0x0, 0x0, 0x0, 0xF, 0x0, 0x8, 0x0, 0x0, 0x0,
|
|
||||||
0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x6D, 0x61, 0x69, 0x6E,
|
|
||||||
0x0, 0x0, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0xC, 0x0,
|
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0x1F, 0x0, 0x0, 0x0,
|
|
||||||
0x55, 0x42, 0x4F, 0x0, 0x6, 0x0, 0x5, 0x0, 0x1F, 0x0,
|
|
||||||
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x70, 0x78, 0x52, 0x61,
|
|
||||||
0x6E, 0x67, 0x65, 0x0, 0x5, 0x0, 0x3, 0x0, 0x21, 0x0,
|
|
||||||
0x0, 0x0, 0x75, 0x62, 0x6F, 0x0, 0x5, 0x0, 0x4, 0x0,
|
|
||||||
0x2B, 0x0, 0x0, 0x0, 0x6D, 0x73, 0x64, 0x66, 0x0, 0x0,
|
|
||||||
0x0, 0x0, 0x5, 0x0, 0x6, 0x0, 0x32, 0x0, 0x0, 0x0,
|
|
||||||
0x73, 0x63, 0x72, 0x65, 0x65, 0x6E, 0x54, 0x65, 0x78, 0x53,
|
|
||||||
0x69, 0x7A, 0x65, 0x0, 0x0, 0x0, 0x5, 0x0, 0x5, 0x0,
|
|
||||||
0x36, 0x0, 0x0, 0x0, 0x69, 0x6E, 0x54, 0x65, 0x78, 0x43,
|
|
||||||
0x6F, 0x6F, 0x72, 0x64, 0x0, 0x0, 0x5, 0x0, 0x3, 0x0,
|
|
||||||
0x44, 0x0, 0x0, 0x0, 0x6D, 0x73, 0x64, 0x0, 0x5, 0x0,
|
|
||||||
0x3, 0x0, 0x4A, 0x0, 0x0, 0x0, 0x73, 0x64, 0x0, 0x0,
|
|
||||||
0x5, 0x0, 0x4, 0x0, 0x4B, 0x0, 0x0, 0x0, 0x70, 0x61,
|
|
||||||
0x72, 0x61, 0x6D, 0x0, 0x0, 0x0, 0x5, 0x0, 0x4, 0x0,
|
|
||||||
0x50, 0x0, 0x0, 0x0, 0x70, 0x61, 0x72, 0x61, 0x6D, 0x0,
|
|
||||||
0x0, 0x0, 0x5, 0x0, 0x4, 0x0, 0x54, 0x0, 0x0, 0x0,
|
|
||||||
0x70, 0x61, 0x72, 0x61, 0x6D, 0x0, 0x0, 0x0, 0x5, 0x0,
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x0, 0x7, 0x0, 0xB, 0x0, 0x0, 0x0, 0x3, 0x0,
|
|
||||||
0x0, 0x0, 0x67, 0x6C, 0x5F, 0x43, 0x75, 0x6C, 0x6C, 0x44,
|
|
||||||
0x69, 0x73, 0x74, 0x61, 0x6E, 0x63, 0x65, 0x0, 0x5, 0x0,
|
|
||||||
0x3, 0x0, 0xD, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
||||||
0x5, 0x0, 0x3, 0x0, 0x11, 0x0, 0x0, 0x0, 0x55, 0x42,
|
|
||||||
0x4F, 0x0, 0x6, 0x0, 0x7, 0x0, 0x11, 0x0, 0x0, 0x0,
|
|
||||||
0x0, 0x0, 0x0, 0x0, 0x56, 0x69, 0x65, 0x77, 0x50, 0x72,
|
|
||||||
0x6F, 0x6A, 0x65, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x0, 0x0,
|
|
||||||
0x5, 0x0, 0x3, 0x0, 0x13, 0x0, 0x0, 0x0, 0x75, 0x62,
|
|
||||||
0x6F, 0x0, 0x5, 0x0, 0x4, 0x0, 0x19, 0x0, 0x0, 0x0,
|
|
||||||
0x69, 0x6E, 0x50, 0x6F, 0x73, 0x0, 0x0, 0x0, 0x5, 0x0,
|
|
||||||
0x5, 0x0, 0x25, 0x0, 0x0, 0x0, 0x6F, 0x75, 0x74, 0x54,
|
|
||||||
0x65, 0x78, 0x43, 0x6F, 0x6F, 0x72, 0x64, 0x0, 0x5, 0x0,
|
|
||||||
0x5, 0x0, 0x27, 0x0, 0x0, 0x0, 0x69, 0x6E, 0x54, 0x65,
|
|
||||||
0x78, 0x43, 0x6F, 0x6F, 0x72, 0x64, 0x0, 0x0, 0x5, 0x0,
|
|
||||||
0x5, 0x0, 0x29, 0x0, 0x0, 0x0, 0x6F, 0x75, 0x74, 0x43,
|
|
||||||
0x6F, 0x6C, 0x6F, 0x72, 0x0, 0x0, 0x0, 0x0, 0x5, 0x0,
|
|
||||||
0x4, 0x0, 0x2B, 0x0, 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x0, 0x5, 0x0, 0x35, 0x0, 0x0, 0x0,
|
|
||||||
0x41, 0x0, 0x0, 0x0, 0x2E, 0x0, 0x0, 0x0, 0x26, 0x0,
|
|
||||||
0x0, 0x0, 0x3E, 0x0, 0x3, 0x0, 0x41, 0x0, 0x0, 0x0,
|
|
||||||
0x40, 0x0, 0x0, 0x0, 0x41, 0x0, 0x5, 0x0, 0x35, 0x0,
|
|
||||||
0x0, 0x0, 0x44, 0x0, 0x0, 0x0, 0x2E, 0x0, 0x0, 0x0,
|
|
||||||
0x43, 0x0, 0x0, 0x0, 0x3E, 0x0, 0x3, 0x0, 0x44, 0x0,
|
|
||||||
0x0, 0x0, 0x42, 0x0, 0x0, 0x0, 0xFD, 0x0, 0x1, 0x0,
|
|
||||||
0x38, 0x0, 0x1, 0x0,
|
|
||||||
];
|
|
||||||
}
|
|
@ -13,12 +13,16 @@ public class GraphicsDevice : IDisposable
|
|||||||
public BackendFlags Backend { get; }
|
public BackendFlags Backend { get; }
|
||||||
public bool DebugMode { get; }
|
public bool DebugMode { get; }
|
||||||
|
|
||||||
|
// Built-in shaders
|
||||||
|
public Shader FullscreenVertexShader { get; private set; }
|
||||||
|
public Shader VideoFragmentShader { get; private set; }
|
||||||
|
public Shader TextVertexShader { get; private set; }
|
||||||
|
public Shader TextFragmentShader { get; private set; }
|
||||||
|
|
||||||
// Built-in video pipeline
|
// Built-in video pipeline
|
||||||
internal GraphicsPipeline VideoPipeline { get; }
|
internal GraphicsPipeline VideoPipeline { get; private set; }
|
||||||
|
|
||||||
// Built-in text shader info
|
// Built-in text shader info
|
||||||
public Shader TextVertexShader;
|
|
||||||
public Shader TextFragmentShader;
|
|
||||||
public VertexInputState TextVertexInputState { get; }
|
public VertexInputState TextVertexInputState { get; }
|
||||||
|
|
||||||
// Built-in samplers
|
// Built-in samplers
|
||||||
@ -53,85 +57,21 @@ internal GraphicsDevice(BackendFlags preferredBackends)
|
|||||||
|
|
||||||
Backend = (BackendFlags)Refresh.Refresh_GetBackend(Handle);
|
Backend = (BackendFlags)Refresh.Refresh_GetBackend(Handle);
|
||||||
|
|
||||||
IEmbeddedShaders embeddedShaders;
|
TextVertexInputState = VertexInputState.CreateSingleBinding<FontVertex>();
|
||||||
switch (Backend)
|
|
||||||
{
|
PointSampler = new Sampler(this, SamplerCreateInfo.PointClamp);
|
||||||
case BackendFlags.Vulkan:
|
LinearSampler = new Sampler(this, SamplerCreateInfo.LinearClamp);
|
||||||
embeddedShaders = new EmbeddedShadersSpirV();
|
|
||||||
break;
|
fencePool = new FencePool(this);
|
||||||
case BackendFlags.D3D11:
|
commandBufferPool = new CommandBufferPool(this);
|
||||||
throw new NotImplementedException("D3D11 embedded shaders");
|
|
||||||
break;
|
|
||||||
case BackendFlags.Metal:
|
|
||||||
throw new NotImplementedException("Metal embedded shaders");
|
|
||||||
break;
|
|
||||||
default: throw new ArgumentOutOfRangeException();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Shader fullscreenVertShader;
|
internal void LoadDefaultPipelines()
|
||||||
Shader textVertShader;
|
|
||||||
Shader textFragShader;
|
|
||||||
Shader videoFragShader;
|
|
||||||
|
|
||||||
using (MemoryStream fullscreenVertStream = new MemoryStream(embeddedShaders.FullscreenVert))
|
|
||||||
{
|
{
|
||||||
fullscreenVertShader = new Shader(
|
FullscreenVertexShader = ResourceManager.Load<Shader>("Shaders/Fullscreen.vert");
|
||||||
this,
|
VideoFragmentShader = ResourceManager.Load<Shader>("Shaders/Video.frag");
|
||||||
fullscreenVertStream,
|
TextVertexShader = ResourceManager.Load<Shader>("Shaders/Text.vert");
|
||||||
"main",
|
TextFragmentShader = ResourceManager.Load<Shader>("Shaders/Text.frag");
|
||||||
new ShaderCreateInfo
|
|
||||||
{
|
|
||||||
ShaderStage = ShaderStage.Vertex,
|
|
||||||
ShaderFormat = embeddedShaders.ShaderFormat
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
using (MemoryStream videoYuv2RgbaFragStream = new MemoryStream(embeddedShaders.VideoYuv2RgbaFrag))
|
|
||||||
{
|
|
||||||
videoFragShader = new Shader(
|
|
||||||
this,
|
|
||||||
videoYuv2RgbaFragStream,
|
|
||||||
"main",
|
|
||||||
new ShaderCreateInfo
|
|
||||||
{
|
|
||||||
ShaderStage = ShaderStage.Fragment,
|
|
||||||
ShaderFormat = embeddedShaders.ShaderFormat,
|
|
||||||
SamplerCount = 3
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
using (MemoryStream textTransformVertStream = new MemoryStream(embeddedShaders.TextTransformVert))
|
|
||||||
{
|
|
||||||
textVertShader = new Shader(
|
|
||||||
this,
|
|
||||||
textTransformVertStream,
|
|
||||||
"main",
|
|
||||||
new ShaderCreateInfo
|
|
||||||
{
|
|
||||||
ShaderStage = ShaderStage.Vertex,
|
|
||||||
ShaderFormat = embeddedShaders.ShaderFormat,
|
|
||||||
UniformBufferCount = 1
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
using (MemoryStream textMsdfFragStream = new MemoryStream(embeddedShaders.TextMsdfFrag))
|
|
||||||
{
|
|
||||||
textFragShader = new Shader(
|
|
||||||
this,
|
|
||||||
textMsdfFragStream,
|
|
||||||
"main",
|
|
||||||
new ShaderCreateInfo
|
|
||||||
{
|
|
||||||
ShaderStage = ShaderStage.Fragment,
|
|
||||||
ShaderFormat = embeddedShaders.ShaderFormat,
|
|
||||||
SamplerCount = 1,
|
|
||||||
UniformBufferCount = 1
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
VideoPipeline = new GraphicsPipeline(
|
VideoPipeline = new GraphicsPipeline(
|
||||||
this,
|
this,
|
||||||
@ -144,25 +84,14 @@ internal GraphicsDevice(BackendFlags preferredBackends)
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
DepthStencilState = DepthStencilState.Disable,
|
DepthStencilState = DepthStencilState.Disable,
|
||||||
VertexShader = fullscreenVertShader,
|
VertexShader = FullscreenVertexShader,
|
||||||
FragmentShader = videoFragShader,
|
FragmentShader = VideoFragmentShader,
|
||||||
VertexInputState = VertexInputState.Empty,
|
VertexInputState = VertexInputState.Empty,
|
||||||
RasterizerState = RasterizerState.CCW_CullNone,
|
RasterizerState = RasterizerState.CCW_CullNone,
|
||||||
PrimitiveType = PrimitiveType.TriangleList,
|
PrimitiveType = PrimitiveType.TriangleList,
|
||||||
MultisampleState = MultisampleState.None
|
MultisampleState = MultisampleState.None
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
TextVertexShader = textVertShader;
|
|
||||||
TextFragmentShader = textFragShader;
|
|
||||||
|
|
||||||
TextVertexInputState = VertexInputState.CreateSingleBinding<FontVertex>();
|
|
||||||
|
|
||||||
PointSampler = new Sampler(this, SamplerCreateInfo.PointClamp);
|
|
||||||
LinearSampler = new Sampler(this, SamplerCreateInfo.LinearClamp);
|
|
||||||
|
|
||||||
fencePool = new FencePool(this);
|
|
||||||
commandBufferPool = new CommandBufferPool(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
namespace Nerfed.Runtime.Graphics;
|
|
||||||
|
|
||||||
internal interface IEmbeddedShaders
|
|
||||||
{
|
|
||||||
ShaderFormat ShaderFormat { get; }
|
|
||||||
byte[] FullscreenVert { get; }
|
|
||||||
byte[] TextMsdfFrag { get; }
|
|
||||||
byte[] TextTransformVert { get; }
|
|
||||||
byte[] VideoYuv2RgbaFrag { get; }
|
|
||||||
}
|
|
@ -1,91 +0,0 @@
|
|||||||
using RefreshCS;
|
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
namespace Nerfed.Runtime.Graphics;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Shaders are used to create graphics pipelines.
|
|
||||||
/// Graphics pipelines take a vertex shader and a fragment shader.
|
|
||||||
/// </summary>
|
|
||||||
public class Shader : RefreshResource
|
|
||||||
{
|
|
||||||
protected override Action<IntPtr, IntPtr> ReleaseFunction => Refresh.Refresh_ReleaseShader;
|
|
||||||
|
|
||||||
public uint SamplerCount { get; }
|
|
||||||
public uint StorageTextureCount { get; }
|
|
||||||
public uint StorageBufferCount { get; }
|
|
||||||
public uint UniformBufferCount { get; }
|
|
||||||
|
|
||||||
public unsafe Shader(
|
|
||||||
GraphicsDevice device,
|
|
||||||
string filePath,
|
|
||||||
string entryPointName,
|
|
||||||
in ShaderCreateInfo shaderCreateInfo
|
|
||||||
) : base(device)
|
|
||||||
{
|
|
||||||
using FileStream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read);
|
|
||||||
Handle = CreateFromStream(
|
|
||||||
device,
|
|
||||||
stream,
|
|
||||||
entryPointName,
|
|
||||||
shaderCreateInfo
|
|
||||||
);
|
|
||||||
|
|
||||||
SamplerCount = shaderCreateInfo.SamplerCount;
|
|
||||||
StorageTextureCount = shaderCreateInfo.StorageTextureCount;
|
|
||||||
StorageBufferCount = shaderCreateInfo.StorageBufferCount;
|
|
||||||
UniformBufferCount = shaderCreateInfo.UniformBufferCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public unsafe Shader(
|
|
||||||
GraphicsDevice device,
|
|
||||||
Stream stream,
|
|
||||||
string entryPointName,
|
|
||||||
in ShaderCreateInfo shaderCreateInfo
|
|
||||||
) : base(device)
|
|
||||||
{
|
|
||||||
Handle = CreateFromStream(
|
|
||||||
device,
|
|
||||||
stream,
|
|
||||||
entryPointName,
|
|
||||||
shaderCreateInfo
|
|
||||||
);
|
|
||||||
|
|
||||||
SamplerCount = shaderCreateInfo.SamplerCount;
|
|
||||||
StorageTextureCount = shaderCreateInfo.StorageTextureCount;
|
|
||||||
StorageBufferCount = shaderCreateInfo.StorageBufferCount;
|
|
||||||
UniformBufferCount = shaderCreateInfo.UniformBufferCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static unsafe IntPtr CreateFromStream(
|
|
||||||
GraphicsDevice device,
|
|
||||||
Stream stream,
|
|
||||||
string entryPointName,
|
|
||||||
in ShaderCreateInfo shaderCreateInfo
|
|
||||||
) {
|
|
||||||
void* bytecodeBuffer = NativeMemory.Alloc((nuint) stream.Length);
|
|
||||||
Span<byte> bytecodeSpan = new Span<byte>(bytecodeBuffer, (int) stream.Length);
|
|
||||||
stream.ReadExactly(bytecodeSpan);
|
|
||||||
|
|
||||||
Refresh.ShaderCreateInfo refreshShaderCreateInfo;
|
|
||||||
refreshShaderCreateInfo.CodeSize = (nuint) stream.Length;
|
|
||||||
refreshShaderCreateInfo.Code = (byte*) bytecodeBuffer;
|
|
||||||
refreshShaderCreateInfo.EntryPointName = entryPointName;
|
|
||||||
refreshShaderCreateInfo.Stage = (Refresh.ShaderStage) shaderCreateInfo.ShaderStage;
|
|
||||||
refreshShaderCreateInfo.Format = (Refresh.ShaderFormat) shaderCreateInfo.ShaderFormat;
|
|
||||||
refreshShaderCreateInfo.SamplerCount = shaderCreateInfo.SamplerCount;
|
|
||||||
refreshShaderCreateInfo.StorageTextureCount = shaderCreateInfo.StorageTextureCount;
|
|
||||||
refreshShaderCreateInfo.StorageBufferCount = shaderCreateInfo.StorageBufferCount;
|
|
||||||
refreshShaderCreateInfo.UniformBufferCount = shaderCreateInfo.UniformBufferCount;
|
|
||||||
|
|
||||||
IntPtr shaderModule = Refresh.Refresh_CreateShader(
|
|
||||||
device.Handle,
|
|
||||||
refreshShaderCreateInfo
|
|
||||||
);
|
|
||||||
|
|
||||||
NativeMemory.Free(bytecodeBuffer);
|
|
||||||
return shaderModule;
|
|
||||||
}
|
|
||||||
}
|
|
@ -60,20 +60,8 @@ public GuiController(GraphicsDevice graphicsDevice, Window mainWindow, Color cle
|
|||||||
io.DisplaySize = new Vector2(mainWindow.Width, mainWindow.Height);
|
io.DisplaySize = new Vector2(mainWindow.Width, mainWindow.Height);
|
||||||
io.DisplayFramebufferScale = Vector2.One;
|
io.DisplayFramebufferScale = Vector2.One;
|
||||||
|
|
||||||
ShaderCreateInfo vertexCreateInfo = new ShaderCreateInfo {
|
imGuiVertexShader = ResourceManager.Load<Shader>("Shaders/ImGui.vert");
|
||||||
ShaderStage = ShaderStage.Vertex,
|
imGuiFragmentShader = ResourceManager.Load<Shader>("Shaders/ImGui.frag");
|
||||||
ShaderFormat = ShaderFormat.SPIRV,
|
|
||||||
UniformBufferCount = 1,
|
|
||||||
};
|
|
||||||
imGuiVertexShader = new Shader(graphicsDevice, Path.Combine(shaderContentPath, "imgui-vertex.spv"), "main", in vertexCreateInfo);
|
|
||||||
|
|
||||||
ShaderCreateInfo fragCreateInfo = new ShaderCreateInfo {
|
|
||||||
ShaderStage = ShaderStage.Fragment,
|
|
||||||
ShaderFormat = ShaderFormat.SPIRV,
|
|
||||||
SamplerCount = 1,
|
|
||||||
|
|
||||||
};
|
|
||||||
imGuiFragmentShader = new Shader(graphicsDevice, Path.Combine(shaderContentPath, "imgui-frag.spv"), "main", in fragCreateInfo);
|
|
||||||
|
|
||||||
imGuiSampler = new Sampler(graphicsDevice, SamplerCreateInfo.LinearClamp);
|
imGuiSampler = new Sampler(graphicsDevice, SamplerCreateInfo.LinearClamp);
|
||||||
|
|
||||||
@ -642,8 +630,8 @@ public void Dispose()
|
|||||||
fontTexture?.Dispose();
|
fontTexture?.Dispose();
|
||||||
imGuiVertexBuffer?.Dispose();
|
imGuiVertexBuffer?.Dispose();
|
||||||
imGuiIndexBuffer?.Dispose();
|
imGuiIndexBuffer?.Dispose();
|
||||||
imGuiFragmentShader?.Dispose();
|
ResourceManager.Unload(imGuiVertexShader);
|
||||||
imGuiVertexShader?.Dispose();
|
ResourceManager.Unload(imGuiFragmentShader);
|
||||||
imGuiPipeline?.Dispose();
|
imGuiPipeline?.Dispose();
|
||||||
imGuiSampler?.Dispose();
|
imGuiSampler?.Dispose();
|
||||||
resourceUploader?.Dispose();
|
resourceUploader?.Dispose();
|
||||||
|
2
Nerfed.Runtime/Nerfed.Runtime.csproj.DotSettings
Normal file
2
Nerfed.Runtime/Nerfed.Runtime.csproj.DotSettings
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
|
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=resource/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
9
Nerfed.Runtime/Resource/Resource.cs
Normal file
9
Nerfed.Runtime/Resource/Resource.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace Nerfed.Runtime;
|
||||||
|
|
||||||
|
public abstract class Resource
|
||||||
|
{
|
||||||
|
public string Path { get; internal set; }
|
||||||
|
|
||||||
|
internal abstract void Load(Stream stream);
|
||||||
|
internal abstract void Unload();
|
||||||
|
}
|
43
Nerfed.Runtime/Resource/ResourceManager.cs
Normal file
43
Nerfed.Runtime/Resource/ResourceManager.cs
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
namespace Nerfed.Runtime;
|
||||||
|
|
||||||
|
public static class ResourceManager
|
||||||
|
{
|
||||||
|
private const string rootName = "Resources";
|
||||||
|
private static readonly Dictionary<string, Resource> loadedResources = new Dictionary<string, Resource>();
|
||||||
|
|
||||||
|
public static T Load<T>(string resourcePath) where T : Resource
|
||||||
|
{
|
||||||
|
if (loadedResources.TryGetValue(resourcePath, out Resource resource))
|
||||||
|
{
|
||||||
|
return (T)resource;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof(T) == typeof(Shader))
|
||||||
|
{
|
||||||
|
resource = new Shader();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new Exception("Failed to create resource");
|
||||||
|
}
|
||||||
|
|
||||||
|
Assert.Always(resource != null);
|
||||||
|
resource.Path = resourcePath;
|
||||||
|
resource.Load(StorageContainer.OpenStream(Path.Combine(AppContext.BaseDirectory, rootName, resourcePath) + ".bin"));
|
||||||
|
|
||||||
|
loadedResources.Add(resourcePath, resource);
|
||||||
|
return (T)resource;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Unload(Resource resource)
|
||||||
|
{
|
||||||
|
if (!loadedResources.ContainsKey(resource.Path))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
resource.Unload();
|
||||||
|
resource.Path = string.Empty;
|
||||||
|
loadedResources.Remove(resource.Path);
|
||||||
|
}
|
||||||
|
}
|
58
Nerfed.Runtime/Resource/Shader.cs
Normal file
58
Nerfed.Runtime/Resource/Shader.cs
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using RefreshCS;
|
||||||
|
|
||||||
|
namespace Nerfed.Runtime;
|
||||||
|
|
||||||
|
public class Shader : Resource
|
||||||
|
{
|
||||||
|
public IntPtr Handle { get; private set; }
|
||||||
|
|
||||||
|
public uint SamplerCount { get; private set; }
|
||||||
|
public uint StorageTextureCount { get; private set; }
|
||||||
|
public uint StorageBufferCount { get; private set; }
|
||||||
|
public uint UniformBufferCount { get; private set; }
|
||||||
|
|
||||||
|
internal Shader() { }
|
||||||
|
|
||||||
|
internal override unsafe void Load(Stream stream)
|
||||||
|
{
|
||||||
|
using (BinaryReader reader = new BinaryReader(stream))
|
||||||
|
{
|
||||||
|
Refresh.ShaderCreateInfo createInfo;
|
||||||
|
createInfo.Format = (Refresh.ShaderFormat)reader.ReadInt32();
|
||||||
|
createInfo.Stage = (Refresh.ShaderStage)reader.ReadInt32();
|
||||||
|
createInfo.UniformBufferCount = (uint)reader.ReadInt32();
|
||||||
|
createInfo.StorageBufferCount = (uint)reader.ReadInt32();
|
||||||
|
createInfo.StorageTextureCount = (uint)reader.ReadInt32();
|
||||||
|
createInfo.SamplerCount = (uint)reader.ReadInt32();
|
||||||
|
|
||||||
|
int byteCodeSize = reader.ReadInt32();
|
||||||
|
void* byteCodeBuffer = NativeMemory.Alloc((nuint)byteCodeSize);
|
||||||
|
Span<byte> byteCodeSpan = new Span<byte>(byteCodeBuffer, byteCodeSize);
|
||||||
|
|
||||||
|
int bytesRead = 0;
|
||||||
|
while (bytesRead < byteCodeSize)
|
||||||
|
{
|
||||||
|
bytesRead += reader.Read(byteCodeSpan.Slice(bytesRead));
|
||||||
|
}
|
||||||
|
|
||||||
|
createInfo.CodeSize = (nuint)byteCodeSize;
|
||||||
|
createInfo.Code = (byte*)byteCodeBuffer;
|
||||||
|
createInfo.EntryPointName = "main";
|
||||||
|
|
||||||
|
Handle = Refresh.Refresh_CreateShader(Engine.GraphicsDevice.Handle, createInfo);
|
||||||
|
NativeMemory.Free(byteCodeBuffer);
|
||||||
|
|
||||||
|
SamplerCount = createInfo.SamplerCount;
|
||||||
|
StorageTextureCount = createInfo.StorageTextureCount;
|
||||||
|
StorageBufferCount = createInfo.StorageBufferCount;
|
||||||
|
UniformBufferCount = createInfo.UniformBufferCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal override void Unload()
|
||||||
|
{
|
||||||
|
Refresh.Refresh_ReleaseShader(Engine.GraphicsDevice.Handle, Handle);
|
||||||
|
Handle = IntPtr.Zero;
|
||||||
|
}
|
||||||
|
}
|
@ -8,6 +8,9 @@ EndProject
|
|||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nerfed.Builder", "Nerfed.Builder\Nerfed.Builder.csproj", "{1B88DE56-2AD8-441E-9B10-073AA43840BF}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nerfed.Builder", "Nerfed.Builder\Nerfed.Builder.csproj", "{1B88DE56-2AD8-441E-9B10-073AA43840BF}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nerfed.Editor", "Nerfed.Editor\Nerfed.Editor.csproj", "{FF7D032D-7F0B-4700-A818-0606D66AECF8}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nerfed.Editor", "Nerfed.Editor\Nerfed.Editor.csproj", "{FF7D032D-7F0B-4700-A818-0606D66AECF8}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{1B88DE56-2AD8-441E-9B10-073AA43840BF} = {1B88DE56-2AD8-441E-9B10-073AA43840BF}
|
||||||
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Loading…
Reference in New Issue
Block a user