mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-27 06:50:23 +00:00
a8016a2868
Shaders are now compiled only once and load statically instead of being per material.
43 lines
1 KiB
C#
43 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LayoutBXLYT
|
|
{
|
|
public class ShaderLoader
|
|
{
|
|
private static BflytShader cafeShader;
|
|
private static BrlytShader revShader;
|
|
private static BclytShader ctrShader;
|
|
|
|
public static BflytShader CafeShader
|
|
{
|
|
get
|
|
{
|
|
if (cafeShader == null)
|
|
cafeShader = new BflytShader();
|
|
return cafeShader;
|
|
}
|
|
}
|
|
public static BrlytShader RevShader
|
|
{
|
|
get
|
|
{
|
|
if (revShader == null)
|
|
revShader = new BrlytShader();
|
|
return revShader;
|
|
}
|
|
}
|
|
public static BclytShader CtrShader
|
|
{
|
|
get
|
|
{
|
|
if (ctrShader == null)
|
|
ctrShader = new BclytShader();
|
|
return ctrShader;
|
|
}
|
|
}
|
|
}
|
|
}
|