blob: edac38f181818e2a1d1e0b88dde17d5324d4e009 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <cru/platform/native_resource.hpp>
#include <string_view>
namespace cru::platform::graph::win::direct {
constexpr std::wstring_view win_direct_platform_id = L"Windows Direct";
inline bool IsDirectResource(NativeResource* resource) {
return resource->GetPlatformId() == win_direct_platform_id;
}
} // namespace cru::platform::graph::win::direct
#define CRU_PLATFORMID_IMPLEMENT_DIRECT \
std::wstring_view GetPlatformId() const override { \
return ::cru::platform::graph::win::direct::win_direct_platform_id; \
}
|