Allow changing Effect of Materials

+ TextureDimension Property for Texture
This commit is contained in:
Simon Lübeß
2023-08-01 13:28:04 +02:00
parent 5d8c1b111a
commit e8a5594540
7 changed files with 142 additions and 27 deletions
+21 -4
View File
@@ -104,10 +104,27 @@ namespace GlitchyEngine.Renderer
public enum ShaderVariableType
{
Bool,
Float,
Int,
UInt
case Bool;
case Float;
case Int;
case UInt;
// todo
public int ElementSizeInBytes()
{
switch (this)
{
case .Bool:
return 1;
case .Float:
return 4;
case .Int:
return 4;
case .UInt:
return 4;
default:
return 0;
}
}
}
}