diff --git a/src/Graphics/RefreshEnums.cs b/src/Graphics/RefreshEnums.cs index 9a0da9b..8f6a2b5 100644 --- a/src/Graphics/RefreshEnums.cs +++ b/src/Graphics/RefreshEnums.cs @@ -85,8 +85,8 @@ namespace MoonWorks.Graphics [Flags] public enum TextureUsageFlags : uint { - SamplerBit = 1, - ColorTargetBit = 2 + Sampler = 1, + ColorTarget = 2 } public enum SampleCount diff --git a/src/Graphics/Resources/ColorTarget.cs b/src/Graphics/Resources/ColorTarget.cs index d25401a..4ac5080 100644 --- a/src/Graphics/Resources/ColorTarget.cs +++ b/src/Graphics/Resources/ColorTarget.cs @@ -20,8 +20,8 @@ namespace MoonWorks.Graphics uint levelCount = 1 ) { - var flags = TextureUsageFlags.ColorTargetBit; - if (canBeSampled) { flags |= TextureUsageFlags.SamplerBit; } + var flags = TextureUsageFlags.ColorTarget; + if (canBeSampled) { flags |= TextureUsageFlags.Sampler; } var texture = Texture.CreateTexture2D( device, @@ -41,8 +41,8 @@ namespace MoonWorks.Graphics public ColorTarget(GraphicsDevice device, SampleCount sampleCount, ref TextureSlice textureSlice) : base(device) { Handle = Refresh.Refresh_CreateColorTarget( - device.Handle, - (Refresh.SampleCount) sampleCount, + device.Handle, + (Refresh.SampleCount) sampleCount, textureSlice.ToRefreshTextureSlice() ); TextureSlice = textureSlice; diff --git a/src/Graphics/Resources/Texture.cs b/src/Graphics/Resources/Texture.cs index 8c99ca3..acc0ac2 100644 --- a/src/Graphics/Resources/Texture.cs +++ b/src/Graphics/Resources/Texture.cs @@ -30,7 +30,7 @@ namespace MoonWorks.Graphics textureCreateInfo.IsCube = false; textureCreateInfo.LevelCount = 1; textureCreateInfo.SampleCount = SampleCount.One; - textureCreateInfo.UsageFlags = TextureUsageFlags.SamplerBit; + textureCreateInfo.UsageFlags = TextureUsageFlags.Sampler; var texture = new Texture(device, textureCreateInfo);