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