mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Allow changing Effect of Materials
+ TextureDimension Property for Texture
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user