diff --git a/src/dxvk/dxvk_access.h b/src/dxvk/dxvk_access.h new file mode 100644 index 00000000..f3bd3c7d --- /dev/null +++ b/src/dxvk/dxvk_access.h @@ -0,0 +1,18 @@ +#pragma once + +#include "../util/util_flags.h" + +namespace dxvk { + + /** + * \brief Resource access flags + */ + enum class DxvkAccess : uint32_t { + None = 0, + Read = 1, + Write = 2, + }; + + using DxvkAccessFlags = Flags; + +} diff --git a/src/dxvk/dxvk_memory.h b/src/dxvk/dxvk_memory.h index 3345ddf3..c785e4b0 100644 --- a/src/dxvk/dxvk_memory.h +++ b/src/dxvk/dxvk_memory.h @@ -2,6 +2,7 @@ #include +#include "dxvk_access.h" #include "dxvk_adapter.h" #include "dxvk_allocator.h" #include "dxvk_hash.h" @@ -15,18 +16,6 @@ namespace dxvk { class DxvkSparsePageTable; class DxvkSharedAllocationCache; - /** - * \brief Resource access flags - */ - enum class DxvkAccess : uint32_t { - None = 0, - Read = 1, - Write = 2, - }; - - using DxvkAccessFlags = Flags; - - /** * \brief Memory stats * diff --git a/src/util/util_bit.h b/src/util/util_bit.h index 10d6e79b..9ee38816 100644 --- a/src/util/util_bit.h +++ b/src/util/util_bit.h @@ -30,6 +30,7 @@ #include "util_likely.h" #include "util_math.h" +#include #include #include #include