1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 22:24:13 +01:00

[dxvk] Move DxvkAccess{Flags} to separate file

This commit is contained in:
Philip Rebohle 2024-10-16 17:28:24 +02:00 committed by Philip Rebohle
parent d72346f2cb
commit 863ce5f117
3 changed files with 20 additions and 12 deletions

18
src/dxvk/dxvk_access.h Normal file
View File

@ -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<DxvkAccess>;
}

View File

@ -2,6 +2,7 @@
#include <memory>
#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<DxvkAccess>;
/**
* \brief Memory stats
*

View File

@ -30,6 +30,7 @@
#include "util_likely.h"
#include "util_math.h"
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <iterator>