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
+6
View File
@@ -31,6 +31,8 @@ namespace GlitchyEngine.Renderer
public abstract Format Format {get;}
public abstract TextureDimension Dimension {get;}
public abstract TextureViewBinding GetViewBinding();
}
@@ -82,6 +84,8 @@ namespace GlitchyEngine.Renderer
//public override extern uint32 ArraySize {get;}
//public override extern uint32 MipLevels {get;}
public override TextureDimension Dimension => .Texture2D;
public this(Texture2DDesc desc)
{
PrepareTexturePlatform(desc, false);
@@ -163,6 +167,8 @@ namespace GlitchyEngine.Renderer
// public override extern uint32 ArraySize {get;}
// public override extern uint32 MipLevels {get;}
public override TextureDimension Dimension => .TextureCube;
public this(Texture2DDesc desc)
{
PrepareTexturePlatform(desc, false);