From 0c588b96f45b547cff3db0c05d707f0106cf80c4 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 10 Jan 2022 12:20:01 -0800 Subject: [PATCH] add more info to Texture --- src/Graphics/Resources/Texture.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/Graphics/Resources/Texture.cs b/src/Graphics/Resources/Texture.cs index 469d154..dc9eeb6 100644 --- a/src/Graphics/Resources/Texture.cs +++ b/src/Graphics/Resources/Texture.cs @@ -1,6 +1,4 @@ using System; -using System.IO; -using System.Runtime.InteropServices; using RefreshCS; namespace MoonWorks.Graphics @@ -12,7 +10,12 @@ namespace MoonWorks.Graphics { public uint Width { get; } public uint Height { get; } + public uint Depth { get; } public TextureFormat Format { get; } + public bool IsCube { get; } + public uint LevelCount { get; } + public SampleCount SampleCount { get; } + public TextureUsageFlags UsageFlags { get; } protected override Action QueueDestroyFunction => Refresh.Refresh_QueueDestroyTexture; @@ -181,8 +184,12 @@ namespace MoonWorks.Graphics Format = textureCreateInfo.Format; Width = textureCreateInfo.Width; Height = textureCreateInfo.Height; + Depth = textureCreateInfo.Depth; + IsCube = textureCreateInfo.IsCube; + SampleCount = textureCreateInfo.SampleCount; + LevelCount = textureCreateInfo.LevelCount; + SampleCount = textureCreateInfo.SampleCount; + UsageFlags = textureCreateInfo.UsageFlags; } - - } }