forked from MoonsideGames/MoonWorks
remove Bit from flags enum
parent
ce27a4bc4c
commit
66e0fe9924
|
@ -85,8 +85,8 @@ namespace MoonWorks.Graphics
|
|||
[Flags]
|
||||
public enum TextureUsageFlags : uint
|
||||
{
|
||||
SamplerBit = 1,
|
||||
ColorTargetBit = 2
|
||||
Sampler = 1,
|
||||
ColorTarget = 2
|
||||
}
|
||||
|
||||
public enum SampleCount
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue