Renderer: Implement TextureUsage

This commit is contained in:
Jérôme Leclercq
2021-02-20 19:25:25 +01:00
parent 311cfeaf3c
commit b291f8a21c
3 changed files with 23 additions and 1 deletions

View File

@@ -154,6 +154,26 @@ namespace Nz
TransferDestination,
Undefined
};
enum class TextureUsage
{
ColorOutput,
DepthStencilOutput,
InputAttachment,
ShaderSampling,
TransferSource,
TransferDestination,
Max = TransferDestination
};
template<>
struct EnumAsFlags<TextureUsage>
{
static constexpr TextureUsage max = TextureUsage::Max;
};
using TextureUsageFlags = Flags<TextureUsage>;
}
#endif // NAZARA_ENUMS_RENDERER_HPP